Subversion Repositories SmartDukaan

Rev

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