Пример #1
0
 public TopNavController()
 {
     userAppService = new UserAppService();
     msgService = new MessageService();
     menuService = new SiteMenuService();
     currencyService = new CurrencyService();
 }
Пример #2
0
 public MsgController()
 {
     msgService = new MessageService();
     blacklistService = new BlacklistService();
     userService = new UserService();
     attachmentService = new MessageAttachmentService();
 }
Пример #3
0
 public ViewerContext( MvcContext ctx )
 {
     friendService = new FriendService();
     msgService = new MessageService();
     followService = new FollowerService();
     this.ctx = ctx;
 }
Пример #4
0
 public AdminController()
 {
     sectionService = new ContentSectionService();
     postService = new ContentPostService();
     tempPostService = new ContentTempPostService();
     ntService = new NotificationService();
     msgService = new MessageService();
 }
Пример #5
0
 public UserController() {
     userService = new UserService();
     roleService = new SiteRoleService();
     msgService = new MessageService();
     logService = new SiteLogService();
     confirmEmail = new ConfirmEmail();
     errorPicService = new UserErrorPicService();
 }
Пример #6
0
        public MyGroupController()
        {
            msgService = new MessageService();
            groupService = new GroupService();
            mgrService = new MemberGroupService();
            inviteService = new InviteService();

            gpostService = new GroupPostService();
        }
Пример #7
0
 public TopicSaveController()
 {
     boardService = new ForumBoardService();
     topicService = new ForumTopicService();
     categoryService = new ForumCategoryService();
     logService = new ForumLogService();
     msgService = new MessageService();
     forumService = new ForumService();
 }
Пример #8
0
 public GroupController() {
     postService = new GroupPostService();
     groupService = new GroupService();
     topicService = new ForumTopicService();
     msgService = new MessageService();
     mgrService = new MemberGroupService();
     userService = new UserService();
     logService = new SiteLogService();
     fpostService = new ForumPostService();
 }
Пример #9
0
 public ForumTopicService() {
     forumService = new ForumService();
     categoryService = new ForumCategoryService();
     boardService = new ForumBoardService();
     userService = new UserService();
     AttachmentService = new AttachmentService();
     logService = new ForumLogService();
     incomeService = new UserIncomeService();
     msgService = new MessageService();
     microblogService = new MicroblogService();
 }
Пример #10
0
        public ForumPostService()
        {
            forumService = new ForumService();
            categoryService = new ForumCategoryService();
            boardService = new ForumBoardService();
            topicService = new ForumTopicService();
            userService = new UserService();
            forumLogService = new ForumLogService();
            rateService = new ForumRateService();
            attachmentService = new AttachmentService();
            msgService = new MessageService();

            incomeService = new UserIncomeService();

            notificationService = new NotificationService();
            microblogService = new MicroblogService();
        }
Пример #11
0
 public InviteService()
 {
     userService = new UserService();
     msgService = new MessageService();
     mgrService = new MemberGroupService();
 }
Пример #12
0
        protected virtual void sendMsg( User member )
        {
            String title = config.Instance.Site.SystemMsgTitle;
            String body = config.Instance.Site.SystemMsgContent;

            IMessageService service = new MessageService();
            service.SiteSend( title, body, member );
        }
Пример #13
0
 public MemberGroupService()
 {
     msgService = new MessageService();
     userService = new UserService();
     feedService = new FeedService();
 }
Пример #14
0
 public ViewerContext()
 {
     friendService = new FriendService();
     msgService = new MessageService();
     followService = new FollowerService();
 }
Пример #15
0
 public MemberGroupService()
 {
     msgService = new MessageService();
     userService = new UserService();
     microblogService = new MicroblogService();
 }
 private void addNotification( string userIds, String categoryName ) {
     MessageService msgService = new MessageService();
     int[] arrIds = cvt.ToIntArray( userIds );
     foreach (int id in arrIds) {
         User user = userService.GetById( id );
         String body = user.Name + ":<br/><br/>您好!您已被邀请成为网站 “" + categoryName + "” 栏目的特约 wiki 编辑。现在您可以——<br/>1)添加新页面<br/>2)修改现有页面。<br/><br/>欢迎您的参与。<br/><br/>如有其他意见,请给网站管理员发送站内短信。";
         msgService.SiteSend( "您已成为网站 wiki 特约编辑", body, user );
     }
 }
Пример #17
0
 private void addNotification( string userIds, String categoryName )
 {
     MessageService msgService = new MessageService();
     int[] arrIds = cvt.ToIntArray( userIds );
     foreach (int id in arrIds) {
         User user = userService.GetById( id );
         String body = user.Name + "��<br/><br/>���ã����ѱ������Ϊ��վ ��" + categoryName + "�� ��Ŀ����Լ wiki �༭�����������ԡ���<br/>1�������ҳ��<br/>2���޸�����ҳ�档<br/><br/>��ӭ���IJ��롣<br/><br/>������������������վ����Ա����վ�ڶ��š�";
         msgService.SiteSend( "���ѳ�Ϊ��վ wiki ��Լ�༭", body, user );
     }
 }
Пример #18
0
        protected virtual void sendMsg( User member, ISiteConfig sconfig )
        {
            if (sconfig.IsSendMsg == false) return;

            String title = sconfig.MsgTitle;
            String body = sconfig.MsgBody;

            IMessageService service = new MessageService();
            service.SiteSend( title, body, member );
        }
Пример #19
0
 public SubmitSettingController()
 {
     userService = new UserService();
     msgService = new MessageService();
 }
Пример #20
0
        private void addIncomeAndSendMsg( User user )
        {
            long actionId = UserAction.User_UpdateAvatar.Id;
            KeyIncomeRule rule = currencyService.GetKeyIncomeRulesByAction( actionId );

            int creditValue = rule.Income;
            String creditName = rule.CurrencyName;

            String msgTitle = "感谢您上传头像";
            userIncomeService.AddIncome( user, actionId, msgTitle );

            String msgBody = string.Format( "{0}:<br/>您好!<br/>感谢您上传头像,您因此获得{1}奖励,共{2}分。<br/>欢迎继续参与,谢谢。<br/>------------------------------------------<br/>这是系统自动发信,请勿回复。", user.Name, creditName, creditValue );

            MessageService msgService = new MessageService();

            msgService.SiteSend( msgTitle, msgBody, user );
        }
Пример #21
0
 public UserConfirmService()
 {
     userIncomeService = new UserIncomeService();
     currencyService = new CurrencyService();
     msgService = new MessageService();
 }