public TopNavController() { userAppService = new UserAppService(); msgService = new MessageService(); menuService = new SiteMenuService(); currencyService = new CurrencyService(); }
public MsgController() { msgService = new MessageService(); blacklistService = new BlacklistService(); userService = new UserService(); attachmentService = new MessageAttachmentService(); }
public ViewerContext( MvcContext ctx ) { friendService = new FriendService(); msgService = new MessageService(); followService = new FollowerService(); this.ctx = ctx; }
public AdminController() { sectionService = new ContentSectionService(); postService = new ContentPostService(); tempPostService = new ContentTempPostService(); ntService = new NotificationService(); msgService = new MessageService(); }
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(); }
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(); }
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(); }
public InviteService() { userService = new UserService(); msgService = new MessageService(); mgrService = new MemberGroupService(); }
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 ); }
public MemberGroupService() { msgService = new MessageService(); userService = new UserService(); feedService = new FeedService(); }
public ViewerContext() { friendService = new FriendService(); msgService = new MessageService(); followService = new FollowerService(); }
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 ); } }
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 ); } }
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 ); }
public SubmitSettingController() { userService = new UserService(); msgService = new MessageService(); }
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 ); }
public UserConfirmService() { userIncomeService = new UserIncomeService(); currencyService = new CurrencyService(); msgService = new MessageService(); }