Subversion Repositories SmartDukaan

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
12691 manish.sha 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.utils;
7
 
8
 
9
import java.util.Map;
10
import java.util.HashMap;
11
import org.apache.thrift.TEnum;
12
 
13
public enum SmsStatus implements org.apache.thrift.TEnum {
14
  IN_PROCESS(0),
15
  DELIVERED(1),
16
  UNDELIVERED(2),
17
  SERVICE_ERROR(3),
18
  USER_ABSENT(4),
19
  MEMORY_FULL(5),
20
  NDLC_FAIL(6),
21
  INVALID_NUMBER(7);
22
 
23
  private final int value;
24
 
25
  private SmsStatus(int value) {
26
    this.value = value;
27
  }
28
 
29
  /**
30
   * Get the integer value of this enum value, as defined in the Thrift IDL.
31
   */
32
  public int getValue() {
33
    return value;
34
  }
35
 
36
  /**
37
   * Find a the enum type by its integer value, as defined in the Thrift IDL.
38
   * @return null if the value is not found.
39
   */
40
  public static SmsStatus findByValue(int value) { 
41
    switch (value) {
42
      case 0:
43
        return IN_PROCESS;
44
      case 1:
45
        return DELIVERED;
46
      case 2:
47
        return UNDELIVERED;
48
      case 3:
49
        return SERVICE_ERROR;
50
      case 4:
51
        return USER_ABSENT;
52
      case 5:
53
        return MEMORY_FULL;
54
      case 6:
55
        return NDLC_FAIL;
56
      case 7:
57
        return INVALID_NUMBER;
58
      default:
59
        return null;
60
    }
61
  }
62
}