Exemple #1
0
 public PushController(IAdminRepository adminRepository, ISurveyRepository surveyRepository,
                       IPushRepository pushRepository)
 {
     _adminRepository  = adminRepository;
     _surveyRepository = surveyRepository;
     _pushRepository   = pushRepository;
 }
        public NotificationTestController()
        {
            _pushRepository = new PushRepository();

            _androidPushService = new AndroidPushNotificationService(_pushRepository);

            _applePushService = new ApplePushNotificationService(_pushRepository);
        }
        public NotificationTestController()
        {
            _pushRepository = new PushRepository();

            _androidPushService = new AndroidPushNotificationService(_pushRepository);

            _applePushService = new ApplePushNotificationService(_pushRepository);
        }
Exemple #4
0
 public JPushFactory(ISystemLog Logger,
                     IPushRepository NotifyRepo,
                     IBaseRepository <DataBase.TVENDER, Tvender> TvenderRepo,
                     IBaseRepository <DataBase.TCallLogRecord, TcallogRecord> PushRecordRepo,
                     IBaseRepository <DataBase.TVenderTechnician, TvenderTechnician> TechnicianRepo,
                     IBaseRepository <DataBase.TTechnicianGroup, TtechnicianGroup> TechnicianGroupRepo)
 {
     this._logger              = Logger;
     this._notifyRepo          = NotifyRepo;
     this._tvenderRepo         = TvenderRepo;
     this._technicianRepo      = TechnicianRepo;
     this._pushRecordRepo      = PushRecordRepo;
     this._technicianGroupRepo = TechnicianGroupRepo;
 }
        public AndroidPushNotificationService(IPushRepository repository)
        {
            this._repository = repository;
            this._pushBroker = new PushBroker();

            ////Wire up the events for all the services that the broker registers
            //this._pushBroker.OnNotificationSent += this.NotificationSent;
            //this._pushBroker.OnChannelException += this.ChannelException;
            //this._pushBroker.OnServiceException += this.ServiceException;
            //this._pushBroker.OnDeviceSubscriptionExpired += this.DeviceSubscriptionExpired;
            //this._pushBroker.OnDeviceSubscriptionChanged += this.DeviceSubscriptionChanged;
            //this._pushBroker.OnChannelCreated += this.ChannelCreated;
            //this._pushBroker.OnChannelDestroyed += this.ChannelDestroyed;

            this.isStarted = false;
        }
        public AndroidPushNotificationService(IPushRepository repository)
        {
            this._repository = repository;
            this._pushBroker = new PushBroker();

            ////Wire up the events for all the services that the broker registers
            //this._pushBroker.OnNotificationSent += this.NotificationSent;
            //this._pushBroker.OnChannelException += this.ChannelException;
            //this._pushBroker.OnServiceException += this.ServiceException;
            //this._pushBroker.OnDeviceSubscriptionExpired += this.DeviceSubscriptionExpired;
            //this._pushBroker.OnDeviceSubscriptionChanged += this.DeviceSubscriptionChanged;
            //this._pushBroker.OnChannelCreated += this.ChannelCreated;
            //this._pushBroker.OnChannelDestroyed += this.ChannelDestroyed;

            this.isStarted = false;
        }
 public PushController()
 {
     _pushRepository = new PushRepository();
     _pushMapper     = new PushMapper();
 }
 public PushMessageController(IBusClient busClient, IPushRepository pushRepository)
 {
     _busClient      = busClient;
     _pushRepository = pushRepository;
 }
Exemple #9
0
 public PushService(IPushRepository repository)
 {
     _repository = repository;
 }