Subversion Repositories SmartDukaan

Rev

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

Rev Author Line No. Line
9884 kshitij.so 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.catalog;
7
 
8
 
9
import java.util.Map;
10
import java.util.HashMap;
11
import org.apache.thrift.TEnum;
12
 
13
public enum CompetitionCategory implements org.apache.thrift.TEnum {
14
  CANT_COMPETE(1),
15
  BUY_BOX(2),
16
  COMPETITIVE(3),
17
  COMPETITIVE_NO_INVENTORY(4),
18
  EXCEPTION(5),
19
  NEGATIVE_MARGIN(6);
20
 
21
  private final int value;
22
 
23
  private CompetitionCategory(int value) {
24
    this.value = value;
25
  }
26
 
27
  /**
28
   * Get the integer value of this enum value, as defined in the Thrift IDL.
29
   */
30
  public int getValue() {
31
    return value;
32
  }
33
 
34
  /**
35
   * Find a the enum type by its integer value, as defined in the Thrift IDL.
36
   * @return null if the value is not found.
37
   */
38
  public static CompetitionCategory findByValue(int value) { 
39
    switch (value) {
40
      case 1:
41
        return CANT_COMPETE;
42
      case 2:
43
        return BUY_BOX;
44
      case 3:
45
        return COMPETITIVE;
46
      case 4:
47
        return COMPETITIVE_NO_INVENTORY;
48
      case 5:
49
        return EXCEPTION;
50
      case 6:
51
        return NEGATIVE_MARGIN;
52
      default:
53
        return null;
54
    }
55
  }
56
}