コード例 #1
0
        public RegisterRepository(IMasterRepository masterRepository, IRegisterService service, IDynamixService dynamix = null,
                                  IDynamixReturnService <List <DynamixContact> > dynamixReturn           = null,
                                  IDynamixReturnService <DynamixPolicy> dynasmicPolicyReturn             = null,
                                  IDynamixReturnService <DynamixCommunity> dynamixCommunityReturnService = null,
                                  IDynamixReturnService <GetUserReturnModel> dynamixUserReturnService    = null)
            : base(masterRepository)
        {
            _Service                       = service;
            _DynamixService                = dynamix;
            _DynamixReturnService          = dynamixReturn;
            _DynamixPolicyReturnService    = dynasmicPolicyReturn;
            _DynamixCommunityReturnService = dynamixCommunityReturnService;
            _DynamixUserReturnService      = dynamixUserReturnService;
            _PlatformBonsai                = new PlatformBonsai();
            BlobStorageRepository          = new AzureBlobStorageRepository(_MasterRepo);
            var platform = new PlatformRepository <RegisterViewModel>(masterRepository, _PlatformBonsai)
            {
                OnError = (errs) =>
                {
                    OnError?.Invoke(errs);
                }
            };

            _SelfieRepo = new SelfieRepository(_MasterRepo);
        }
コード例 #2
0
 public SelfieRepository(IMasterRepository masterRepository)
     : base(masterRepository)
 {
     _ImageRepo         = new ImageRepository(_MasterRepo);
     _PlatformBonsai    = new PlatformBonsai();
     _StorageRepository = new AzureBlobStorageRepository(_MasterRepo);
 }
コード例 #3
0
 public PlatformRepository(IMasterRepository masterRepository, IPlatformBonsai <IPlatformModelBonsai> platformBonsai)
     : base(masterRepository)
 {
     _PlatformBonsai = platformBonsai;
     //??
     _PlatformBonsai.OnError = (obj) =>
     {
         OnError(obj);
     };
     AddCallBackToAllPlatformServices();
 }
コード例 #4
0
 public PlatformRepository(IMasterRepository masterRepository)
     : base(masterRepository)
 {
     _PlatformBonsai = DependencyService.Get <IPlatformBonsai <IPlatformModelBonsai> >();
     //??
     _PlatformBonsai.OnError = (obj) =>
     {
         OnError(obj);
     };
     AddCallBackToAllPlatformServices();
 }
コード例 #5
0
        public DashboardRepository(IMasterRepository masterRepository, IDashboardService <T> service)
            : base(masterRepository)
        {
            _Service        = service;
            _PlatformBonsai = new PlatformBonsai();
            var platform = new PlatformRepository <DashboardViewModel>(masterRepository, _PlatformBonsai);

            platform.OnError = (errs) =>
            {
                OnError?.Invoke(errs);
            };
        }
コード例 #6
0
 public PhotoRepository(IMasterRepository masterRepository)
     : base(masterRepository)
 {
     _PlatformBonsai = new Vikela.Trunk.Injection.Base.PlatformBonsai();
     _ImageRepo      = new ImageRepository(_MasterRepo);
 }
コード例 #7
0
 public MainMenuRepository(IMasterRepository masterRepository, IMainMenuService <T> service)
     : base(masterRepository)
 {
     _Service        = service;
     _PlatformBonsai = DependencyService.Get <IPlatformBonsai <IPlatformModelBonsai> >();
 }