2009-11-19 21:58:48 +00:00
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
|
using Orchard.Comments.Models;
|
|
|
|
|
|
using Orchard.Mvc.ViewModels;
|
|
|
|
|
|
|
|
|
|
|
|
namespace Orchard.Comments.ViewModels {
|
|
|
|
|
|
public class CommentsIndexViewModel : AdminViewModel {
|
|
|
|
|
|
public IList<CommentEntry> Comments { get; set; }
|
|
|
|
|
|
public CommentIndexOptions Options { get; set; }
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public class CommentEntry {
|
2010-01-23 23:21:08 +00:00
|
|
|
|
public CommentRecord Comment { get; set; }
|
2009-11-21 03:53:55 +00:00
|
|
|
|
public string CommentedOn { get; set; }
|
2009-11-19 21:58:48 +00:00
|
|
|
|
public bool IsChecked { get; set; }
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public class CommentIndexOptions {
|
|
|
|
|
|
public CommentIndexFilter Filter { get; set; }
|
|
|
|
|
|
public CommentIndexBulkAction BulkAction { get; set; }
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public enum CommentIndexBulkAction {
|
|
|
|
|
|
None,
|
2010-01-18 20:55:58 +00:00
|
|
|
|
Pend,
|
|
|
|
|
|
Approve,
|
2009-11-19 21:58:48 +00:00
|
|
|
|
MarkAsSpam,
|
2010-01-18 20:55:58 +00:00
|
|
|
|
Delete
|
2009-11-19 21:58:48 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public enum CommentIndexFilter {
|
|
|
|
|
|
All,
|
2010-01-18 20:55:58 +00:00
|
|
|
|
Pending,
|
2009-11-19 21:58:48 +00:00
|
|
|
|
Approved,
|
|
|
|
|
|
Spam,
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|