Subversion Repositories SmartDukaan

Rev

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

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