public async Task <ListErrorMessagesResponse> ListErrorMessages(ListErrorMessagesRequest request)
        {
            if (String.IsNullOrEmpty(request.Language))
            {
                return(new ListErrorMessagesResponse()
                {
                    Notifications = new ValidationResult(nameof(ErrorResources.LanguageIsEmpty))
                });
            }

            var response = await _proxy.CallAsync(c => c.GetAsync($"{_route}/{request.Language}"));

            return(await response.Deserialize <ListErrorMessagesResponse>());
        }
예제 #2
0
        public async Task <LifelineCheckResponse> LifelineCheck(LifelineCheckRequest request)
        {
            var response = await _proxy.CallAsync(c => c.GetAsync($"{_route}"));

            return(await response.Deserialize <LifelineCheckResponse>());
        }
예제 #3
0
        public async Task CrashGet(int exceptionType)
        {
            var response = await _proxy.CallAsync(c => c.GetAsync($"{_route}/{exceptionType}"));

            await response.Deserialize <ShoppingResponse>();
        }