Exemplo n.º 1
0
 public MainPageViewModel(ISpartaneFileService spartaneFileService,
                          IProgressReportService progressReportService,
                          ISpartaneUserService spartaneUserService,
                          INavigationService navigationService,
                          IUserDialogs userDialogsService,
                          IConnectivity connectivity) : base(navigationService, userDialogsService, connectivity)
 {
     this.spartaneUserService   = spartaneUserService;
     this.progressReportService = progressReportService;
     this.spartaneFileService   = spartaneFileService;
 }
Exemplo n.º 2
0
 public ProgressReportService()
 {
     services = RestService.For <IProgressReportService>(new HttpClient(new HttpLoggingHandler(TokenManager.GetToken))
     {
         BaseAddress = new Uri(AppConfiguration.Values.BaseUrl)
     }, new RefitSettings
     {
         JsonSerializerSettings = new JsonSerializerSettings
         {
             ContractResolver = new CustomResolver()
         }
     });
 }