Exemplo n.º 1
0
        /// <summary>
        /// Gets the alerts.
        /// </summary>
        /// <param name="customerId">The customer identifier.</param>
        /// <param name="request">The request.</param>
        /// <param name="token">The token.</param>
        /// <returns></returns>
        public async Task <PagedResult <PatientAlertsDto> > GetAlerts(int customerId, SearchAlertsDto request, string token)
        {
            string endpointUrl = string.Format("api/{0}/alerts/getalerts", customerId);

            var response = await apiClient.SendRequestAsync <PagedResult <PatientAlertsDto> >(
                endpointUrl,
                request,
                Method.POST,
                null,
                token
                );

            return(response);
        }
Exemplo n.º 2
0
 /// <summary>
 /// Gets the alerts.
 /// </summary>
 /// <param name="customerId">The customer identifier.</param>
 /// <param name="request">The request.</param>
 /// <param name="token">The token.</param>
 /// <returns></returns>
 public async Task <PagedResult <PatientAlertsDto> > GetAlerts(int customerId, SearchAlertsDto request, string token)
 {
     return(await vitalsDataProvider.GetAlerts(customerId, request, token));
 }