Esempio n. 1
0
        public API.Handover GetHandoverUrl(string language)
        {
            string path = template.UrlFor(UrlTemplate.HANDOVER_URL_PATH)
                          .Replace("{language}", language)
                          .Build();

            try
            {
                string       stringResponse = restClient.Get(path);
                API.Handover apiResponse    = JsonConvert.DeserializeObject <API.Handover>(stringResponse, jsonSettings);
                return(apiResponse);
            }
            catch (OssServerException e)
            {
                throw new OssServerException("Could not get handover url.", e);
            }
            catch (Exception e)
            {
                throw new OssException("Could not get handover url.", e);
            }
        }
Esempio n. 2
0
 public Handover GetHandoverUrl(string language)
 {
     API.Handover apiHandover = apiClient.GetHandoverUrl(language);
     return(new HandoverConverter(apiHandover).ToSDKHandover(language));
 }