public static AliasDeviceListResult fromResponse(ResponseWrapper responseWrapper)
 {
     AliasDeviceListResult aliasDeviceListResult = new AliasDeviceListResult();
     if (responseWrapper.isServerResponse())
     {
         aliasDeviceListResult = JsonConvert.DeserializeObject<AliasDeviceListResult>(responseWrapper.responseContent);
     }
     aliasDeviceListResult.ResponseResult = responseWrapper;
     return aliasDeviceListResult;
 }
Example #2
0
        public static AliasDeviceListResult fromResponse(ResponseWrapper responseWrapper)
        {
            AliasDeviceListResult aliasDeviceListResult = new AliasDeviceListResult();

            if (responseWrapper.isServerResponse())
            {
                aliasDeviceListResult = JsonConvert.DeserializeObject <AliasDeviceListResult>(responseWrapper.responseContent);
            }
            aliasDeviceListResult.ResponseResult = responseWrapper;
            return(aliasDeviceListResult);
        }
Example #3
0
        // ------------- alias

        public AliasDeviceListResult getAliasDeviceList(String alias, String platform)
        {
            String url = HOST_NAME_SSL + ALIASES_PATH + "/" + alias;

            if (null != platform)
            {
                url += "?platform=" + platform;
            }
            ResponseWrapper response = this.sendGet(url, Authorization(), null);

            return(AliasDeviceListResult.fromResponse(response));
        }