Subversion Repositories SmartDukaan

Rev

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

Rev Author Line No. Line
553 chandransh 1
/**
3430 rajveer 2
 * Autogenerated by Thrift Compiler (0.7.0)
553 chandransh 3
 *
4
 * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
5
 */
6
package in.shop2020.model.v1.user;
7
 
8
 
9
import java.util.Map;
10
import java.util.HashMap;
11
import org.apache.thrift.TEnum;
12
 
3430 rajveer 13
public enum CartStatus implements org.apache.thrift.TEnum {
14
  ACTIVE(0),
15
  INACTIVE(1),
16
  EXPIRED(2),
17
  COMMITTED(3),
18
  COMMIT_FAILED(4);
553 chandransh 19
 
20
  private final int value;
21
 
22
  private CartStatus(int value) {
23
    this.value = value;
24
  }
25
 
26
  /**
27
   * Get the integer value of this enum value, as defined in the Thrift IDL.
28
   */
29
  public int getValue() {
30
    return value;
31
  }
32
 
33
  /**
34
   * Find a the enum type by its integer value, as defined in the Thrift IDL.
35
   * @return null if the value is not found.
36
   */
37
  public static CartStatus findByValue(int value) { 
3430 rajveer 38
    switch (value) {
39
      case 0:
40
        return ACTIVE;
41
      case 1:
42
        return INACTIVE;
43
      case 2:
44
        return EXPIRED;
45
      case 3:
46
        return COMMITTED;
47
      case 4:
48
        return COMMIT_FAILED;
49
      default:
50
        return null;
51
    }
553 chandransh 52
  }
53
}