Exemplo n.º 1
0
        public IOCLocator(ISQLiteConnectionDependency sqliiteConnectionDependency, IMapperDependency mapperDependency,
                          INetworkDependency networkDependency, IUserPreferences userPreferences,
                          ICUCService cucService, ILoginService logService, IValidBonusService validBonusService,
                          IBonusDataRepository bonusDataRepository, ITokenDataRepository tokenDataRepository,
                          IUserDataRepository userDataRepository, IWSLoginRepository wsLoginRepository,
                          IWSValidBonoRepository wsValidBonoRepository)
        {
            SQLiteConnectionDependency = sqliiteConnectionDependency;
            MapperDependency           = mapperDependency;
            NetworkDependency          = networkDependency;
            UserPreferences            = userPreferences;


            CUCService        = cucService;
            LogService        = logService;
            ValidBonusService = validBonusService;


            BonusDataRepository = bonusDataRepository;
            TokenDataRepository = tokenDataRepository;
            UserDataRepository  = userDataRepository;


            WSLoginRepository     = wsLoginRepository;
            WSValidBonoRepository = wsValidBonoRepository;
        }
Exemplo n.º 2
0
 public ApiClient(string baseUrl, INetworkDependency networkDependency, IUserPreferences userPreferences)
 {
     this.BaseUrl         = baseUrl;
     this.UserPreferences = userPreferences;
     _client            = CreateClient();
     _networkDependency = networkDependency;
 }