コード例 #1
0
 public RegisterService(
     IPreferencesService preferencesService,
     ILoggingService loggingService,
     ITaskHelperFactory taskHelperFactory,
     IRefitService refitService)
 {
     this.authApi            = refitService.InitRefitInstance <IAuthApi>();
     this.preferencesService = preferencesService;
     this.loggingService     = loggingService;
     this.taskHelperFactory  = taskHelperFactory;
 }
コード例 #2
0
 public ProductsViewModel(
     IPreferencesService preferencesService,
     ILoggingService loggingService,
     IRefitService refitService,
     ITaskHelperFactory taskHelperFactory)
 {
     this.preferencesService = preferencesService;
     this.loggingService     = loggingService;
     this.taskHelperFactory  = taskHelperFactory;
     this.productApi         = refitService.InitRefitInstance <IProductApi>(isAutenticated: true);
 }
コード例 #3
0
ファイル: LogInService.cs プロジェクト: migueBarrera/MiBocata
 public LogInService(
     IPreferencesService preferencesService,
     ILoggingService loggingService,
     ITaskHelperFactory taskHelperFactory,
     IRefitService refitService)
 {
     this.authApi            = refitService.InitRefitInstance <IAuthApi>();
     this.storeApi           = refitService.InitRefitInstance <IStoreApi>(isAutenticated: true);
     this.preferencesService = preferencesService;
     this.loggingService     = loggingService;
     this.taskHelperFactory  = taskHelperFactory;
 }
コード例 #4
0
 public CreateStoreService(
     IRefitService refitService,
     IPreferencesService preferencesService,
     ISessionService sessionService,
     ILoggingService loggingService,
     ITaskHelperFactory taskHelperFactory)
 {
     this.storeApi           = refitService.InitRefitInstance <IStoreApi>(isAutenticated: true);
     this.preferencesService = preferencesService;
     this.sessionService     = sessionService;
     this.loggingService     = loggingService;
     this.taskHelperFactory  = taskHelperFactory;
 }
コード例 #5
0
    public ConfigurationViewModel(
        IPreferencesService preferencesService,
        ILoggingService loggingService,
        IRefitService refitService,
        ITaskHelperFactory taskHelperFactory)
    {
        storeApi = refitService.InitRefitInstance <IStoreApi>(isAutenticated: true);
        this.preferencesService = preferencesService;
        this.loggingService     = loggingService;
        this.taskHelperFactory  = taskHelperFactory;

        SaveCommand = new AsyncCommand(SaveCommandExecute);
    }
コード例 #6
0
 public EditProfileViewModel(
     IPreferencesService preferencesService,
     ILoggingService loggingService,
     IDialogService dialogService,
     IRefitService refitService,
     ITaskHelperFactory taskHelperFactory)
 {
     clientApi = refitService.InitRefitInstance <IClientApi>(isAutenticated: true);
     this.preferencesService = preferencesService;
     this.loggingService     = loggingService;
     this.dialogService      = dialogService;
     this.taskHelperFactory  = taskHelperFactory;
 }
コード例 #7
0
 public LogInControlViewModel(
     IPreferencesService preferencesService,
     ILoggingService loggingService,
     IDialogService dialogService,
     IRefitService refitService,
     ITaskHelperFactory taskHelperFactory,
     IKeyboardService keyboardService)
 {
     this.authApi            = refitService.InitRefitInstance <IAuthApi>();
     this.preferencesService = preferencesService;
     this.loggingService     = loggingService;
     this.dialogService      = dialogService;
     this.taskHelperFactory  = taskHelperFactory;
     this.keyboardService    = keyboardService;
 }
コード例 #8
0
    public StoresViewModel(
        IGeolocationService geolocationService,
        ISessionService sessionService,
        ILoggingService loggingService,
        IRefitService refitService,
        ITaskHelperFactory taskHelperFactory)
    {
        this.geolocationService = geolocationService;
        this.sessionService     = sessionService;
        this.loggingService     = loggingService;
        this.taskHelperFactory  = taskHelperFactory;
        this.storeApi           = refitService.InitRefitInstance <IStoreApi>(isAutenticated: false);

        GoToStoreDetailCommand = new AsyncCommand <Store>((store) => GoToStoreAsync(store));
    }
コード例 #9
0
    public CartViewModel(
        IPreferencesService preferencesService,
        ISessionService sessionService,
        ILoggingService loggingService,
        IDialogService dialogService,
        IRefitService refitService,
        ITaskHelperFactory taskHelperFactory)
    {
        this.preferencesService = preferencesService;
        this.sessionService     = sessionService;
        this.loggingService     = loggingService;
        this.taskHelperFactory  = taskHelperFactory;
        this.orderApi           = refitService.InitRefitInstance <IOrderApi>(isAutenticated: true);


        MakeOrderCommand  = new AsyncCommand(async() => await MakeOrderCommandAsync());
        RemoveItemCommand = new AsyncCommand <OrderProduct>(RemoveItemCommandExecute);
    }
コード例 #10
0
    public OrderViewModel(
        IRefitService refitService,
        IPreferencesService preferencesService,
        ITaskHelperFactory taskHelperFactory,
        ILoggingService loggingService,
        IDialogService dialogService)
    {
        this.orderApi           = refitService.InitRefitInstance <IOrderApi>(isAutenticated: true);
        this.preferencesService = preferencesService;
        this.taskHelperFactory  = taskHelperFactory;
        this.loggingService     = loggingService;
        this.dialogService      = dialogService;

        RefreshCommand     = new AsyncCommand(() => RefreshCommandAsync());
        OpenChatCommand    = new AsyncCommand <Order>((order) => OpenChatCommandAsync(order));
        CancelOrderCommand = new AsyncCommand <Order>((order) => CancelOrderCommandExecute(order));
        AcceptOrderCommand = new AsyncCommand <Order>((order) => AcceptOrderCommandExecute(order));
    }
コード例 #11
0
 public ChooseLocationService(
     IGeocodingService geocodingService,
     IGeolocationService geolocationService,
     IPreferencesService preferencesService,
     ISessionService sessionService,
     ILoggingService loggingService,
     IDialogService dialogService,
     IConnectivityService connectivityService,
     ITaskHelper taskHelper,
     IRefitService refitService,
     ITaskHelperFactory taskHelperFactory)
 {
     this.geocodingService    = geocodingService;
     this.geolocationService  = geolocationService;
     this.preferencesService  = preferencesService;
     this.sessionService      = sessionService;
     this.loggingService      = loggingService;
     this.dialogService       = dialogService;
     this.connectivityService = connectivityService;
     this.taskHelper          = taskHelper;
     this.refitService        = refitService;
     this.taskHelperFactory   = taskHelperFactory;
 }