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

            gpostService = new GroupPostService();
        }
 public TopicSaveController()
 {
     boardService = new ForumBoardService();
     topicService = new ForumTopicService();
     categoryService = new ForumCategoryService();
     logService = new ForumLogService();
     msgService = new MessageService();
     forumService = new ForumService();
 }
Esempio n. 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();
 }
 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();
 }
Esempio n. 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();
        }
Esempio n. 11
0
 public InviteService()
 {
     userService = new UserService();
     msgService = new MessageService();
     mgrService = new MemberGroupService();
 }
Esempio n. 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 );
        }
Esempio n. 13
0
 public MemberGroupService()
 {
     msgService = new MessageService();
     userService = new UserService();
     feedService = new FeedService();
 }
Esempio n. 14
0
 public ViewerContext()
 {
     friendService = new FriendService();
     msgService = new MessageService();
     followService = new FollowerService();
 }
Esempio n. 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 );
     }
 }
Esempio n. 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 );
     }
 }
Esempio n. 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 );
        }
Esempio n. 19
0
 public SubmitSettingController()
 {
     userService = new UserService();
     msgService = new MessageService();
 }
Esempio n. 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 );
        }
Esempio n. 21
0
 public UserConfirmService()
 {
     userIncomeService = new UserIncomeService();
     currencyService = new CurrencyService();
     msgService = new MessageService();
 }