Subversion Repositories SmartDukaan

Rev

Rev 4020 | Blame | Compare with Previous | Last modification | View Log | RSS feed

/**
 * Autogenerated by Thrift Compiler (0.7.0)
 *
 * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
 */
package in.shop2020.crm;


import java.util.Map;
import java.util.HashMap;
import org.apache.thrift.TEnum;

public enum ActivityType implements org.apache.thrift.TEnum {
  SEND_EMAIL_TO_CUSTOMER(1),
  RECEIVED_EMAIL_FROM_CUSTOMER(2),
  CALLED_CUSTOMER(3),
  RECEIVED_CALL_FROM_CUSTOMER(4),
  OTHER(5),
  ESCALATE_TICKET(6),
  PROFITMANDI_CRM_APP_TICKET(7);

  private final int value;

  private ActivityType(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 ActivityType findByValue(int value) { 
    switch (value) {
      case 1:
        return SEND_EMAIL_TO_CUSTOMER;
      case 2:
        return RECEIVED_EMAIL_FROM_CUSTOMER;
      case 3:
        return CALLED_CUSTOMER;
      case 4:
        return RECEIVED_CALL_FROM_CUSTOMER;
      case 5:
        return OTHER;
      case 6:
        return ESCALATE_TICKET;
      case 7:
        return PROFITMANDI_CRM_APP_TICKET;
      default:
        return null;
    }
  }
}