public List <SueetieForumMessage> GetRecentForumMessages(int numRecords, int userID, int applicationID, bool isRestricted) { ContentQuery contentQuery = new ContentQuery { NumRecords = numRecords, UserID = userID, ContentTypeID = (int)SueetieContentType.ForumMessage, GroupID = -1, ApplicationID = applicationID, IsRestricted = isRestricted, TruncateText = true }; List <SueetieForumMessage> _sueetieForumMessages = SueetieForums.GetSueetieForumMessageList(contentQuery); foreach (SueetieForumMessage msg in _sueetieForumMessages) { msg.Message = DataHelper.TruncateText(msg.Message, SueetieConfiguration.Get().Core.TruncateTextCount); } return(_sueetieForumMessages); }
public List <SueetieBlogComment> GetRecentComments(int numRecords, int userID, int applicationID, bool isRestricted) { ContentQuery contentQuery = new ContentQuery { NumRecords = numRecords, UserID = userID, ContentTypeID = (int)SueetieContentType.BlogComment, GroupID = -1, ApplicationID = applicationID, IsRestricted = isRestricted, TruncateText = true }; List <SueetieBlogComment> _sueetieBlogComments = SueetieBlogs.GetSueetieBlogCommentList(contentQuery); foreach (SueetieBlogComment msg in _sueetieBlogComments) { msg.Comment = DataHelper.TruncateText(msg.Comment, SueetieConfiguration.Get().Core.TruncateTextCount); } return(_sueetieBlogComments); }
public static string UserLogActivityListCacheKey(ContentQuery contentQuery) { return(string.Format("UserLogActivityList-{0}-{1}-{2}", contentQuery.GroupID, contentQuery.SueetieContentViewTypeID, SueetieConfiguration.Get().Core.SiteUniqueName)); }
public static string ForumMessageListCacheKey(ContentQuery contentQuery) { return(string.Format("ForumMessageList-{0}-{1}-{2}", contentQuery.GroupID, contentQuery.UserID, contentQuery.IsRestricted)); }
public static List <SueetieMediaAlbum> GetSueetieMediaAlbumList(ContentQuery contentQuery) { var provider = SueetieDataProvider.LoadProvider(); return(provider.GetSueetieMediaAlbumList(contentQuery)); }
public static List <SueetieDownload> GetSueetieDownloadList(ContentQuery contentQuery) { var provider = SueetieDataProvider.LoadProvider(); return(provider.GetSueetieDownloadList(contentQuery)); }
private static string BlogCommentListCacheKey(ContentQuery contentQuery) { return(string.Format("BlogCommentList-{0}-{1}-{2}-{3}", contentQuery.GroupID, contentQuery.ApplicationID, contentQuery.UserID, contentQuery.IsRestricted)); }
private static string BlogPostListCacheKey(ContentQuery contentQuery) { return(string.Format("BlogPostList-{0}-{1}-{2}-{3}-{4}", contentQuery.GroupID, contentQuery.ApplicationID, contentQuery.UserID, contentQuery.IsRestricted, contentQuery.SueetieContentViewTypeID)); }