Subversion Repositories SmartDukaan

Rev

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

Rev Author Line No. Line
103 ashish 1
/**
3430 rajveer 2
 * Autogenerated by Thrift Compiler (0.7.0)
103 ashish 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;
3430 rajveer 12
 
103 ashish 13
/**
1329 chandransh 14
 * 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 15
 * *
103 ashish 16
 */
3430 rajveer 17
public enum status implements org.apache.thrift.TEnum {
18
  PHASED_OUT(0),
19
  DELETED(1),
20
  PAUSED(2),
21
  ACTIVE(3),
22
  IN_PROCESS(4),
23
  CONTENT_COMPLETE(5),
24
  PAUSED_BY_RISK(6);
103 ashish 25
 
26
  private final int value;
27
 
28
  private status(int value) {
29
    this.value = value;
30
  }
31
 
32
  /**
33
   * Get the integer value of this enum value, as defined in the Thrift IDL.
34
   */
35
  public int getValue() {
36
    return value;
37
  }
38
 
39
  /**
40
   * Find a the enum type by its integer value, as defined in the Thrift IDL.
41
   * @return null if the value is not found.
42
   */
43
  public static status findByValue(int value) { 
3430 rajveer 44
    switch (value) {
45
      case 0:
46
        return PHASED_OUT;
47
      case 1:
48
        return DELETED;
49
      case 2:
50
        return PAUSED;
51
      case 3:
52
        return ACTIVE;
53
      case 4:
54
        return IN_PROCESS;
55
      case 5:
56
        return CONTENT_COMPLETE;
57
      case 6:
58
        return PAUSED_BY_RISK;
59
      default:
60
        return null;
61
    }
103 ashish 62
  }
63
}