com.backendless.push.DeviceRegistrationResult Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of backendless Show documentation
Show all versions of backendless Show documentation
Android SDK used by developers to provide Backendless API in apps.
package com.backendless.push;
import java.util.Map;
public class DeviceRegistrationResult
{
private String deviceToken;
private Map channelRegistrations;
/**
* @return The device token that device receives after registration on Google FCM.
*/
public String getDeviceToken()
{
return deviceToken;
}
/**
* @return The map, where key is a channel name and value is a device registration id (table DeviceRegistrations).
* It is received after successful registration on Backendless server.
*/
public Map getChannelRegistrations()
{
return channelRegistrations;
}
DeviceRegistrationResult setDeviceToken( String deviceToken )
{
this.deviceToken = deviceToken;
return this;
}
DeviceRegistrationResult setChannelRegistrations( Map channelRegistrations )
{
this.channelRegistrations = channelRegistrations;
return this;
}
@Override
public String toString()
{
return "DeviceRegistrationResult{" + "deviceToken='" + deviceToken + '\'' + ", channelRegistrations=" + channelRegistrations + '}';
}
}