Subversion Repositories SmartDukaan

Rev

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

Rev Author Line No. Line
8707 manish.sha 1
/**
2
 * Autogenerated by Thrift Compiler (0.7.0)
3
 *
4
 * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
5
 */
6
package in.shop2020.model.v1.user;
7
 
8
 
9
import java.util.Map;
10
import java.util.HashMap;
11
import org.apache.thrift.TEnum;
12
 
13
/**
14
 * Added by Manish Sharma
15
 */
16
public enum CouponCategory implements org.apache.thrift.TEnum {
17
  CUSTOMER_SATISFACTION(0),
18
  MARKETING(1),
11653 amit.gupta 19
  REFUND(2),
20
  CATEGORY(3);
8707 manish.sha 21
 
22
  private final int value;
23
 
24
  private CouponCategory(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 CouponCategory findByValue(int value) { 
40
    switch (value) {
41
      case 0:
42
        return CUSTOMER_SATISFACTION;
43
      case 1:
44
        return MARKETING;
45
      case 2:
46
        return REFUND;
11653 amit.gupta 47
      case 3:
48
        return CATEGORY;
8707 manish.sha 49
      default:
50
        return null;
51
    }
52
  }
53
}