Exemple #1
0
        //GET /v3/tags/
        //获取当前应用的所有标签列表。

        public TagListResult getTagList()
        {
            String          url      = HOST_NAME_SSL + TAGS_PATH + "/";
            String          auth     = Base64.getBase64Encode(this.appKey + ":" + this.masterSecret);
            ResponseWrapper response = this.sendGet(url, auth, null);

            return(TagListResult.fromResponse(response));
        }
 public static TagListResult fromResponse(ResponseWrapper responseWrapper)
 {
     TagListResult tagListResult = new TagListResult();
     if (responseWrapper.isServerResponse())
     {
         tagListResult = JsonConvert.DeserializeObject<TagListResult>(responseWrapper.responseContent);
     }
     tagListResult.ResponseResult = responseWrapper;
     return tagListResult;
 }
Exemple #3
0
        public static TagListResult fromResponse(ResponseWrapper responseWrapper)
        {
            TagListResult tagListResult = new TagListResult();

            if (responseWrapper.isServerResponse())
            {
                tagListResult = (TagListResult)JsonConvert.DeserializeObject <TagListResult>(responseWrapper.responseContent);
            }
            tagListResult.ResponseResult = responseWrapper;
            return(tagListResult);
        }
Exemple #4
0
 public TagListResult getTagList()
 {
     return(TagListResult.fromResponse(this.sendGet("https://device.jpush.cn/v3/tags/", Base64.getBase64Encode(this.appKey + ":" + this.masterSecret), (string)null)));
 }