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);
            }
        }
Example #2
0
 public Handover GetHandoverUrl(string language)
 {
     API.Handover apiHandover = apiClient.GetHandoverUrl(language);
     return(new HandoverConverter(apiHandover).ToSDKHandover(language));
 }