예제 #1
0
        public async Task <IEnumerable <Notification> > GetReportedNotificationsAsync()
        {
            var response = await _remoteClient.GetAsync <NotificationsResponse>($"{_settings.ApiUrl}/19115store_getNotifications?id={_settings.ApiId}&apikey={_settings.ApiKey}");

            if (!response.Result.Success)
            {
                throw new Exception($"[WarsawOpenDataService] 19115store_getNotifications failed. Response code: {response.Result.ResponseCode}. Description: {response.Result.ResponseDesc}");
            }

            return(response.Result.Data.Notifications);
        }