public GroupMessageController()
 {
     groupChatRepository    = new GroupChatRepository(dataContext);
     groupRepository        = new GroupRepository(dataContext);
     userRepository         = new UserRepository(dataContext);
     groupMessageRepository = new GroupMessageRepository(dataContext);
 }
コード例 #2
0
 public BaseController(MessageStackContext messageStackContext)
 {
     _accountRepository        = new AccountRepository(messageStackContext);
     _contactRepository        = new ContactRepository(messageStackContext);
     _groupChatRepository      = new GroupChatRepository(messageStackContext);
     _groupMessageRepository   = new GroupMessageRepository(messageStackContext);
     _privateChatRepository    = new PrivateChatRepository(messageStackContext);
     _privateMessageRepository = new PrivateMessageRepository(messageStackContext);
 }