Subversion Repositories SmartDukaan

Rev

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