Subversion Repositories SmartDukaan

Rev

Rev 7293 | Rev 7410 | 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),
16
  AMAZON(3);
7293 anupam.sin 17
 
18
  private final int value;
19
 
20
  private OrderSource(int value) {
21
    this.value = value;
22
  }
23
 
24
  /**
25
   * Get the integer value of this enum value, as defined in the Thrift IDL.
26
   */
27
  public int getValue() {
28
    return value;
29
  }
30
 
31
  /**
32
   * Find a the enum type by its integer value, as defined in the Thrift IDL.
33
   * @return null if the value is not found.
34
   */
35
  public static OrderSource findByValue(int value) { 
36
    switch (value) {
37
      case 1:
38
        return WEBSITE;
39
      case 2:
40
        return STORE;
7356 vikram.rag 41
      case 3:
42
        return AMAZON;
7293 anupam.sin 43
      default:
44
        return null;
45
    }
46
  }
47
}