Exemplo n.º 1
0
        public ContactsPageViewModel(IUserService userService, INavigationService navigationService, IAdockaApiService adockaService)
        {
            _userService       = userService;
            _navigationService = navigationService;
            _adockaApiService  = adockaService;

            _adockaUser = _userService.GetUser();
            _api        = _adockaApiService.GetApiClient(_adockaUser.PersonId, _adockaUser.ApiKey);

            this.SearchModel = new AdockaDtoSearchModel
            {
                ItemType                          = "customer",
                SearchStr                         = "",
                SearchTags                        = new List <string>(),
                SearchWeeks                       = new List <AdockaDtoWeekModel>(),
                SearchCountyCouncilName           = null,
                SearchPreferedCountyCouncilName   = null,
                SearchKnowledgeOfSystemOptionName = "",
                Skip = 0,
                Take = 30,
                ResponsiblePersonId         = null,
                OnlyQualityFullfilled       = false,
                ContactFilters              = new List <string>(),
                YearSpanFilter              = new List <AdockaDtoYearSpanFilter>(),
                AreaOfExpertise             = null,
                ReminderDate                = null,
                CountryId                   = null,
                AvailableForWorkInCountries = new List <string>()
            };
        }
Exemplo n.º 2
0
        public DeliveryPageViewModel(IUserService userService, INavigationService navigationService, IAdockaApiService adockaService)
        {
            _userService       = userService;
            _navigationService = navigationService;
            _adockaApiService  = adockaService;

            _adockaUser = _userService.GetUser();
            _api        = _adockaApiService.GetApiClient(_adockaUser.PersonId, _adockaUser.ApiKey);
        }
Exemplo n.º 3
0
        public ContactEditPageViewModel(IUserService userService, INavigationService navigationService, IAdockaApiService adockaService)
        {
            _userService       = userService;
            _navigationService = navigationService;
            _adockaApiService  = adockaService;

            _adockaUser = _userService.GetUser();
            _api        = _adockaApiService.GetApiClient(_adockaUser.PersonId, _adockaUser.ApiKey);

            SaveCommand = new Command(async() => await SaveAsync());
        }