Subversion Repositories SmartDukaan

Rev

Rev 3430 | Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
3028 mandeep.dh 1
/**
2
 * Autogenerated by Thrift
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
public enum TicketCategory implements TEnum{
13
    RETURN_FORM(1),
14
    ORDER_CANCELLATION(2),
15
    DELIVERY_PROBLEM(3),
16
    PAYMENT_STATUS(4),
17
    ORDER_STATUS(5),
18
    PRODUCT_REQUEST(6),
19
    PRODUCT_QUESTION(7),
20
    OTHER(8);
21
 
22
  private static final Map<Integer, TicketCategory> BY_VALUE = new HashMap<Integer,TicketCategory>() {{
23
    for(TicketCategory val : TicketCategory.values()) {
24
      put(val.getValue(), val);
25
    }
26
  }};
27
 
28
  private final int value;
29
 
30
  private TicketCategory(int value) {
31
    this.value = value;
32
  }
33
 
34
  /**
35
   * Get the integer value of this enum value, as defined in the Thrift IDL.
36
   */
37
  public int getValue() {
38
    return value;
39
  }
40
 
41
  /**
42
   * Find a the enum type by its integer value, as defined in the Thrift IDL.
43
   * @return null if the value is not found.
44
   */
45
  public static TicketCategory findByValue(int value) { 
46
    return BY_VALUE.get(value);
47
  }
48
}