Subversion Repositories SmartDukaan

Rev

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

Rev Author Line No. Line
7293 anupam.sin 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.order;
7
 
8
 
9
import java.util.Map;
10
import java.util.HashMap;
11
import org.apache.thrift.TEnum;
12
 
13
public enum OrderSource implements org.apache.thrift.TEnum {
14
  WEBSITE(1),
7356 vikram.rag 15
  STORE(2),
7410 amar.kumar 16
  AMAZON(3),
17
  HOMESHOP18(4),
18
  NAAPTOL(5),
8488 amar.kumar 19
  EBAY(6),
20
  SNAPDEAL(7);
7293 anupam.sin 21
 
22
  private final int value;
23
 
24
  private OrderSource(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 OrderSource findByValue(int value) { 
40
    switch (value) {
41
      case 1:
42
        return WEBSITE;
43
      case 2:
44
        return STORE;
7356 vikram.rag 45
      case 3:
46
        return AMAZON;
7410 amar.kumar 47
      case 4:
48
        return HOMESHOP18;
49
      case 5:
50
        return NAAPTOL;
51
      case 6:
52
        return EBAY;
8488 amar.kumar 53
      case 7:
54
        return SNAPDEAL;
7293 anupam.sin 55
      default:
56
        return null;
57
    }
58
  }
59
}