Subversion Repositories SmartDukaan

Rev

Rev 11526 | 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),
8982 vikram.rag 20
  SNAPDEAL(7),
11526 amit.gupta 21
  FLIPKART(8),
12580 amit.gupta 22
  MOBILESITE(9),
23
  JUNGLEE(10);
7293 anupam.sin 24
 
25
  private final int value;
26
 
27
  private OrderSource(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 OrderSource findByValue(int value) { 
43
    switch (value) {
44
      case 1:
45
        return WEBSITE;
46
      case 2:
47
        return STORE;
7356 vikram.rag 48
      case 3:
49
        return AMAZON;
7410 amar.kumar 50
      case 4:
51
        return HOMESHOP18;
52
      case 5:
53
        return NAAPTOL;
54
      case 6:
55
        return EBAY;
8488 amar.kumar 56
      case 7:
57
        return SNAPDEAL;
8982 vikram.rag 58
      case 8:
59
        return FLIPKART;
11526 amit.gupta 60
      case 9:
61
        return MOBILESITE;
12580 amit.gupta 62
      case 10:
63
        return JUNGLEE;
7293 anupam.sin 64
      default:
65
        return null;
66
    }
67
  }
68
}