Ejemplo n.º 1
0
        /// <summary>
        /// Retrieves all authorities.
        /// </summary>
        /// <returns>Returns details of all authorities.</returns>
        public async Task <FhrResponse <Authorities> > GetAsync()
        {
            var url = _httpService.BuildApiUrl(HttpConstants.Endpoints.Authorities);

            var response = await _httpService.GetAsync <Authorities>(url);

            return(response);
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Retrieves a details of a single establishment, selected by Id.
        /// </summary>
        /// <param name="id">The id of the establishment.</param>
        /// <returns>Returns a details of a single establishment, selected by Id.</returns>
        public async Task <FhrResponse <Establishment> > GetAsync(int id)
        {
            var url = _httpService.BuildApiUrl(HttpConstants.Endpoints.Establishment, id);

            var response = await _httpService.GetAsync <Establishment>(url);

            return(response);
        }
Ejemplo n.º 3
0
        /// <inheritdoc />
        public async Task <FhrResponse <RatingOperators> > GetAsync()
        {
            var url = _httpService.BuildApiUrl(HttpConstants.Endpoints.RatingOperators);

            var response = await _httpService.GetAsync <RatingOperators>(url);

            return(response);
        }