Subversion Repositories SmartDukaan

Rev

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

Rev Author Line No. Line
3106 mandeep.dh 1
/**
3430 rajveer 2
 * Autogenerated by Thrift Compiler (0.7.0)
3106 mandeep.dh 3
 *
4
 * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
5
 */
6
package in.shop2020.crm;
7
 
8
 
9
import java.util.Map;
10
import java.util.HashMap;
11
import org.apache.thrift.TEnum;
12
 
3430 rajveer 13
public enum ActivityType implements org.apache.thrift.TEnum {
14
  SEND_EMAIL_TO_CUSTOMER(1),
15
  RECEIVED_EMAIL_FROM_CUSTOMER(2),
16
  CALLED_CUSTOMER(3),
17
  RECEIVED_CALL_FROM_CUSTOMER(4),
4020 mandeep.dh 18
  OTHER(5),
18709 manas 19
  ESCALATE_TICKET(6),
20
  PROFITMANDI_CRM_APP_TICKET(7);
3106 mandeep.dh 21
 
22
  private final int value;
23
 
24
  private ActivityType(int value) {
25
    this.value = value;
26
  }
27
 
28
  /**
29
   * Get the integer value of this enum value, as defined in the Thrift IDL.
30
   */
31
  public int getValue() {
32
    return value;
33
  }
34
 
35
  /**
36
   * Find a the enum type by its integer value, as defined in the Thrift IDL.
37
   * @return null if the value is not found.
38
   */
39
  public static ActivityType findByValue(int value) { 
3430 rajveer 40
    switch (value) {
41
      case 1:
42
        return SEND_EMAIL_TO_CUSTOMER;
43
      case 2:
44
        return RECEIVED_EMAIL_FROM_CUSTOMER;
45
      case 3:
46
        return CALLED_CUSTOMER;
47
      case 4:
48
        return RECEIVED_CALL_FROM_CUSTOMER;
49
      case 5:
50
        return OTHER;
4020 mandeep.dh 51
      case 6:
52
        return ESCALATE_TICKET;
18709 manas 53
      case 7:
54
        return PROFITMANDI_CRM_APP_TICKET;
3430 rajveer 55
      default:
56
        return null;
57
    }
3106 mandeep.dh 58
  }
59
}