Subversion Repositories SmartDukaan

Rev

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

Rev Author Line No. Line
2779 chandransh 1
/**
3430 rajveer 2
 * Autogenerated by Thrift Compiler (0.7.0)
2779 chandransh 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
 
3430 rajveer 13
public enum Role implements org.apache.thrift.TEnum {
14
  WAREHOUSE_EXECUTIVE(0),
15
  ADMIN(1),
4357 rajveer 16
  WAREHOUSE_MONITOR(2);
2779 chandransh 17
 
18
  private final int value;
19
 
20
  private Role(int value) {
21
    this.value = value;
22
  }
23
 
24
  /**
25
   * Get the integer value of this enum value, as defined in the Thrift IDL.
26
   */
27
  public int getValue() {
28
    return value;
29
  }
30
 
31
  /**
32
   * Find a the enum type by its integer value, as defined in the Thrift IDL.
33
   * @return null if the value is not found.
34
   */
35
  public static Role findByValue(int value) { 
3430 rajveer 36
    switch (value) {
37
      case 0:
38
        return WAREHOUSE_EXECUTIVE;
39
      case 1:
40
        return ADMIN;
41
      case 2:
4357 rajveer 42
        return WAREHOUSE_MONITOR;
3430 rajveer 43
      default:
44
        return null;
45
    }
2779 chandransh 46
  }
47
}