Subversion Repositories SmartDukaan

Rev

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
/**
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),
5217 amit.gupta 24
  PAUSED_BY_RISK(6),
25
  COMING_SOON(7);
103 ashish 26
 
27
  private final int value;
28
 
29
  private status(int value) {
30
    this.value = value;
31
  }
32
 
33
  /**
34
   * Get the integer value of this enum value, as defined in the Thrift IDL.
35
   */
36
  public int getValue() {
37
    return value;
38
  }
39
 
40
  /**
41
   * Find a the enum type by its integer value, as defined in the Thrift IDL.
42
   * @return null if the value is not found.
43
   */
44
  public static status findByValue(int value) { 
3430 rajveer 45
    switch (value) {
46
      case 0:
47
        return PHASED_OUT;
48
      case 1:
49
        return DELETED;
50
      case 2:
51
        return PAUSED;
52
      case 3:
53
        return ACTIVE;
54
      case 4:
55
        return IN_PROCESS;
56
      case 5:
57
        return CONTENT_COMPLETE;
58
      case 6:
59
        return PAUSED_BY_RISK;
5217 amit.gupta 60
      case 7:
61
        return COMING_SOON;
3430 rajveer 62
      default:
63
        return null;
64
    }
103 ashish 65
  }
66
}