Subversion Repositories SmartDukaan

Rev

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

Rev Author Line No. Line
103 ashish 1
/**
2
 * Autogenerated by Thrift
3
 *
4
 * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
5
 */
6
package in.shop2020.model.v1.catalog;
7
 
8
 
9
import java.util.Map;
10
import java.util.HashMap;
11
import org.apache.thrift.TEnum;
12
/**
1329 chandransh 13
 * Caution :- Never ever change the numbers in it. Please confirm from @Chandranshu or @Rajveer before any changes in enum and other entries in file.
123 ashish 14
 * *
103 ashish 15
 */
16
public enum status implements TEnum{
17
    PHASED_OUT(0),
18
    DELETED(1),
19
    PAUSED(2),
123 ashish 20
    ACTIVE(3),
721 chandransh 21
    IN_PROCESS(4),
2984 rajveer 22
    CONTENT_COMPLETE(5),
23
    PAUSED_BY_RISK(6);
103 ashish 24
 
25
  private static final Map<Integer, status> BY_VALUE = new HashMap<Integer,status>() {{
26
    for(status val : status.values()) {
27
      put(val.getValue(), val);
28
    }
29
  }};
30
 
31
  private final int value;
32
 
33
  private status(int value) {
34
    this.value = value;
35
  }
36
 
37
  /**
38
   * Get the integer value of this enum value, as defined in the Thrift IDL.
39
   */
40
  public int getValue() {
41
    return value;
42
  }
43
 
44
  /**
45
   * Find a the enum type by its integer value, as defined in the Thrift IDL.
46
   * @return null if the value is not found.
47
   */
48
  public static status findByValue(int value) { 
49
    return BY_VALUE.get(value);
50
  }
51
}