Subversion Repositories SmartDukaan

Rev

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

Rev Author Line No. Line
3378 vikas 1
/**
3430 rajveer 2
 * Autogenerated by Thrift Compiler (0.7.0)
3378 vikas 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;
3430 rajveer 12
 
3378 vikas 13
/**
14
 * Affiliate track log types for affiliate tracking
15
 */
3430 rajveer 16
public enum TrackLogType implements org.apache.thrift.TEnum {
17
  NEW_REGISTRATION(1),
18
  PAYMENT_SUCCESS(2);
3378 vikas 19
 
20
  private final int value;
21
 
22
  private TrackLogType(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 TrackLogType findByValue(int value) { 
3430 rajveer 38
    switch (value) {
39
      case 1:
40
        return NEW_REGISTRATION;
41
      case 2:
42
        return PAYMENT_SUCCESS;
43
      default:
44
        return null;
45
    }
3378 vikas 46
  }
47
}