コード例 #1
0
        public async Task <DataServiceResponse <ScheduleResults> > GetAvailableTimes(DateTime StartDate, DateTime EndDate, string BranchNumber, int AppointmentType, int AppointmentSubType, int ClientLanguage)
        {
            string url = string.Format(SERVICE_URL, BranchNumber, AppointmentType, AppointmentSubType, StartDate.ToString("o"),
                                       EndDate.ToString("o"), ClientLanguage);

            url = GetOperation(url);
            DataServiceResponse <ScheduleResults> response = await GetData <ScheduleResults>(url);

            return(response);
        }
コード例 #2
0
        public async Task <bool> Load()
        {
            DataServiceResponse <Branch> response = await GetData <Branch>(ServiceUrl);

            if (response.Success)
            {
                Branch = response.Data;
                return(true);
            }
            return(false);
        }