Subversion Repositories SmartDukaan

Rev

Rev 1598 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
1598 ankur.sing 1
/**
3430 rajveer 2
 * Autogenerated by Thrift Compiler (0.7.0)
1598 ankur.sing 3
 *
4
 * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
5
 */
6
package in.shop2020.model.v1.user;
7
 
8
 
9
import java.util.Map;
10
import java.util.HashMap;
11
import org.apache.thrift.TEnum;
12
 
3430 rajveer 13
public enum UserType implements org.apache.thrift.TEnum {
14
  USER(0),
15
  ANONYMOUS(1);
1598 ankur.sing 16
 
17
  private final int value;
18
 
19
  private UserType(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 UserType findByValue(int value) { 
3430 rajveer 35
    switch (value) {
36
      case 0:
37
        return USER;
38
      case 1:
39
        return ANONYMOUS;
40
      default:
41
        return null;
42
    }
1598 ankur.sing 43
  }
44
}