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

com.evernote.edam.type.BusinessUserRole Maven / Gradle / Ivy

The newest version!
/**
 * Autogenerated by Thrift
 *
 * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
 */
package com.evernote.edam.type;


import java.util.Map;
import java.util.HashMap;
import com.evernote.thrift.TEnum;

/**
 * Enumeration of the roles that a User can have within an Evernote Business account.
 * 
 * ADMIN: The user is an administrator of the Evernote Business account.
 * 
 * NORMAL: The user is a regular user within the Evernote Business account.
 */
public enum BusinessUserRole implements TEnum {
  ADMIN(1),
  NORMAL(2);

  private final int value;

  private BusinessUserRole(int value) {
    this.value = value;
  }

  /**
   * Get the integer value of this enum value, as defined in the Thrift IDL.
   */
  public int getValue() {
    return value;
  }

  /**
   * Find a the enum type by its integer value, as defined in the Thrift IDL.
   * @return null if the value is not found.
   */
  public static BusinessUserRole findByValue(int value) { 
    switch (value) {
      case 1:
        return ADMIN;
      case 2:
        return NORMAL;
      default:
        return null;
    }
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy