Пример #1
0
        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);
        }
Пример #2
0
        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);
        }
Пример #3
0
 public static string UserLogActivityListCacheKey(ContentQuery contentQuery)
 {
     return(string.Format("UserLogActivityList-{0}-{1}-{2}", contentQuery.GroupID, contentQuery.SueetieContentViewTypeID, SueetieConfiguration.Get().Core.SiteUniqueName));
 }
Пример #4
0
 public static string ForumMessageListCacheKey(ContentQuery contentQuery)
 {
     return(string.Format("ForumMessageList-{0}-{1}-{2}", contentQuery.GroupID, contentQuery.UserID, contentQuery.IsRestricted));
 }
Пример #5
0
        public static List <SueetieMediaAlbum> GetSueetieMediaAlbumList(ContentQuery contentQuery)
        {
            var provider = SueetieDataProvider.LoadProvider();

            return(provider.GetSueetieMediaAlbumList(contentQuery));
        }
Пример #6
0
        public static List <SueetieDownload> GetSueetieDownloadList(ContentQuery contentQuery)
        {
            var provider = SueetieDataProvider.LoadProvider();

            return(provider.GetSueetieDownloadList(contentQuery));
        }
Пример #7
0
 private static string BlogCommentListCacheKey(ContentQuery contentQuery)
 {
     return(string.Format("BlogCommentList-{0}-{1}-{2}-{3}", contentQuery.GroupID, contentQuery.ApplicationID,
                          contentQuery.UserID, contentQuery.IsRestricted));
 }
Пример #8
0
 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));
 }