Subversion Repositories SmartDukaan

Rev

Details | Last modification | View Log | RSS feed

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