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

getDeviceTagAlias() public method

public getDeviceTagAlias ( String registrationId ) : cn.jpush.api.device.TagAliasResult
registrationId String
return cn.jpush.api.device.TagAliasResult
        public TagAliasResult getDeviceTagAlias(String registrationId)
        {
            Preconditions.checkArgument(!String.IsNullOrEmpty(registrationId), "registrationId should be set");
            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);
        }

Usage Example

 public void getDeviceTagAliasTest()
 {
     DeviceClient client = new DeviceClient(APP_KEY, MASTER_SECRET);
     client.getDeviceTagAlias(REGISTRATION_ID1);
 }
All Usage Examples Of cn.jpush.api.device.DeviceClient::getDeviceTagAlias