/// <summary>
 /// This method is used to get my messages
 /// </summary>
 /// <returns></returns>
 public object GetMyReciviedMessage(MessageRecipientCustomModel model)
 {
     using (_IMessageRepo = new MessageRepo())
     {
         return(_IMessageRepo.GetMyReciviedMessage(model));
     }
 }
 public object GetOurOldMessage(int SenderId, int ReceiverId)
 {
     using (_IMessageRepo = new MessageRepo())
     {
         return(_IMessageRepo.GetOurOldMessage(SenderId, ReceiverId));
     }
 }
Example #3
0
 public ConsumerService(//IDataProducer dataProducer,
     IMessageRepo messageRepo
     )
 {
     // _dataProducer = dataProducer;
     _messageRepo = messageRepo;
 }
Example #4
0
 public ChatService(IChatRepo chatRepo, IUserRepo userRepo, IMessageRepo messageRepo, IMessageReadStatusRepo messageReadStatusRepo)
 {
     _chatRepo              = chatRepo;
     _userRepo              = userRepo;
     _messageRepo           = messageRepo;
     _messageReadStatusRepo = messageReadStatusRepo;
 }
Example #5
0
 public MessageService(
     IServiceConfigurations configurations,
     IMessageRepo commentsRepo)
 {
     _commentsRepo = commentsRepo;
     _connection   = new NpgsqlConnection(configurations.dbConnectionString);
 }
 /// <summary>
 /// This method is used to save new messages
 /// </summary>
 /// <returns></returns>
 public OperationStatus SubmitMessage(MessageCustomModel model)
 {
     using (_IMessageRepo = new MessageRepo())
     {
         return(_IMessageRepo.SubmitMessage(model));
     }
 }
 /// <summary>
 /// This method is used to get my sent messages
 /// </summary>
 /// <returns></returns>
 public object GetMySentMessage(MessageCustomModel model)
 {
     using (_IMessageRepo = new MessageRepo())
     {
         return(_IMessageRepo.GetMySentMessage(model));
     }
 }
 public AdminController(UserManager <AppUser> usrMgr,
                        ApplicationDbContext c, IUserRepo u, IChatRepo chat, IMessageRepo m)
 {
     userManager = usrMgr;
     context     = c;
     userRepo    = u;
     chatRepo    = chat;
     messageRepo = m;
 }
Example #9
0
 public ChatRoom(
     ICallbackQueue callbackQueue,
     IDateTimeSvc dateTimeSvc,
     IMessageRepo messageRepo)
 {
     this.callbackQueue = callbackQueue;
     this.dateTimeSvc = dateTimeSvc;
     this.messageRepo = messageRepo;
 }
Example #10
0
 public MessagesController(UserManager <AppUser> usrMgr,
                           IReplyRepo r, IMessageRepo m, IChatRepo c)
 {
     // repos
     this.replyRepo   = r;
     this.messageRepo = m;
     this.chatRepo    = c;
     // user managers
     this.userManager = usrMgr;
 }
Example #11
0
 public ForumAPIController(UserManager <AppUser> usrMgr,
                           IReplyRepo r, IMessageRepo m, IChatRepo c, IUserRepo u)
 {
     // repos
     this.replyRepo   = r;
     this.messageRepo = m;
     this.chatRepo    = c;
     // user managers
     this.userManager = usrMgr;
     this.userRepo    = u;
 }
Example #12
0
 public MessageController(IMessageRepo repo)
 {
     repository = repo;
 }
 public ChatHub(IMessageRepo msgRepo)
 {
     repo = msgRepo;
 }
Example #14
0
 public MessagesController(IMessageRepo repo)
 {
     _repo = repo;
 }
Example #15
0
 public ApiSearchController(IMessageRepo repo)
 {
     _repo = repo;
 }
Example #16
0
 public MessageHub(ApplicationDbContext context, UserManager <ApplicationUser> usermanager, IMessageRepo _repo)
 {
     _context     = context;
     _usermanager = usermanager;
     repo         = _repo;
 }
Example #17
0
 public HomeController(ICustomerRepo ICustRepo, IMessageRepo IMsgRepo)
 {
     this.MessageRepo  = IMsgRepo;
     this.CustomerRepo = ICustRepo;
 }
 public ApiProfileController(IMessageRepo repo)
 {
     _repo = repo;
 }
Example #19
0
 public MessageController(IMessageRepo messageRepo)
 {
     this.messageRepo = messageRepo;
 }
Example #20
0
        //private UserManager<User> userManager;
        //private SignInManager<User> signInManager;

        public MessageController(IMessageRepo repo)
        {
            Repo = repo;
        }
 public MessageService(IMessageRepo messageRepo, IStopwordRemovalService stopwordRemovalService)
 {
     _messageRepo            = messageRepo;
     _stopwordRemovalService = stopwordRemovalService;
 }
 public MessageService(ILogger logger, IMessageRepo repo)
     : base(logger)
 {
     _repo = repo;
 }
Example #23
0
 public MessagingController(IUserRepo u, IMessageRepo m)
 {
     // THIS IS DEPENDENCY INJECTION
     userRepo    = u;
     messageRepo = m;
 }
 public ValuesController(IMessageRepo repo)
 {
     this.repo = repo;
 }
Example #25
0
        //Init constructor

        public MessageController()
        {
            messageRepo = new MessageRepo(new Connection(), new ReactionRepo(new Connection()));
            errors      = new LogErrors();
        }
Example #26
0
 public MessageService(IMessageRepo repo)
 {
     _repo = repo;
 }
Example #27
0
 public MessageService(IMessageRepo repo)
 {
     _repo = repo;
 }
 public MessagingManager(IReservationRepo resRepo, IMessageRepo mesRepo)
 {
     _reservationRepo = resRepo;
     _messageRepo     = mesRepo;
 }
Example #29
0
 public HelloWorldController(IMessageRepo messageRepo)
 {
     _messageRepo = messageRepo;
 }