Subversion Repositories SmartDukaan

Rev

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),
8982 vikram.rag 20
  SNAPDEAL(7),
11526 amit.gupta 21
  FLIPKART(8),
22
  MOBILESITE(9);
7293 anupam.sin 23
 
24
  private final int value;
25
 
26
  private OrderSource(int value) {
27
    this.value = value;
28
  }
29
 
30
  /**
31
   * Get the integer value of this enum value, as defined in the Thrift IDL.
32
   */
33
  public int getValue() {
34
    return value;
35
  }
36
 
37
  /**
38
   * Find a the enum type by its integer value, as defined in the Thrift IDL.
39
   * @return null if the value is not found.
40
   */
41
  public static OrderSource findByValue(int value) { 
42
    switch (value) {
43
      case 1:
44
        return WEBSITE;
45
      case 2:
46
        return STORE;
7356 vikram.rag 47
      case 3:
48
        return AMAZON;
7410 amar.kumar 49
      case 4:
50
        return HOMESHOP18;
51
      case 5:
52
        return NAAPTOL;
53
      case 6:
54
        return EBAY;
8488 amar.kumar 55
      case 7:
56
        return SNAPDEAL;
8982 vikram.rag 57
      case 8:
58
        return FLIPKART;
11526 amit.gupta 59
      case 9:
60
        return MOBILESITE;
7293 anupam.sin 61
      default:
62
        return null;
63
    }
64
  }
65
}