cn.jpush.api.device.DeviceClient.deleteTag C# (CSharp) Method

deleteTag() public method

public deleteTag ( String theTag, String platform ) : cn.jpush.api.common.resp.DefaultResult
theTag String
platform String
return cn.jpush.api.common.resp.DefaultResult
        public DefaultResult deleteTag(String theTag, String platform)
        {
            Preconditions.checkArgument(!String.IsNullOrEmpty(theTag), "theTag should be set");
            Preconditions.checkArgument(StringUtil.IsValidTag(theTag), "theTag should be the right format");
            String url = HOST_NAME_SSL + TAGS_PATH + "/" + theTag;
            if (null != platform) {
                url += "?platform=" + platform;
            }

            ResponseWrapper response = this.sendDelete(url, Authorization(), null);
            return DefaultResult.fromResponse(response);
        }