Esempio n. 1
0
 public async Task <ActionResult <Locale> > GetLocaleById(
     [FromServices] ILocaleService localeService,
     [FromQuery] LocaleQuery query,
     [FromRoute] int localeId)
 {
     return(await localeService.FindLocaleById(localeId, query));
 }
Esempio n. 2
0
 public async Task <ActionResult <Locale> > UpdateLocale(
     [FromServices] ILocaleService localeService,
     [FromRoute] int localeId,
     [FromBody] CreateOrUpdateLocaleCommand command)
 {
     return(await localeService.UpdateLocale(localeId, command));
 }
Esempio n. 3
0
 private TLContainer()
 {
     _lifetime = new LifetimeService();
     _passcode = new PasscodeService(SettingsService.Current.PasscodeLock);
     _playback = new PlaybackService(SettingsService.Current);
     _locale   = LocaleService.Current;
 }
Esempio n. 4
0
        // \IDisposable

        public LocalString(ILocaleService localeService, string key, object[] formatArgs = null)
        {
            _localeService = localeService;
            _key           = key;
            _formatArgs    = formatArgs;
            localeService.CurrentLanguageChangedEvent += OnUpdateValue;
            OnUpdateValue(localeService.CurrentLanguage);
        }
        public SettingsLanguageViewModel(IProtoService protoService, ICacheService cacheService, ISettingsService settingsService, IEventAggregator aggregator, ILocaleService localeService)
            : base(protoService, cacheService, settingsService, aggregator)
        {
            _localeService = localeService;

            Items = new MvxObservableCollection <List <LanguagePackInfo> >();

            ChangeCommand = new RelayCommand <LanguagePackInfo>(ChangeExecute);
            DeleteCommand = new RelayCommand <LanguagePackInfo>(DeleteExecute);
        }
Esempio n. 6
0
 public SplashPresenter()
 {
     getPassportUseCase        = Locator.Current.GetService <GetPassportUseCase>();
     getOfflinePassportUseCase = Locator.Current.GetService <GetOfflinePassportUseCase>();
     //getPassportStatesUseCase = Locator.Current.GetService<GetPassportStatesUseCase>();
     //getPassportStatesColorsUseCase = Locator.Current.GetService<GetPassportStatesColorsUseCase>();
     getRiskFactorsUseCase  = Locator.Current.GetService <GetRiskFactorsUseCase>();
     getSymptomTypesUseCase = Locator.Current.GetService <GetSymptomTypesUseCase>();
     //getMedicalMonitorsUseCase = Locator.Current.GetService<GetMedicalMonitorsUseCase>();
     getVersionsUseCase = Locator.Current.GetService <GetVersionsUseCase>();
     localeService      = Locator.Current.GetService <ILocaleService>();
 }
Esempio n. 7
0
        public Game(IEntityService entityService,
                    IComponentService componentService,
                    ITemplateService templateService,
                    ITimedActionService timedActionService,
                    ILocaleService localeService)
        {
            _entityService      = entityService;
            _componentService   = componentService;
            _templateService    = templateService;
            _timedActionService = timedActionService;
            _localeService      = localeService;

            _timedActionService.ActionDispatched = HandleAction;

            Init().GetAwaiter().GetResult();
        }
Esempio n. 8
0
 public async Task <ActionResult <List <LocaleParameters> > > GetLocaleParameters(
     [FromServices] ILocaleService localeService,
     [FromRoute] int localeId)
 {
     return(await localeService.GetLocaleParameters(localeId));
 }
Esempio n. 9
0
 public LanguagePresenter()
 {
     localeService = Locator.Current.GetService <ILocaleService>();
 }
Esempio n. 10
0
 public SplashPresenter()
 {
     getVersionsUseCase = Locator.Current.GetService <GetVersionsUseCase>();
     localeService      = Locator.Current.GetService <ILocaleService>();
     settingsService    = Locator.Current.GetService <ISettingsService>();
 }
Esempio n. 11
0
 public async Task <ActionResult <Locale> > CreateLocale(
     [FromServices] ILocaleService localeService,
     [FromBody] CreateOrUpdateLocaleCommand command)
 {
     return(await localeService.CreateLocale(command));
 }
Esempio n. 12
0
 public AddLocaleForm(LocaleProvider localeProvider, ILocaleService localesService)
 {
     InitializeComponent();
     this.localeProvider = localeProvider;
     this.localesService = localesService;
 }
Esempio n. 13
0
 public async Task <ActionResult <bool> > DeleteLocale(
     [FromServices] ILocaleService localeService,
     [FromRoute] int localeId)
 {
     return(await localeService.DeleteLocale(localeId));
 }
Esempio n. 14
0
 public LocaleProvider(ILocaleService localesService)
 {
     this.localesService = localesService;
     TryGetLocalesByCoordinates();
 }
Esempio n. 15
0
 public LocaleManager(ILocalStorage localStorage, ILocaleService localeService)
 {
     this.localStorage  = localStorage;
     this.localeService = localeService;
 }
Esempio n. 16
0
 public async Task <ActionResult <List <Locale> > > GetLocalesByCoordinates(
     [FromServices] ILocaleService localeService,
     [FromQuery] LocaleQuery query)
 {
     return(await localeService.FindLocalesByCoordinates(query));
 }
Esempio n. 17
0
 public MainPresenter()
 {
     messenger       = Locator.Current.GetService <IMessenger>();
     localeService   = Locator.Current.GetService <ILocaleService>();
     settingsService = Locator.Current.GetService <ISettingsService>();
 }