Subversion Repositories SmartDukaan

Rev

Rev 7967 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 7967 Rev 31223
Line 3... Line 3...
3
 *
3
 *
4
 * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
4
 * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
5
 */
5
 */
6
package in.shop2020.model.v1.order;
6
package in.shop2020.model.v1.order;
7
 
7
 
8
import java.util.List;
-
 
9
import java.util.ArrayList;
-
 
10
import java.util.Map;
8
import java.util.*;
11
import java.util.HashMap;
-
 
12
import java.util.EnumMap;
-
 
13
import java.util.Set;
-
 
14
import java.util.HashSet;
-
 
15
import java.util.EnumSet;
-
 
16
import java.util.Collections;
-
 
17
import java.util.BitSet;
-
 
18
import java.nio.ByteBuffer;
-
 
19
import java.util.Arrays;
-
 
20
import org.slf4j.Logger;
-
 
21
import org.slf4j.LoggerFactory;
-
 
22
 
9
 
23
public class HotspotServiceMatrix implements org.apache.thrift.TBase<HotspotServiceMatrix, HotspotServiceMatrix._Fields>, java.io.Serializable, Cloneable {
10
public class HotspotServiceMatrix implements org.apache.thrift.TBase<HotspotServiceMatrix, HotspotServiceMatrix._Fields>, java.io.Serializable, Cloneable {
24
  private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("HotspotServiceMatrix");
11
  private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("HotspotServiceMatrix");
25
 
12
 
26
  private static final org.apache.thrift.protocol.TField STORE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("storeId", org.apache.thrift.protocol.TType.I64, (short)1);
13
  private static final org.apache.thrift.protocol.TField STORE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("storeId", org.apache.thrift.protocol.TType.I64, (short) 1);
27
  private static final org.apache.thrift.protocol.TField HOTSPOT_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("hotspotId", org.apache.thrift.protocol.TType.STRING, (short)2);
14
  private static final org.apache.thrift.protocol.TField HOTSPOT_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("hotspotId", org.apache.thrift.protocol.TType.STRING, (short) 2);
28
  private static final org.apache.thrift.protocol.TField PICKUP_FROM_STORE_SERVICE_FIELD_DESC = new org.apache.thrift.protocol.TField("pickupFromStoreService", org.apache.thrift.protocol.TType.BOOL, (short)3);
15
  private static final org.apache.thrift.protocol.TField PICKUP_FROM_STORE_SERVICE_FIELD_DESC = new org.apache.thrift.protocol.TField("pickupFromStoreService", org.apache.thrift.protocol.TType.BOOL, (short) 3);
29
  private static final org.apache.thrift.protocol.TField STORE_WEBSITE_SERVICE_FIELD_DESC = new org.apache.thrift.protocol.TField("storeWebsiteService", org.apache.thrift.protocol.TType.BOOL, (short)4);
16
  private static final org.apache.thrift.protocol.TField STORE_WEBSITE_SERVICE_FIELD_DESC = new org.apache.thrift.protocol.TField("storeWebsiteService", org.apache.thrift.protocol.TType.BOOL, (short) 4);
30
  private static final org.apache.thrift.protocol.TField RECHARGE_SERVICE_FIELD_DESC = new org.apache.thrift.protocol.TField("rechargeService", org.apache.thrift.protocol.TType.BOOL, (short)5);
17
  private static final org.apache.thrift.protocol.TField RECHARGE_SERVICE_FIELD_DESC = new org.apache.thrift.protocol.TField("rechargeService", org.apache.thrift.protocol.TType.BOOL, (short) 5);
31
 
18
 
32
  private long storeId; // required
19
  private long storeId; // required
33
  private String hotspotId; // required
20
  private String hotspotId; // required
34
  private boolean pickupFromStoreService; // required
21
  private boolean pickupFromStoreService; // required
35
  private boolean storeWebsiteService; // required
22
  private boolean storeWebsiteService; // required
36
  private boolean rechargeService; // required
23
  private boolean rechargeService; // required
37
 
24
 
-
 
25
  /**
38
  /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
26
   * The set of fields this struct contains, along with convenience methods for finding and manipulating them.
-
 
27
   */
39
  public enum _Fields implements org.apache.thrift.TFieldIdEnum {
28
  public enum _Fields implements org.apache.thrift.TFieldIdEnum {
40
    STORE_ID((short)1, "storeId"),
29
    STORE_ID((short) 1, "storeId"),
41
    HOTSPOT_ID((short)2, "hotspotId"),
30
    HOTSPOT_ID((short) 2, "hotspotId"),
42
    PICKUP_FROM_STORE_SERVICE((short)3, "pickupFromStoreService"),
31
    PICKUP_FROM_STORE_SERVICE((short) 3, "pickupFromStoreService"),
43
    STORE_WEBSITE_SERVICE((short)4, "storeWebsiteService"),
32
    STORE_WEBSITE_SERVICE((short) 4, "storeWebsiteService"),
44
    RECHARGE_SERVICE((short)5, "rechargeService");
33
    RECHARGE_SERVICE((short) 5, "rechargeService");
45
 
34
 
46
    private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
35
    private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
47
 
36
 
48
    static {
37
    static {
49
      for (_Fields field : EnumSet.allOf(_Fields.class)) {
38
      for (_Fields field : EnumSet.allOf(_Fields.class)) {
Line 113... Line 102...
113
  private BitSet __isset_bit_vector = new BitSet(4);
102
  private BitSet __isset_bit_vector = new BitSet(4);
114
 
103
 
115
  public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
104
  public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
116
  static {
105
  static {
117
    Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
106
    Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
118
    tmpMap.put(_Fields.STORE_ID, new org.apache.thrift.meta_data.FieldMetaData("storeId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
107
    tmpMap.put(_Fields.STORE_ID, new org.apache.thrift.meta_data.FieldMetaData("storeId", org.apache.thrift.TFieldRequirementType.DEFAULT,
119
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
108
            new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
120
    tmpMap.put(_Fields.HOTSPOT_ID, new org.apache.thrift.meta_data.FieldMetaData("hotspotId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
109
    tmpMap.put(_Fields.HOTSPOT_ID, new org.apache.thrift.meta_data.FieldMetaData("hotspotId", org.apache.thrift.TFieldRequirementType.DEFAULT,
121
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
110
            new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
122
    tmpMap.put(_Fields.PICKUP_FROM_STORE_SERVICE, new org.apache.thrift.meta_data.FieldMetaData("pickupFromStoreService", org.apache.thrift.TFieldRequirementType.DEFAULT, 
111
    tmpMap.put(_Fields.PICKUP_FROM_STORE_SERVICE, new org.apache.thrift.meta_data.FieldMetaData("pickupFromStoreService", org.apache.thrift.TFieldRequirementType.DEFAULT,
123
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
112
            new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
124
    tmpMap.put(_Fields.STORE_WEBSITE_SERVICE, new org.apache.thrift.meta_data.FieldMetaData("storeWebsiteService", org.apache.thrift.TFieldRequirementType.DEFAULT, 
113
    tmpMap.put(_Fields.STORE_WEBSITE_SERVICE, new org.apache.thrift.meta_data.FieldMetaData("storeWebsiteService", org.apache.thrift.TFieldRequirementType.DEFAULT,
125
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
114
            new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
126
    tmpMap.put(_Fields.RECHARGE_SERVICE, new org.apache.thrift.meta_data.FieldMetaData("rechargeService", org.apache.thrift.TFieldRequirementType.DEFAULT, 
115
    tmpMap.put(_Fields.RECHARGE_SERVICE, new org.apache.thrift.meta_data.FieldMetaData("rechargeService", org.apache.thrift.TFieldRequirementType.DEFAULT,
127
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
116
            new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
128
    metaDataMap = Collections.unmodifiableMap(tmpMap);
117
    metaDataMap = Collections.unmodifiableMap(tmpMap);
129
    org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(HotspotServiceMatrix.class, metaDataMap);
118
    org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(HotspotServiceMatrix.class, metaDataMap);
130
  }
119
  }
131
 
120
 
132
  public HotspotServiceMatrix() {
121
  public HotspotServiceMatrix() {
133
  }
122
  }
134
 
123
 
135
  public HotspotServiceMatrix(
124
  public HotspotServiceMatrix(
136
    long storeId,
125
          long storeId,
137
    String hotspotId,
126
          String hotspotId,
138
    boolean pickupFromStoreService,
127
          boolean pickupFromStoreService,
139
    boolean storeWebsiteService,
128
          boolean storeWebsiteService,
140
    boolean rechargeService)
129
          boolean rechargeService) {
141
  {
-
 
142
    this();
130
    this();
143
    this.storeId = storeId;
131
    this.storeId = storeId;
144
    setStoreIdIsSet(true);
132
    setStoreIdIsSet(true);
145
    this.hotspotId = hotspotId;
133
    this.hotspotId = hotspotId;
146
    this.pickupFromStoreService = pickupFromStoreService;
134
    this.pickupFromStoreService = pickupFromStoreService;
Line 384... Line 372...
384
  @Override
372
  @Override
385
  public boolean equals(Object that) {
373
  public boolean equals(Object that) {
386
    if (that == null)
374
    if (that == null)
387
      return false;
375
      return false;
388
    if (that instanceof HotspotServiceMatrix)
376
    if (that instanceof HotspotServiceMatrix)
389
      return this.equals((HotspotServiceMatrix)that);
377
      return this.equals((HotspotServiceMatrix) that);
390
    return false;
378
    return false;
391
  }
379
  }
392
 
380
 
393
  public boolean equals(HotspotServiceMatrix that) {
381
  public boolean equals(HotspotServiceMatrix that) {
394
    if (that == null)
382
    if (that == null)
Line 451... Line 439...
451
    if (!getClass().equals(other.getClass())) {
439
    if (!getClass().equals(other.getClass())) {
452
      return getClass().getName().compareTo(other.getClass().getName());
440
      return getClass().getName().compareTo(other.getClass().getName());
453
    }
441
    }
454
 
442
 
455
    int lastComparison = 0;
443
    int lastComparison = 0;
456
    HotspotServiceMatrix typedOther = (HotspotServiceMatrix)other;
444
    HotspotServiceMatrix typedOther = (HotspotServiceMatrix) other;
457
 
445
 
458
    lastComparison = Boolean.valueOf(isSetStoreId()).compareTo(typedOther.isSetStoreId());
446
    lastComparison = Boolean.valueOf(isSetStoreId()).compareTo(typedOther.isSetStoreId());
459
    if (lastComparison != 0) {
447
    if (lastComparison != 0) {
460
      return lastComparison;
448
      return lastComparison;
461
    }
449
    }