Subversion Repositories SmartDukaan

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
12979 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.order;
7
 
8
 
9
import java.util.Map;
10
import java.util.HashMap;
11
import org.apache.thrift.TEnum;
12
 
13
public enum RechargeMode implements org.apache.thrift.TEnum {
14
  SYNC(1),
15
  ASYNC(2);
16
 
17
  private final int value;
18
 
19
  private RechargeMode(int value) {
20
    this.value = value;
21
  }
22
 
23
  /**
24
   * Get the integer value of this enum value, as defined in the Thrift IDL.
25
   */
26
  public int getValue() {
27
    return value;
28
  }
29
 
30
  /**
31
   * Find a the enum type by its integer value, as defined in the Thrift IDL.
32
   * @return null if the value is not found.
33
   */
34
  public static RechargeMode findByValue(int value) { 
35
    switch (value) {
36
      case 1:
37
        return SYNC;
38
      case 2:
39
        return ASYNC;
40
      default:
41
        return null;
42
    }
43
  }
44
}