public static UsersResult fromResponse(ResponseWrapper responseWrapper) { UsersResult usersResult = new UsersResult(); if (responseWrapper.isServerResponse()) { usersResult = JsonConvert.DeserializeObject<UsersResult> (responseWrapper.responseContent); } usersResult.ResponseResult=responseWrapper; return usersResult; }
public static TagAliasResult fromResponse(ResponseWrapper responseWrapper) { TagAliasResult tagAliasResult = new TagAliasResult(); if (responseWrapper.isServerResponse()) { tagAliasResult = JsonConvert.DeserializeObject<TagAliasResult>(responseWrapper.responseContent); } tagAliasResult.ResponseResult = responseWrapper; return tagAliasResult; }
public static AliasDeviceListResult fromResponse(ResponseWrapper responseWrapper) { AliasDeviceListResult aliasDeviceListResult = new AliasDeviceListResult(); if (responseWrapper.isServerResponse()) { aliasDeviceListResult = JsonConvert.DeserializeObject<AliasDeviceListResult>(responseWrapper.responseContent); } aliasDeviceListResult.ResponseResult = responseWrapper; return aliasDeviceListResult; }