com.backendless.rt.RTSubscription 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.rt;
public class RTSubscription extends AbstractRequest
{
private final SubscriptionNames subscriptionName;
protected RTSubscription( SubscriptionNames subscriptionName, RTCallback callback )
{
super( callback );
if( callback == null )
throw new IllegalArgumentException( "Callback can not be null" );
this.subscriptionName = subscriptionName;
}
@Override
public String getName()
{
return subscriptionName.name();
}
public SubscriptionNames getSubscriptionName()
{
return subscriptionName;
}
@Override
public String toString()
{
return "RTSubscription{" + "id='" + getId() + '\'' + ", callback=" + getCallback() + ", subscriptionName=" + subscriptionName + ", options=" + getOptions() + '}';
}
}