public SyncViewModel(IWebApiService webApiService, ILocalDbService localDbService) { this.webApiService = webApiService; this.localDbService = localDbService; SyncCommand = new DelegateCommand(SyncCommandExecute); }
public LoginViewModel(IWebApiService webApiService, INavigationService navigationService, IPageDialogService pageDialogservice) { this.webApiService = webApiService; this.navigationService = navigationService; this.pageDialogservice = pageDialogservice; LoginCommand = new DelegateCommand(LoginCommandExecute, LoginCommandCanExecute).ObservesProperty(() => Username).ObservesProperty(() => Password); }
// // GET: /Json/ public WebApiController(IOrchardServices orchardServices, IWebApiService webApiSerices, IContentSerializationServices contentSerializationServices) { _orchardServices = orchardServices; _webApiServices = webApiSerices; _contentSerializationServices = contentSerializationServices; }
public BaseController(IWebApiService webApi, IConfiguration configuration) { _webApi = webApi; _configuration = configuration; string urlApi = configuration.GetValue <string>("WebApi-Url"); _webApi.UriBase = new Uri(urlApi); }
public MainWindowViewModel(IWebApiService webApiService, SearchSortService searchService) { this.webApiService = webApiService; this.searchService = searchService; CurrentPageCount = Settings.Default.CountPerPage <= 0 ? 100 : Settings.Default.CountPerPage; CurrentSearchField = SearchFields.FirstOrDefault(x => x.FieldName == Settings.Default.SearchFieldName) ?? SearchFields[0]; LastPage = 1; CurrentPage = 1; CurrentPrinter = Printers.FirstOrDefault(x => x.PrinterName == Settings.Default.DefaultPrinter); }
public TaskViewModel(IMvxNavigationService navigationService, IMvxMessenger messenger, IWebApiService webApiService, IAlertService alertService /*, ISignalR signalR*/) : base(navigationService) { _webApiService = webApiService; _messenger = messenger; _alertService = alertService; _token = messenger.Subscribe <MapMessenger>(OnLocationMessage); SaveTaskCommand = new MvxAsyncCommand(SaveTask); DeleteTaskCommand = new MvxAsyncCommand(DeleteTask); BackTaskCommand = new MvxAsyncCommand(BackTask); DeleteMarkerMapCommand = new MvxCommand(DeleteMarkerMap); MapCommand = new MvxAsyncCommand(CreateMarkerMap); if (Connectivity.NetworkAccess == NetworkAccess.Internet) { ChangedNetworkAccess = true; } Connectivity.ConnectivityChanged += Connectivity_ConnectivityChanged; }
public ListTaskViewModel(IMvxNavigationService navigationService, ITaskService taskService, ILoginService loginService, IWebApiService wepApiService, IAlertService alertService) : base(navigationService) { _loginService = loginService; _taskService = taskService; _wepApiService = wepApiService; _alertService = alertService; Items = new MvxObservableCollection <TaskItem>(); TaskCreateCommand = new MvxAsyncCommand <TaskItem>(TaskCreate); TaskChangeCommand = new MvxAsyncCommand <TaskItem>(TaskChange); ShowAboutCommand = new MvxAsyncCommand(async() => await navigationService.Navigate <AboutTaskViewModel>()); ShowMenuViewModelCommand = new MvxAsyncCommand(async() => await navigationService.Navigate <MenuViewModel>()); LoginViewCommand = new MvxAsyncCommand(LogoutInstagram); if (Connectivity.NetworkAccess == NetworkAccess.Internet) { ChangedNetworkAccess = true; } Connectivity.ConnectivityChanged += Connectivity_ConnectivityChanged; }
/// <summary> /// Конструктор класса обновления данных /// </summary> /// <param name="webApiService">Сервис взаимодействия с API</param> /// <param name="search">Сервис поиска с помощью API</param> public UpdateApiService(IWebApiService webApiService, ISearch search, ILogger logger) { this.webApiService = webApiService; this.search = search; this.logger = logger; }
public AirportRepository(IWebApiService webApiService, ICache cache) { _webApiService = webApiService; _cache = cache; }
public HomeController(IHttpClientFactory httpClientFactory, IWebApiService apiService) { _httpClientFactory = httpClientFactory ?? throw new ArgumentNullException(nameof(httpClientFactory)); _apiService = apiService; }
/// <summary> /// Конструктор класса поиска /// </summary> /// <param name="webApiService">Сервис взаимодействия с API</param> public SearchApiService(IWebApiService webApiService, ILogger logger) { this.webApiService = webApiService; }
public HotelsRepository(IWebApiService webApiService, ICache cache) { _webApiService = webApiService; _cache = cache; }
public ClientsController(IWebApiService webApiService) { _webApiService = webApiService; }
public OrderController(IWebApiService webapiService) { _webapiService = webapiService; }
public BookingController() { webApiService = new WebApiService(); }
public SpotifyService(IWebApiService libraryService, IWebApiAuthorizationService authorizationService) { _authorizationService = authorizationService ?? throw new ArgumentNullException(nameof(authorizationService)); _libraryService = libraryService ?? throw new ArgumentNullException(nameof(libraryService)); }
public SearchSortService(IWebApiService webApiService, string token) { this.webApiService = webApiService; this.token = token; }
private FacebookOAuth() : base() { this.Scope = "email"; _webService = ShinyHost.Resolve <IWebApiService>(); }
public HomeController(IWebApiService webApi, IConfiguration configuration, ILogger <HomeController> logger) : base(webApi, configuration) { _logger = logger; }
public AccountController() { webApiService = new WebApiService(); }
public HomeController(IWebApiService webApiService) { _webApiService = webApiService; }
/// <summary> /// Constructor con base a MvvmCross y la inyección de dependencias /// </summary> /// <param name="webApiService">WebApiService para inyeccion de dependencias</param> public DataService(IWebApiService webApiService) { WebApiService = webApiService; }
public void Register(string name, IWebApiService service) { services[name] = service; }
public ExternOAuthService(IWebApiService webApiService, MembershipService membershipService) { _webApiService = webApiService; _membershipService = membershipService; }
private GoogleOAuth() : base() { this.Scope = "profile email"; _webService = ShinyHost.Resolve <IWebApiService>(); }
public MyShowsApi(IWebApiService webApiService, IMvxJsonConverter jsonConverter, IDataManager dataManager, ICryptographyMD5 cryptographyMD5) : base(webApiService, jsonConverter) { this.dataManager = dataManager; this.cryptographyMD5 = cryptographyMD5; }
public AccountController(IWebApiService webApi, IConfiguration configuration) : base(webApi, configuration) { _configuration = configuration; }
public CdsAuth(IWebApiService webApiService) { WebApiService = webApiService; }
public CuentaController(IWebApiService apiService, ISeguridadApiService seguridadService, ILoggerFactory loggerFactory) { _logger = loggerFactory.CreateLogger <AutoresController>(); _apiService = apiService; _seguridadService = seguridadService; }
public MainWindowViewModel(IDialogBoxService service) { _apiService = new WebApiService(); _dialogService = service; Persons = new List <Person>(); }
public SearchIndexService(IWebApiService webApiService) { _webApiService = webApiService; _wiseSearchUrl = AppConfiguration.GetWiseSearchBaseUrl(); }