コード例 #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;
 }
コード例 #2
0
 public SpartanFileService()
 {
     services = RestService.For <ISpartaneFileService>(new HttpClient(new HttpLoggingHandler(TokenManager.GetToken))
     {
         BaseAddress = new Uri(AppConfiguration.Values.BaseUrl)
     }, new RefitSettings
     {
         JsonSerializerSettings = new JsonSerializerSettings
         {
             ContractResolver = new CustomResolver()
         }
     });
 }
コード例 #3
0
 public SpartaneFileController(ISpartaneFileService service)
 {
     this.service = service;
 }