Subversion Repositories SmartDukaan

Rev

Rev 3578 | Rev 4267 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
3028 mandeep.dh 1
/**
3430 rajveer 2
 * Autogenerated by Thrift Compiler (0.7.0)
3028 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 TicketCategory implements org.apache.thrift.TEnum {
14
  RETURN_FORM(1),
15
  ORDER_CANCELLATION(2),
16
  DELIVERY_PROBLEM(3),
17
  PAYMENT_STATUS(4),
18
  ORDER_STATUS(5),
19
  PRODUCT_REQUEST(6),
20
  PRODUCT_QUESTION(7),
3499 mandeep.dh 21
  OTHER(8),
3578 mandeep.dh 22
  COD_VERIFICATION(9),
4008 mandeep.dh 23
  FAILED_PAYMENTS(10),
24
  DELAYED_DELIVERY(11);
3028 mandeep.dh 25
 
26
  private final int value;
27
 
28
  private TicketCategory(int value) {
29
    this.value = value;
30
  }
31
 
32
  /**
33
   * Get the integer value of this enum value, as defined in the Thrift IDL.
34
   */
35
  public int getValue() {
36
    return value;
37
  }
38
 
39
  /**
40
   * Find a the enum type by its integer value, as defined in the Thrift IDL.
41
   * @return null if the value is not found.
42
   */
43
  public static TicketCategory findByValue(int value) { 
3430 rajveer 44
    switch (value) {
45
      case 1:
46
        return RETURN_FORM;
47
      case 2:
48
        return ORDER_CANCELLATION;
49
      case 3:
50
        return DELIVERY_PROBLEM;
51
      case 4:
52
        return PAYMENT_STATUS;
53
      case 5:
54
        return ORDER_STATUS;
55
      case 6:
56
        return PRODUCT_REQUEST;
57
      case 7:
58
        return PRODUCT_QUESTION;
59
      case 8:
60
        return OTHER;
3499 mandeep.dh 61
      case 9:
62
        return COD_VERIFICATION;
3578 mandeep.dh 63
      case 10:
64
        return FAILED_PAYMENTS;
4008 mandeep.dh 65
      case 11:
66
        return DELAYED_DELIVERY;
3430 rajveer 67
      default:
68
        return null;
69
    }
3028 mandeep.dh 70
  }
71
}