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

            return(provider.GetSueetieMediaAlbumList(contentQuery));
        }
Esempio n. 6
0
        public static List <SueetieDownload> GetSueetieDownloadList(ContentQuery contentQuery)
        {
            var provider = SueetieDataProvider.LoadProvider();

            return(provider.GetSueetieDownloadList(contentQuery));
        }
Esempio n. 7
0
 private static string BlogCommentListCacheKey(ContentQuery contentQuery)
 {
     return(string.Format("BlogCommentList-{0}-{1}-{2}-{3}", contentQuery.GroupID, contentQuery.ApplicationID,
                          contentQuery.UserID, contentQuery.IsRestricted));
 }
Esempio n. 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));
 }