Subversion Repositories SmartDukaan

Rev

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

Rev Author Line No. Line
6000 mandeep.dh 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 RechargeOrderStatus implements org.apache.thrift.TEnum {
14
  PAYMENT_PENDING(1),
6031 rajveer 15
  PAYMENT_FAILED(2),
16
  PAYMENT_SUCCESSFUL(3),
6000 mandeep.dh 17
  RECHARGE_FAILED(4),
6031 rajveer 18
  RECHARGE_SUCCESSFUL(5);
6000 mandeep.dh 19
 
20
  private final int value;
21
 
22
  private RechargeOrderStatus(int value) {
23
    this.value = value;
24
  }
25
 
26
  /**
27
   * Get the integer value of this enum value, as defined in the Thrift IDL.
28
   */
29
  public int getValue() {
30
    return value;
31
  }
32
 
33
  /**
34
   * Find a the enum type by its integer value, as defined in the Thrift IDL.
35
   * @return null if the value is not found.
36
   */
37
  public static RechargeOrderStatus findByValue(int value) { 
38
    switch (value) {
39
      case 1:
40
        return PAYMENT_PENDING;
41
      case 2:
6031 rajveer 42
        return PAYMENT_FAILED;
43
      case 3:
6000 mandeep.dh 44
        return PAYMENT_SUCCESSFUL;
45
      case 4:
46
        return RECHARGE_FAILED;
47
      case 5:
6031 rajveer 48
        return RECHARGE_SUCCESSFUL;
6000 mandeep.dh 49
      default:
50
        return null;
51
    }
52
  }
53
}