Subversion Repositories SmartDukaan

Rev

Rev 11015 | Details | Compare with Previous | 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),
11015 kshitij.so 19
  NEGATIVE_MARGIN(6),
20
  CHEAP_BUT_NOT_PREF(7),
12363 kshitij.so 21
  PREF_BUT_NOT_CHEAP(8),
22
  AMONG_CHEAPEST_CAN_COMPETE(9),
23
  ALMOST_COMPETE(10);
9884 kshitij.so 24
 
25
  private final int value;
26
 
27
  private CompetitionCategory(int value) {
28
    this.value = value;
29
  }
30
 
31
  /**
32
   * Get the integer value of this enum value, as defined in the Thrift IDL.
33
   */
34
  public int getValue() {
35
    return value;
36
  }
37
 
38
  /**
39
   * Find a the enum type by its integer value, as defined in the Thrift IDL.
40
   * @return null if the value is not found.
41
   */
42
  public static CompetitionCategory findByValue(int value) { 
43
    switch (value) {
44
      case 1:
45
        return CANT_COMPETE;
46
      case 2:
47
        return BUY_BOX;
48
      case 3:
49
        return COMPETITIVE;
50
      case 4:
51
        return COMPETITIVE_NO_INVENTORY;
52
      case 5:
53
        return EXCEPTION;
54
      case 6:
55
        return NEGATIVE_MARGIN;
11015 kshitij.so 56
      case 7:
57
        return CHEAP_BUT_NOT_PREF;
58
      case 8:
59
        return PREF_BUT_NOT_CHEAP;
12363 kshitij.so 60
      case 9:
61
        return AMONG_CHEAPEST_CAN_COMPETE;
62
      case 10:
63
        return ALMOST_COMPETE;
9884 kshitij.so 64
      default:
65
        return null;
66
    }
67
  }
68
}