Ejemplo n.º 1
0
        public TagAliasResult getDeviceTagAlias(String registrationId)
        {
            String url  = HOST_NAME_SSL + DEVICES_PATH + "/" + registrationId;
            String auth = Base64.getBase64Encode(this.appKey + ":" + this.masterSecret);

            ResponseWrapper response = this.sendGet(url, auth, null);

            return(TagAliasResult.fromResponse(response));
        }
Ejemplo n.º 2
0
 public static TagAliasResult fromResponse(ResponseWrapper responseWrapper)
 {
     TagAliasResult tagAliasResult = new TagAliasResult();
     if (responseWrapper.isServerResponse())
     {
         tagAliasResult = JsonConvert.DeserializeObject<TagAliasResult>(responseWrapper.responseContent);
     }
     tagAliasResult.ResponseResult = responseWrapper;
     return tagAliasResult;
 }
Ejemplo n.º 3
0
        public static TagAliasResult fromResponse(ResponseWrapper responseWrapper)
        {
            TagAliasResult tagAliasResult = new TagAliasResult();

            if (responseWrapper.isServerResponse())
            {
                tagAliasResult = JsonConvert.DeserializeObject <TagAliasResult>(responseWrapper.responseContent);
            }
            tagAliasResult.ResponseResult = responseWrapper;
            return(tagAliasResult);
        }