Esempio n. 1
0
    public BooleanResult isDeviceInTag(String theTag, String registrationID)
    {
        String          url      = HOST_NAME_SSL + TAGS_PATH + "/" + theTag + "/registration_ids/" + registrationID;
        ResponseWrapper response = this.sendGet(url, Authorization(), null);

        return(BooleanResult.fromResponse(response));
    }
Esempio n. 2
0
        //GET /v3/tags/{tag_value}/registration_ids/{registration_id}
        //查询某个设备是否在 tag 下。
        public BooleanResult isDeviceInTag(String theTag, String registrationID)
        {
            Preconditions.checkArgument(!String.IsNullOrEmpty(theTag), "theTag should be set");
            Preconditions.checkArgument(!String.IsNullOrEmpty(registrationID), "registrationID should be set");
            String          url      = HOST_NAME_SSL + TAGS_PATH + "/" + theTag + "/registration_ids/" + registrationID;
            ResponseWrapper response = this.sendGet(url, Authorization(), null);

            return(BooleanResult.fromResponse(response));
        }
Esempio n. 3
0
 public BooleanResult isDeviceInTag(string tag, string registrationID)
 {
     Preconditions.checkArgument(!string.IsNullOrEmpty(tag), (object)"theTag should be set");
     Preconditions.checkArgument(!string.IsNullOrEmpty(registrationID), (object)"registrationID should be set");
     return(BooleanResult.fromResponse(this.sendGet("https://device.jpush.cn/v3/tags/" + tag + "/registration_ids/" + registrationID, this.Authorization(), (string)null)));
 }