All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.backendless.rt.RTSubscription Maven / Gradle / Ivy

There is a newer version: 7.0-alpha
Show newest version
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() + '}';
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy