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

com.backendless.rt.data.RelationEvents Maven / Gradle / Ivy

The newest version!
package com.backendless.rt.data;

import com.backendless.rt.RTEvent;

public enum RelationEvents implements RTEvent
{
  relations_added( "add" ),
  relations_set( "set" ),
  relations_removed( "delete" );

  private final String eventName;

  RelationEvents( String eventName )
  {
    this.eventName = eventName;
  }

  @Override
  public String eventName()
  {
    return this.eventName;
  }

  public static RelationEvents forName( String eventName )
  {
    for( RelationEvents relationEvents : RelationEvents.values() )
    {
      if( relationEvents.eventName().equals( eventName ) )
        return relationEvents;
    }

    throw new IllegalArgumentException( "There is no relation event with name " + eventName );
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy