Subversion Repositories SmartDukaan

Rev

Rev 6322 | Rev 6643 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 6322 Rev 6524
Line 123... Line 123...
123
 
123
 
124
    public PickupStore getPickupStore(long storeId) throws org.apache.thrift.TException;
124
    public PickupStore getPickupStore(long storeId) throws org.apache.thrift.TException;
125
 
125
 
126
    public PickupStore getPickupStoreByHotspotId(String hotspotId) throws org.apache.thrift.TException;
126
    public PickupStore getPickupStoreByHotspotId(String hotspotId) throws org.apache.thrift.TException;
127
 
127
 
128
    public void addPincode(long providerId, String pincode, String destCode, boolean exp, boolean cod, int stationType) throws org.apache.thrift.TException;
128
    public void addPincode(long providerId, String pincode, String destCode, boolean exp, boolean cod, int stationType, boolean otgAvailable) throws org.apache.thrift.TException;
129
 
129
 
130
    public void updatePincode(long providerId, String pincode, boolean exp, boolean cod) throws org.apache.thrift.TException;
130
    public void updatePincode(long providerId, String pincode, boolean exp, boolean cod, boolean otgAvailable) throws org.apache.thrift.TException;
131
 
131
 
132
  }
132
  }
133
 
133
 
134
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
134
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
135
 
135
 
Line 159... Line 159...
159
 
159
 
160
    public void getPickupStore(long storeId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getPickupStore_call> resultHandler) throws org.apache.thrift.TException;
160
    public void getPickupStore(long storeId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getPickupStore_call> resultHandler) throws org.apache.thrift.TException;
161
 
161
 
162
    public void getPickupStoreByHotspotId(String hotspotId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getPickupStoreByHotspotId_call> resultHandler) throws org.apache.thrift.TException;
162
    public void getPickupStoreByHotspotId(String hotspotId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getPickupStoreByHotspotId_call> resultHandler) throws org.apache.thrift.TException;
163
 
163
 
164
    public void addPincode(long providerId, String pincode, String destCode, boolean exp, boolean cod, int stationType, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addPincode_call> resultHandler) throws org.apache.thrift.TException;
164
    public void addPincode(long providerId, String pincode, String destCode, boolean exp, boolean cod, int stationType, boolean otgAvailable, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addPincode_call> resultHandler) throws org.apache.thrift.TException;
165
 
165
 
166
    public void updatePincode(long providerId, String pincode, boolean exp, boolean cod, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updatePincode_call> resultHandler) throws org.apache.thrift.TException;
166
    public void updatePincode(long providerId, String pincode, boolean exp, boolean cod, boolean otgAvailable, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updatePincode_call> resultHandler) throws org.apache.thrift.TException;
167
 
167
 
168
  }
168
  }
169
 
169
 
170
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
170
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
171
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
171
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
Line 541... Line 541...
541
        return result.success;
541
        return result.success;
542
      }
542
      }
543
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getPickupStoreByHotspotId failed: unknown result");
543
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getPickupStoreByHotspotId failed: unknown result");
544
    }
544
    }
545
 
545
 
546
    public void addPincode(long providerId, String pincode, String destCode, boolean exp, boolean cod, int stationType) throws org.apache.thrift.TException
546
    public void addPincode(long providerId, String pincode, String destCode, boolean exp, boolean cod, int stationType, boolean otgAvailable) throws org.apache.thrift.TException
547
    {
547
    {
548
      send_addPincode(providerId, pincode, destCode, exp, cod, stationType);
548
      send_addPincode(providerId, pincode, destCode, exp, cod, stationType, otgAvailable);
549
      recv_addPincode();
549
      recv_addPincode();
550
    }
550
    }
551
 
551
 
552
    public void send_addPincode(long providerId, String pincode, String destCode, boolean exp, boolean cod, int stationType) throws org.apache.thrift.TException
552
    public void send_addPincode(long providerId, String pincode, String destCode, boolean exp, boolean cod, int stationType, boolean otgAvailable) throws org.apache.thrift.TException
553
    {
553
    {
554
      addPincode_args args = new addPincode_args();
554
      addPincode_args args = new addPincode_args();
555
      args.setProviderId(providerId);
555
      args.setProviderId(providerId);
556
      args.setPincode(pincode);
556
      args.setPincode(pincode);
557
      args.setDestCode(destCode);
557
      args.setDestCode(destCode);
558
      args.setExp(exp);
558
      args.setExp(exp);
559
      args.setCod(cod);
559
      args.setCod(cod);
560
      args.setStationType(stationType);
560
      args.setStationType(stationType);
-
 
561
      args.setOtgAvailable(otgAvailable);
561
      sendBase("addPincode", args);
562
      sendBase("addPincode", args);
562
    }
563
    }
563
 
564
 
564
    public void recv_addPincode() throws org.apache.thrift.TException
565
    public void recv_addPincode() throws org.apache.thrift.TException
565
    {
566
    {
566
      addPincode_result result = new addPincode_result();
567
      addPincode_result result = new addPincode_result();
567
      receiveBase(result, "addPincode");
568
      receiveBase(result, "addPincode");
568
      return;
569
      return;
569
    }
570
    }
570
 
571
 
571
    public void updatePincode(long providerId, String pincode, boolean exp, boolean cod) throws org.apache.thrift.TException
572
    public void updatePincode(long providerId, String pincode, boolean exp, boolean cod, boolean otgAvailable) throws org.apache.thrift.TException
572
    {
573
    {
573
      send_updatePincode(providerId, pincode, exp, cod);
574
      send_updatePincode(providerId, pincode, exp, cod, otgAvailable);
574
      recv_updatePincode();
575
      recv_updatePincode();
575
    }
576
    }
576
 
577
 
577
    public void send_updatePincode(long providerId, String pincode, boolean exp, boolean cod) throws org.apache.thrift.TException
578
    public void send_updatePincode(long providerId, String pincode, boolean exp, boolean cod, boolean otgAvailable) throws org.apache.thrift.TException
578
    {
579
    {
579
      updatePincode_args args = new updatePincode_args();
580
      updatePincode_args args = new updatePincode_args();
580
      args.setProviderId(providerId);
581
      args.setProviderId(providerId);
581
      args.setPincode(pincode);
582
      args.setPincode(pincode);
582
      args.setExp(exp);
583
      args.setExp(exp);
583
      args.setCod(cod);
584
      args.setCod(cod);
-
 
585
      args.setOtgAvailable(otgAvailable);
584
      sendBase("updatePincode", args);
586
      sendBase("updatePincode", args);
585
    }
587
    }
586
 
588
 
587
    public void recv_updatePincode() throws org.apache.thrift.TException
589
    public void recv_updatePincode() throws org.apache.thrift.TException
588
    {
590
    {
Line 1085... Line 1087...
1085
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1087
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1086
        return (new Client(prot)).recv_getPickupStoreByHotspotId();
1088
        return (new Client(prot)).recv_getPickupStoreByHotspotId();
1087
      }
1089
      }
1088
    }
1090
    }
1089
 
1091
 
1090
    public void addPincode(long providerId, String pincode, String destCode, boolean exp, boolean cod, int stationType, org.apache.thrift.async.AsyncMethodCallback<addPincode_call> resultHandler) throws org.apache.thrift.TException {
1092
    public void addPincode(long providerId, String pincode, String destCode, boolean exp, boolean cod, int stationType, boolean otgAvailable, org.apache.thrift.async.AsyncMethodCallback<addPincode_call> resultHandler) throws org.apache.thrift.TException {
1091
      checkReady();
1093
      checkReady();
1092
      addPincode_call method_call = new addPincode_call(providerId, pincode, destCode, exp, cod, stationType, resultHandler, this, ___protocolFactory, ___transport);
1094
      addPincode_call method_call = new addPincode_call(providerId, pincode, destCode, exp, cod, stationType, otgAvailable, resultHandler, this, ___protocolFactory, ___transport);
1093
      this.___currentMethod = method_call;
1095
      this.___currentMethod = method_call;
1094
      ___manager.call(method_call);
1096
      ___manager.call(method_call);
1095
    }
1097
    }
1096
 
1098
 
1097
    public static class addPincode_call extends org.apache.thrift.async.TAsyncMethodCall {
1099
    public static class addPincode_call extends org.apache.thrift.async.TAsyncMethodCall {
Line 1099... Line 1101...
1099
      private String pincode;
1101
      private String pincode;
1100
      private String destCode;
1102
      private String destCode;
1101
      private boolean exp;
1103
      private boolean exp;
1102
      private boolean cod;
1104
      private boolean cod;
1103
      private int stationType;
1105
      private int stationType;
-
 
1106
      private boolean otgAvailable;
1104
      public addPincode_call(long providerId, String pincode, String destCode, boolean exp, boolean cod, int stationType, org.apache.thrift.async.AsyncMethodCallback<addPincode_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
1107
      public addPincode_call(long providerId, String pincode, String destCode, boolean exp, boolean cod, int stationType, boolean otgAvailable, org.apache.thrift.async.AsyncMethodCallback<addPincode_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
1105
        super(client, protocolFactory, transport, resultHandler, false);
1108
        super(client, protocolFactory, transport, resultHandler, false);
1106
        this.providerId = providerId;
1109
        this.providerId = providerId;
1107
        this.pincode = pincode;
1110
        this.pincode = pincode;
1108
        this.destCode = destCode;
1111
        this.destCode = destCode;
1109
        this.exp = exp;
1112
        this.exp = exp;
1110
        this.cod = cod;
1113
        this.cod = cod;
1111
        this.stationType = stationType;
1114
        this.stationType = stationType;
-
 
1115
        this.otgAvailable = otgAvailable;
1112
      }
1116
      }
1113
 
1117
 
1114
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1118
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1115
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("addPincode", org.apache.thrift.protocol.TMessageType.CALL, 0));
1119
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("addPincode", org.apache.thrift.protocol.TMessageType.CALL, 0));
1116
        addPincode_args args = new addPincode_args();
1120
        addPincode_args args = new addPincode_args();
Line 1118... Line 1122...
1118
        args.setPincode(pincode);
1122
        args.setPincode(pincode);
1119
        args.setDestCode(destCode);
1123
        args.setDestCode(destCode);
1120
        args.setExp(exp);
1124
        args.setExp(exp);
1121
        args.setCod(cod);
1125
        args.setCod(cod);
1122
        args.setStationType(stationType);
1126
        args.setStationType(stationType);
-
 
1127
        args.setOtgAvailable(otgAvailable);
1123
        args.write(prot);
1128
        args.write(prot);
1124
        prot.writeMessageEnd();
1129
        prot.writeMessageEnd();
1125
      }
1130
      }
1126
 
1131
 
1127
      public void getResult() throws org.apache.thrift.TException {
1132
      public void getResult() throws org.apache.thrift.TException {
Line 1132... Line 1137...
1132
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1137
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1133
        (new Client(prot)).recv_addPincode();
1138
        (new Client(prot)).recv_addPincode();
1134
      }
1139
      }
1135
    }
1140
    }
1136
 
1141
 
1137
    public void updatePincode(long providerId, String pincode, boolean exp, boolean cod, org.apache.thrift.async.AsyncMethodCallback<updatePincode_call> resultHandler) throws org.apache.thrift.TException {
1142
    public void updatePincode(long providerId, String pincode, boolean exp, boolean cod, boolean otgAvailable, org.apache.thrift.async.AsyncMethodCallback<updatePincode_call> resultHandler) throws org.apache.thrift.TException {
1138
      checkReady();
1143
      checkReady();
1139
      updatePincode_call method_call = new updatePincode_call(providerId, pincode, exp, cod, resultHandler, this, ___protocolFactory, ___transport);
1144
      updatePincode_call method_call = new updatePincode_call(providerId, pincode, exp, cod, otgAvailable, resultHandler, this, ___protocolFactory, ___transport);
1140
      this.___currentMethod = method_call;
1145
      this.___currentMethod = method_call;
1141
      ___manager.call(method_call);
1146
      ___manager.call(method_call);
1142
    }
1147
    }
1143
 
1148
 
1144
    public static class updatePincode_call extends org.apache.thrift.async.TAsyncMethodCall {
1149
    public static class updatePincode_call extends org.apache.thrift.async.TAsyncMethodCall {
1145
      private long providerId;
1150
      private long providerId;
1146
      private String pincode;
1151
      private String pincode;
1147
      private boolean exp;
1152
      private boolean exp;
1148
      private boolean cod;
1153
      private boolean cod;
-
 
1154
      private boolean otgAvailable;
1149
      public updatePincode_call(long providerId, String pincode, boolean exp, boolean cod, org.apache.thrift.async.AsyncMethodCallback<updatePincode_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
1155
      public updatePincode_call(long providerId, String pincode, boolean exp, boolean cod, boolean otgAvailable, org.apache.thrift.async.AsyncMethodCallback<updatePincode_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
1150
        super(client, protocolFactory, transport, resultHandler, false);
1156
        super(client, protocolFactory, transport, resultHandler, false);
1151
        this.providerId = providerId;
1157
        this.providerId = providerId;
1152
        this.pincode = pincode;
1158
        this.pincode = pincode;
1153
        this.exp = exp;
1159
        this.exp = exp;
1154
        this.cod = cod;
1160
        this.cod = cod;
-
 
1161
        this.otgAvailable = otgAvailable;
1155
      }
1162
      }
1156
 
1163
 
1157
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1164
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1158
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("updatePincode", org.apache.thrift.protocol.TMessageType.CALL, 0));
1165
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("updatePincode", org.apache.thrift.protocol.TMessageType.CALL, 0));
1159
        updatePincode_args args = new updatePincode_args();
1166
        updatePincode_args args = new updatePincode_args();
1160
        args.setProviderId(providerId);
1167
        args.setProviderId(providerId);
1161
        args.setPincode(pincode);
1168
        args.setPincode(pincode);
1162
        args.setExp(exp);
1169
        args.setExp(exp);
1163
        args.setCod(cod);
1170
        args.setCod(cod);
-
 
1171
        args.setOtgAvailable(otgAvailable);
1164
        args.write(prot);
1172
        args.write(prot);
1165
        prot.writeMessageEnd();
1173
        prot.writeMessageEnd();
1166
      }
1174
      }
1167
 
1175
 
1168
      public void getResult() throws org.apache.thrift.TException {
1176
      public void getResult() throws org.apache.thrift.TException {
Line 1474... Line 1482...
1474
        return new addPincode_args();
1482
        return new addPincode_args();
1475
      }
1483
      }
1476
 
1484
 
1477
      protected addPincode_result getResult(I iface, addPincode_args args) throws org.apache.thrift.TException {
1485
      protected addPincode_result getResult(I iface, addPincode_args args) throws org.apache.thrift.TException {
1478
        addPincode_result result = new addPincode_result();
1486
        addPincode_result result = new addPincode_result();
1479
        iface.addPincode(args.providerId, args.pincode, args.destCode, args.exp, args.cod, args.stationType);
1487
        iface.addPincode(args.providerId, args.pincode, args.destCode, args.exp, args.cod, args.stationType, args.otgAvailable);
1480
        return result;
1488
        return result;
1481
      }
1489
      }
1482
    }
1490
    }
1483
 
1491
 
1484
    private static class updatePincode<I extends Iface> extends org.apache.thrift.ProcessFunction<I, updatePincode_args> {
1492
    private static class updatePincode<I extends Iface> extends org.apache.thrift.ProcessFunction<I, updatePincode_args> {
Line 1490... Line 1498...
1490
        return new updatePincode_args();
1498
        return new updatePincode_args();
1491
      }
1499
      }
1492
 
1500
 
1493
      protected updatePincode_result getResult(I iface, updatePincode_args args) throws org.apache.thrift.TException {
1501
      protected updatePincode_result getResult(I iface, updatePincode_args args) throws org.apache.thrift.TException {
1494
        updatePincode_result result = new updatePincode_result();
1502
        updatePincode_result result = new updatePincode_result();
1495
        iface.updatePincode(args.providerId, args.pincode, args.exp, args.cod);
1503
        iface.updatePincode(args.providerId, args.pincode, args.exp, args.cod, args.otgAvailable);
1496
        return result;
1504
        return result;
1497
      }
1505
      }
1498
    }
1506
    }
1499
 
1507
 
1500
  }
1508
  }
Line 11530... Line 11538...
11530
    private static final org.apache.thrift.protocol.TField PINCODE_FIELD_DESC = new org.apache.thrift.protocol.TField("pincode", org.apache.thrift.protocol.TType.STRING, (short)2);
11538
    private static final org.apache.thrift.protocol.TField PINCODE_FIELD_DESC = new org.apache.thrift.protocol.TField("pincode", org.apache.thrift.protocol.TType.STRING, (short)2);
11531
    private static final org.apache.thrift.protocol.TField DEST_CODE_FIELD_DESC = new org.apache.thrift.protocol.TField("destCode", org.apache.thrift.protocol.TType.STRING, (short)3);
11539
    private static final org.apache.thrift.protocol.TField DEST_CODE_FIELD_DESC = new org.apache.thrift.protocol.TField("destCode", org.apache.thrift.protocol.TType.STRING, (short)3);
11532
    private static final org.apache.thrift.protocol.TField EXP_FIELD_DESC = new org.apache.thrift.protocol.TField("exp", org.apache.thrift.protocol.TType.BOOL, (short)4);
11540
    private static final org.apache.thrift.protocol.TField EXP_FIELD_DESC = new org.apache.thrift.protocol.TField("exp", org.apache.thrift.protocol.TType.BOOL, (short)4);
11533
    private static final org.apache.thrift.protocol.TField COD_FIELD_DESC = new org.apache.thrift.protocol.TField("cod", org.apache.thrift.protocol.TType.BOOL, (short)5);
11541
    private static final org.apache.thrift.protocol.TField COD_FIELD_DESC = new org.apache.thrift.protocol.TField("cod", org.apache.thrift.protocol.TType.BOOL, (short)5);
11534
    private static final org.apache.thrift.protocol.TField STATION_TYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("stationType", org.apache.thrift.protocol.TType.I32, (short)6);
11542
    private static final org.apache.thrift.protocol.TField STATION_TYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("stationType", org.apache.thrift.protocol.TType.I32, (short)6);
-
 
11543
    private static final org.apache.thrift.protocol.TField OTG_AVAILABLE_FIELD_DESC = new org.apache.thrift.protocol.TField("otgAvailable", org.apache.thrift.protocol.TType.BOOL, (short)7);
11535
 
11544
 
11536
    private long providerId; // required
11545
    private long providerId; // required
11537
    private String pincode; // required
11546
    private String pincode; // required
11538
    private String destCode; // required
11547
    private String destCode; // required
11539
    private boolean exp; // required
11548
    private boolean exp; // required
11540
    private boolean cod; // required
11549
    private boolean cod; // required
11541
    private int stationType; // required
11550
    private int stationType; // required
-
 
11551
    private boolean otgAvailable; // required
11542
 
11552
 
11543
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
11553
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
11544
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
11554
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
11545
      PROVIDER_ID((short)1, "providerId"),
11555
      PROVIDER_ID((short)1, "providerId"),
11546
      PINCODE((short)2, "pincode"),
11556
      PINCODE((short)2, "pincode"),
11547
      DEST_CODE((short)3, "destCode"),
11557
      DEST_CODE((short)3, "destCode"),
11548
      EXP((short)4, "exp"),
11558
      EXP((short)4, "exp"),
11549
      COD((short)5, "cod"),
11559
      COD((short)5, "cod"),
11550
      STATION_TYPE((short)6, "stationType");
11560
      STATION_TYPE((short)6, "stationType"),
-
 
11561
      OTG_AVAILABLE((short)7, "otgAvailable");
11551
 
11562
 
11552
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
11563
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
11553
 
11564
 
11554
      static {
11565
      static {
11555
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
11566
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
Line 11572... Line 11583...
11572
            return EXP;
11583
            return EXP;
11573
          case 5: // COD
11584
          case 5: // COD
11574
            return COD;
11585
            return COD;
11575
          case 6: // STATION_TYPE
11586
          case 6: // STATION_TYPE
11576
            return STATION_TYPE;
11587
            return STATION_TYPE;
-
 
11588
          case 7: // OTG_AVAILABLE
-
 
11589
            return OTG_AVAILABLE;
11577
          default:
11590
          default:
11578
            return null;
11591
            return null;
11579
        }
11592
        }
11580
      }
11593
      }
11581
 
11594
 
Line 11616... Line 11629...
11616
    // isset id assignments
11629
    // isset id assignments
11617
    private static final int __PROVIDERID_ISSET_ID = 0;
11630
    private static final int __PROVIDERID_ISSET_ID = 0;
11618
    private static final int __EXP_ISSET_ID = 1;
11631
    private static final int __EXP_ISSET_ID = 1;
11619
    private static final int __COD_ISSET_ID = 2;
11632
    private static final int __COD_ISSET_ID = 2;
11620
    private static final int __STATIONTYPE_ISSET_ID = 3;
11633
    private static final int __STATIONTYPE_ISSET_ID = 3;
-
 
11634
    private static final int __OTGAVAILABLE_ISSET_ID = 4;
11621
    private BitSet __isset_bit_vector = new BitSet(4);
11635
    private BitSet __isset_bit_vector = new BitSet(5);
11622
 
11636
 
11623
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
11637
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
11624
    static {
11638
    static {
11625
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
11639
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
11626
      tmpMap.put(_Fields.PROVIDER_ID, new org.apache.thrift.meta_data.FieldMetaData("providerId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11640
      tmpMap.put(_Fields.PROVIDER_ID, new org.apache.thrift.meta_data.FieldMetaData("providerId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
Line 11633... Line 11647...
11633
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
11647
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
11634
      tmpMap.put(_Fields.COD, new org.apache.thrift.meta_data.FieldMetaData("cod", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11648
      tmpMap.put(_Fields.COD, new org.apache.thrift.meta_data.FieldMetaData("cod", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11635
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
11649
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
11636
      tmpMap.put(_Fields.STATION_TYPE, new org.apache.thrift.meta_data.FieldMetaData("stationType", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11650
      tmpMap.put(_Fields.STATION_TYPE, new org.apache.thrift.meta_data.FieldMetaData("stationType", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11637
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
11651
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
-
 
11652
      tmpMap.put(_Fields.OTG_AVAILABLE, new org.apache.thrift.meta_data.FieldMetaData("otgAvailable", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
11653
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
11638
      metaDataMap = Collections.unmodifiableMap(tmpMap);
11654
      metaDataMap = Collections.unmodifiableMap(tmpMap);
11639
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addPincode_args.class, metaDataMap);
11655
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addPincode_args.class, metaDataMap);
11640
    }
11656
    }
11641
 
11657
 
11642
    public addPincode_args() {
11658
    public addPincode_args() {
Line 11646... Line 11662...
11646
      long providerId,
11662
      long providerId,
11647
      String pincode,
11663
      String pincode,
11648
      String destCode,
11664
      String destCode,
11649
      boolean exp,
11665
      boolean exp,
11650
      boolean cod,
11666
      boolean cod,
11651
      int stationType)
11667
      int stationType,
-
 
11668
      boolean otgAvailable)
11652
    {
11669
    {
11653
      this();
11670
      this();
11654
      this.providerId = providerId;
11671
      this.providerId = providerId;
11655
      setProviderIdIsSet(true);
11672
      setProviderIdIsSet(true);
11656
      this.pincode = pincode;
11673
      this.pincode = pincode;
Line 11659... Line 11676...
11659
      setExpIsSet(true);
11676
      setExpIsSet(true);
11660
      this.cod = cod;
11677
      this.cod = cod;
11661
      setCodIsSet(true);
11678
      setCodIsSet(true);
11662
      this.stationType = stationType;
11679
      this.stationType = stationType;
11663
      setStationTypeIsSet(true);
11680
      setStationTypeIsSet(true);
-
 
11681
      this.otgAvailable = otgAvailable;
-
 
11682
      setOtgAvailableIsSet(true);
11664
    }
11683
    }
11665
 
11684
 
11666
    /**
11685
    /**
11667
     * Performs a deep copy on <i>other</i>.
11686
     * Performs a deep copy on <i>other</i>.
11668
     */
11687
     */
Line 11677... Line 11696...
11677
        this.destCode = other.destCode;
11696
        this.destCode = other.destCode;
11678
      }
11697
      }
11679
      this.exp = other.exp;
11698
      this.exp = other.exp;
11680
      this.cod = other.cod;
11699
      this.cod = other.cod;
11681
      this.stationType = other.stationType;
11700
      this.stationType = other.stationType;
-
 
11701
      this.otgAvailable = other.otgAvailable;
11682
    }
11702
    }
11683
 
11703
 
11684
    public addPincode_args deepCopy() {
11704
    public addPincode_args deepCopy() {
11685
      return new addPincode_args(this);
11705
      return new addPincode_args(this);
11686
    }
11706
    }
Line 11695... Line 11715...
11695
      this.exp = false;
11715
      this.exp = false;
11696
      setCodIsSet(false);
11716
      setCodIsSet(false);
11697
      this.cod = false;
11717
      this.cod = false;
11698
      setStationTypeIsSet(false);
11718
      setStationTypeIsSet(false);
11699
      this.stationType = 0;
11719
      this.stationType = 0;
-
 
11720
      setOtgAvailableIsSet(false);
-
 
11721
      this.otgAvailable = false;
11700
    }
11722
    }
11701
 
11723
 
11702
    public long getProviderId() {
11724
    public long getProviderId() {
11703
      return this.providerId;
11725
      return this.providerId;
11704
    }
11726
    }
Line 11831... Line 11853...
11831
 
11853
 
11832
    public void setStationTypeIsSet(boolean value) {
11854
    public void setStationTypeIsSet(boolean value) {
11833
      __isset_bit_vector.set(__STATIONTYPE_ISSET_ID, value);
11855
      __isset_bit_vector.set(__STATIONTYPE_ISSET_ID, value);
11834
    }
11856
    }
11835
 
11857
 
-
 
11858
    public boolean isOtgAvailable() {
-
 
11859
      return this.otgAvailable;
-
 
11860
    }
-
 
11861
 
-
 
11862
    public void setOtgAvailable(boolean otgAvailable) {
-
 
11863
      this.otgAvailable = otgAvailable;
-
 
11864
      setOtgAvailableIsSet(true);
-
 
11865
    }
-
 
11866
 
-
 
11867
    public void unsetOtgAvailable() {
-
 
11868
      __isset_bit_vector.clear(__OTGAVAILABLE_ISSET_ID);
-
 
11869
    }
-
 
11870
 
-
 
11871
    /** Returns true if field otgAvailable is set (has been assigned a value) and false otherwise */
-
 
11872
    public boolean isSetOtgAvailable() {
-
 
11873
      return __isset_bit_vector.get(__OTGAVAILABLE_ISSET_ID);
-
 
11874
    }
-
 
11875
 
-
 
11876
    public void setOtgAvailableIsSet(boolean value) {
-
 
11877
      __isset_bit_vector.set(__OTGAVAILABLE_ISSET_ID, value);
-
 
11878
    }
-
 
11879
 
11836
    public void setFieldValue(_Fields field, Object value) {
11880
    public void setFieldValue(_Fields field, Object value) {
11837
      switch (field) {
11881
      switch (field) {
11838
      case PROVIDER_ID:
11882
      case PROVIDER_ID:
11839
        if (value == null) {
11883
        if (value == null) {
11840
          unsetProviderId();
11884
          unsetProviderId();
Line 11881... Line 11925...
11881
        } else {
11925
        } else {
11882
          setStationType((Integer)value);
11926
          setStationType((Integer)value);
11883
        }
11927
        }
11884
        break;
11928
        break;
11885
 
11929
 
-
 
11930
      case OTG_AVAILABLE:
-
 
11931
        if (value == null) {
-
 
11932
          unsetOtgAvailable();
-
 
11933
        } else {
-
 
11934
          setOtgAvailable((Boolean)value);
-
 
11935
        }
-
 
11936
        break;
-
 
11937
 
11886
      }
11938
      }
11887
    }
11939
    }
11888
 
11940
 
11889
    public Object getFieldValue(_Fields field) {
11941
    public Object getFieldValue(_Fields field) {
11890
      switch (field) {
11942
      switch (field) {
Line 11904... Line 11956...
11904
        return Boolean.valueOf(isCod());
11956
        return Boolean.valueOf(isCod());
11905
 
11957
 
11906
      case STATION_TYPE:
11958
      case STATION_TYPE:
11907
        return Integer.valueOf(getStationType());
11959
        return Integer.valueOf(getStationType());
11908
 
11960
 
-
 
11961
      case OTG_AVAILABLE:
-
 
11962
        return Boolean.valueOf(isOtgAvailable());
-
 
11963
 
11909
      }
11964
      }
11910
      throw new IllegalStateException();
11965
      throw new IllegalStateException();
11911
    }
11966
    }
11912
 
11967
 
11913
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
11968
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
Line 11927... Line 11982...
11927
        return isSetExp();
11982
        return isSetExp();
11928
      case COD:
11983
      case COD:
11929
        return isSetCod();
11984
        return isSetCod();
11930
      case STATION_TYPE:
11985
      case STATION_TYPE:
11931
        return isSetStationType();
11986
        return isSetStationType();
-
 
11987
      case OTG_AVAILABLE:
-
 
11988
        return isSetOtgAvailable();
11932
      }
11989
      }
11933
      throw new IllegalStateException();
11990
      throw new IllegalStateException();
11934
    }
11991
    }
11935
 
11992
 
11936
    @Override
11993
    @Override
Line 11998... Line 12055...
11998
          return false;
12055
          return false;
11999
        if (this.stationType != that.stationType)
12056
        if (this.stationType != that.stationType)
12000
          return false;
12057
          return false;
12001
      }
12058
      }
12002
 
12059
 
-
 
12060
      boolean this_present_otgAvailable = true;
-
 
12061
      boolean that_present_otgAvailable = true;
-
 
12062
      if (this_present_otgAvailable || that_present_otgAvailable) {
-
 
12063
        if (!(this_present_otgAvailable && that_present_otgAvailable))
-
 
12064
          return false;
-
 
12065
        if (this.otgAvailable != that.otgAvailable)
-
 
12066
          return false;
-
 
12067
      }
-
 
12068
 
12003
      return true;
12069
      return true;
12004
    }
12070
    }
12005
 
12071
 
12006
    @Override
12072
    @Override
12007
    public int hashCode() {
12073
    public int hashCode() {
Line 12074... Line 12140...
12074
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.stationType, typedOther.stationType);
12140
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.stationType, typedOther.stationType);
12075
        if (lastComparison != 0) {
12141
        if (lastComparison != 0) {
12076
          return lastComparison;
12142
          return lastComparison;
12077
        }
12143
        }
12078
      }
12144
      }
-
 
12145
      lastComparison = Boolean.valueOf(isSetOtgAvailable()).compareTo(typedOther.isSetOtgAvailable());
-
 
12146
      if (lastComparison != 0) {
-
 
12147
        return lastComparison;
-
 
12148
      }
-
 
12149
      if (isSetOtgAvailable()) {
-
 
12150
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.otgAvailable, typedOther.otgAvailable);
-
 
12151
        if (lastComparison != 0) {
-
 
12152
          return lastComparison;
-
 
12153
        }
-
 
12154
      }
12079
      return 0;
12155
      return 0;
12080
    }
12156
    }
12081
 
12157
 
12082
    public _Fields fieldForId(int fieldId) {
12158
    public _Fields fieldForId(int fieldId) {
12083
      return _Fields.findByThriftId(fieldId);
12159
      return _Fields.findByThriftId(fieldId);
Line 12137... Line 12213...
12137
              setStationTypeIsSet(true);
12213
              setStationTypeIsSet(true);
12138
            } else { 
12214
            } else { 
12139
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12215
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12140
            }
12216
            }
12141
            break;
12217
            break;
-
 
12218
          case 7: // OTG_AVAILABLE
-
 
12219
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
-
 
12220
              this.otgAvailable = iprot.readBool();
-
 
12221
              setOtgAvailableIsSet(true);
-
 
12222
            } else { 
-
 
12223
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
12224
            }
-
 
12225
            break;
12142
          default:
12226
          default:
12143
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12227
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12144
        }
12228
        }
12145
        iprot.readFieldEnd();
12229
        iprot.readFieldEnd();
12146
      }
12230
      }
Line 12172... Line 12256...
12172
      oprot.writeBool(this.cod);
12256
      oprot.writeBool(this.cod);
12173
      oprot.writeFieldEnd();
12257
      oprot.writeFieldEnd();
12174
      oprot.writeFieldBegin(STATION_TYPE_FIELD_DESC);
12258
      oprot.writeFieldBegin(STATION_TYPE_FIELD_DESC);
12175
      oprot.writeI32(this.stationType);
12259
      oprot.writeI32(this.stationType);
12176
      oprot.writeFieldEnd();
12260
      oprot.writeFieldEnd();
-
 
12261
      oprot.writeFieldBegin(OTG_AVAILABLE_FIELD_DESC);
-
 
12262
      oprot.writeBool(this.otgAvailable);
-
 
12263
      oprot.writeFieldEnd();
12177
      oprot.writeFieldStop();
12264
      oprot.writeFieldStop();
12178
      oprot.writeStructEnd();
12265
      oprot.writeStructEnd();
12179
    }
12266
    }
12180
 
12267
 
12181
    @Override
12268
    @Override
Line 12212... Line 12299...
12212
      first = false;
12299
      first = false;
12213
      if (!first) sb.append(", ");
12300
      if (!first) sb.append(", ");
12214
      sb.append("stationType:");
12301
      sb.append("stationType:");
12215
      sb.append(this.stationType);
12302
      sb.append(this.stationType);
12216
      first = false;
12303
      first = false;
-
 
12304
      if (!first) sb.append(", ");
-
 
12305
      sb.append("otgAvailable:");
-
 
12306
      sb.append(this.otgAvailable);
-
 
12307
      first = false;
12217
      sb.append(")");
12308
      sb.append(")");
12218
      return sb.toString();
12309
      return sb.toString();
12219
    }
12310
    }
12220
 
12311
 
12221
    public void validate() throws org.apache.thrift.TException {
12312
    public void validate() throws org.apache.thrift.TException {
Line 12446... Line 12537...
12446
 
12537
 
12447
    private static final org.apache.thrift.protocol.TField PROVIDER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("providerId", org.apache.thrift.protocol.TType.I64, (short)1);
12538
    private static final org.apache.thrift.protocol.TField PROVIDER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("providerId", org.apache.thrift.protocol.TType.I64, (short)1);
12448
    private static final org.apache.thrift.protocol.TField PINCODE_FIELD_DESC = new org.apache.thrift.protocol.TField("pincode", org.apache.thrift.protocol.TType.STRING, (short)2);
12539
    private static final org.apache.thrift.protocol.TField PINCODE_FIELD_DESC = new org.apache.thrift.protocol.TField("pincode", org.apache.thrift.protocol.TType.STRING, (short)2);
12449
    private static final org.apache.thrift.protocol.TField EXP_FIELD_DESC = new org.apache.thrift.protocol.TField("exp", org.apache.thrift.protocol.TType.BOOL, (short)3);
12540
    private static final org.apache.thrift.protocol.TField EXP_FIELD_DESC = new org.apache.thrift.protocol.TField("exp", org.apache.thrift.protocol.TType.BOOL, (short)3);
12450
    private static final org.apache.thrift.protocol.TField COD_FIELD_DESC = new org.apache.thrift.protocol.TField("cod", org.apache.thrift.protocol.TType.BOOL, (short)4);
12541
    private static final org.apache.thrift.protocol.TField COD_FIELD_DESC = new org.apache.thrift.protocol.TField("cod", org.apache.thrift.protocol.TType.BOOL, (short)4);
-
 
12542
    private static final org.apache.thrift.protocol.TField OTG_AVAILABLE_FIELD_DESC = new org.apache.thrift.protocol.TField("otgAvailable", org.apache.thrift.protocol.TType.BOOL, (short)5);
12451
 
12543
 
12452
    private long providerId; // required
12544
    private long providerId; // required
12453
    private String pincode; // required
12545
    private String pincode; // required
12454
    private boolean exp; // required
12546
    private boolean exp; // required
12455
    private boolean cod; // required
12547
    private boolean cod; // required
-
 
12548
    private boolean otgAvailable; // required
12456
 
12549
 
12457
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
12550
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
12458
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
12551
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
12459
      PROVIDER_ID((short)1, "providerId"),
12552
      PROVIDER_ID((short)1, "providerId"),
12460
      PINCODE((short)2, "pincode"),
12553
      PINCODE((short)2, "pincode"),
12461
      EXP((short)3, "exp"),
12554
      EXP((short)3, "exp"),
12462
      COD((short)4, "cod");
12555
      COD((short)4, "cod"),
-
 
12556
      OTG_AVAILABLE((short)5, "otgAvailable");
12463
 
12557
 
12464
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
12558
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
12465
 
12559
 
12466
      static {
12560
      static {
12467
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
12561
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
Line 12480... Line 12574...
12480
            return PINCODE;
12574
            return PINCODE;
12481
          case 3: // EXP
12575
          case 3: // EXP
12482
            return EXP;
12576
            return EXP;
12483
          case 4: // COD
12577
          case 4: // COD
12484
            return COD;
12578
            return COD;
-
 
12579
          case 5: // OTG_AVAILABLE
-
 
12580
            return OTG_AVAILABLE;
12485
          default:
12581
          default:
12486
            return null;
12582
            return null;
12487
        }
12583
        }
12488
      }
12584
      }
12489
 
12585
 
Line 12523... Line 12619...
12523
 
12619
 
12524
    // isset id assignments
12620
    // isset id assignments
12525
    private static final int __PROVIDERID_ISSET_ID = 0;
12621
    private static final int __PROVIDERID_ISSET_ID = 0;
12526
    private static final int __EXP_ISSET_ID = 1;
12622
    private static final int __EXP_ISSET_ID = 1;
12527
    private static final int __COD_ISSET_ID = 2;
12623
    private static final int __COD_ISSET_ID = 2;
-
 
12624
    private static final int __OTGAVAILABLE_ISSET_ID = 3;
12528
    private BitSet __isset_bit_vector = new BitSet(3);
12625
    private BitSet __isset_bit_vector = new BitSet(4);
12529
 
12626
 
12530
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
12627
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
12531
    static {
12628
    static {
12532
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
12629
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
12533
      tmpMap.put(_Fields.PROVIDER_ID, new org.apache.thrift.meta_data.FieldMetaData("providerId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
12630
      tmpMap.put(_Fields.PROVIDER_ID, new org.apache.thrift.meta_data.FieldMetaData("providerId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
Line 12536... Line 12633...
12536
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
12633
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
12537
      tmpMap.put(_Fields.EXP, new org.apache.thrift.meta_data.FieldMetaData("exp", org.apache.thrift.TFieldRequirementType.DEFAULT, 
12634
      tmpMap.put(_Fields.EXP, new org.apache.thrift.meta_data.FieldMetaData("exp", org.apache.thrift.TFieldRequirementType.DEFAULT, 
12538
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
12635
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
12539
      tmpMap.put(_Fields.COD, new org.apache.thrift.meta_data.FieldMetaData("cod", org.apache.thrift.TFieldRequirementType.DEFAULT, 
12636
      tmpMap.put(_Fields.COD, new org.apache.thrift.meta_data.FieldMetaData("cod", org.apache.thrift.TFieldRequirementType.DEFAULT, 
12540
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
12637
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
-
 
12638
      tmpMap.put(_Fields.OTG_AVAILABLE, new org.apache.thrift.meta_data.FieldMetaData("otgAvailable", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
12639
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
12541
      metaDataMap = Collections.unmodifiableMap(tmpMap);
12640
      metaDataMap = Collections.unmodifiableMap(tmpMap);
12542
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updatePincode_args.class, metaDataMap);
12641
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updatePincode_args.class, metaDataMap);
12543
    }
12642
    }
12544
 
12643
 
12545
    public updatePincode_args() {
12644
    public updatePincode_args() {
Line 12547... Line 12646...
12547
 
12646
 
12548
    public updatePincode_args(
12647
    public updatePincode_args(
12549
      long providerId,
12648
      long providerId,
12550
      String pincode,
12649
      String pincode,
12551
      boolean exp,
12650
      boolean exp,
12552
      boolean cod)
12651
      boolean cod,
-
 
12652
      boolean otgAvailable)
12553
    {
12653
    {
12554
      this();
12654
      this();
12555
      this.providerId = providerId;
12655
      this.providerId = providerId;
12556
      setProviderIdIsSet(true);
12656
      setProviderIdIsSet(true);
12557
      this.pincode = pincode;
12657
      this.pincode = pincode;
12558
      this.exp = exp;
12658
      this.exp = exp;
12559
      setExpIsSet(true);
12659
      setExpIsSet(true);
12560
      this.cod = cod;
12660
      this.cod = cod;
12561
      setCodIsSet(true);
12661
      setCodIsSet(true);
-
 
12662
      this.otgAvailable = otgAvailable;
-
 
12663
      setOtgAvailableIsSet(true);
12562
    }
12664
    }
12563
 
12665
 
12564
    /**
12666
    /**
12565
     * Performs a deep copy on <i>other</i>.
12667
     * Performs a deep copy on <i>other</i>.
12566
     */
12668
     */
Line 12571... Line 12673...
12571
      if (other.isSetPincode()) {
12673
      if (other.isSetPincode()) {
12572
        this.pincode = other.pincode;
12674
        this.pincode = other.pincode;
12573
      }
12675
      }
12574
      this.exp = other.exp;
12676
      this.exp = other.exp;
12575
      this.cod = other.cod;
12677
      this.cod = other.cod;
-
 
12678
      this.otgAvailable = other.otgAvailable;
12576
    }
12679
    }
12577
 
12680
 
12578
    public updatePincode_args deepCopy() {
12681
    public updatePincode_args deepCopy() {
12579
      return new updatePincode_args(this);
12682
      return new updatePincode_args(this);
12580
    }
12683
    }
Line 12586... Line 12689...
12586
      this.pincode = null;
12689
      this.pincode = null;
12587
      setExpIsSet(false);
12690
      setExpIsSet(false);
12588
      this.exp = false;
12691
      this.exp = false;
12589
      setCodIsSet(false);
12692
      setCodIsSet(false);
12590
      this.cod = false;
12693
      this.cod = false;
-
 
12694
      setOtgAvailableIsSet(false);
-
 
12695
      this.otgAvailable = false;
12591
    }
12696
    }
12592
 
12697
 
12593
    public long getProviderId() {
12698
    public long getProviderId() {
12594
      return this.providerId;
12699
      return this.providerId;
12595
    }
12700
    }
Line 12677... Line 12782...
12677
 
12782
 
12678
    public void setCodIsSet(boolean value) {
12783
    public void setCodIsSet(boolean value) {
12679
      __isset_bit_vector.set(__COD_ISSET_ID, value);
12784
      __isset_bit_vector.set(__COD_ISSET_ID, value);
12680
    }
12785
    }
12681
 
12786
 
-
 
12787
    public boolean isOtgAvailable() {
-
 
12788
      return this.otgAvailable;
-
 
12789
    }
-
 
12790
 
-
 
12791
    public void setOtgAvailable(boolean otgAvailable) {
-
 
12792
      this.otgAvailable = otgAvailable;
-
 
12793
      setOtgAvailableIsSet(true);
-
 
12794
    }
-
 
12795
 
-
 
12796
    public void unsetOtgAvailable() {
-
 
12797
      __isset_bit_vector.clear(__OTGAVAILABLE_ISSET_ID);
-
 
12798
    }
-
 
12799
 
-
 
12800
    /** Returns true if field otgAvailable is set (has been assigned a value) and false otherwise */
-
 
12801
    public boolean isSetOtgAvailable() {
-
 
12802
      return __isset_bit_vector.get(__OTGAVAILABLE_ISSET_ID);
-
 
12803
    }
-
 
12804
 
-
 
12805
    public void setOtgAvailableIsSet(boolean value) {
-
 
12806
      __isset_bit_vector.set(__OTGAVAILABLE_ISSET_ID, value);
-
 
12807
    }
-
 
12808
 
12682
    public void setFieldValue(_Fields field, Object value) {
12809
    public void setFieldValue(_Fields field, Object value) {
12683
      switch (field) {
12810
      switch (field) {
12684
      case PROVIDER_ID:
12811
      case PROVIDER_ID:
12685
        if (value == null) {
12812
        if (value == null) {
12686
          unsetProviderId();
12813
          unsetProviderId();
Line 12711... Line 12838...
12711
        } else {
12838
        } else {
12712
          setCod((Boolean)value);
12839
          setCod((Boolean)value);
12713
        }
12840
        }
12714
        break;
12841
        break;
12715
 
12842
 
-
 
12843
      case OTG_AVAILABLE:
-
 
12844
        if (value == null) {
-
 
12845
          unsetOtgAvailable();
-
 
12846
        } else {
-
 
12847
          setOtgAvailable((Boolean)value);
-
 
12848
        }
-
 
12849
        break;
-
 
12850
 
12716
      }
12851
      }
12717
    }
12852
    }
12718
 
12853
 
12719
    public Object getFieldValue(_Fields field) {
12854
    public Object getFieldValue(_Fields field) {
12720
      switch (field) {
12855
      switch (field) {
Line 12728... Line 12863...
12728
        return Boolean.valueOf(isExp());
12863
        return Boolean.valueOf(isExp());
12729
 
12864
 
12730
      case COD:
12865
      case COD:
12731
        return Boolean.valueOf(isCod());
12866
        return Boolean.valueOf(isCod());
12732
 
12867
 
-
 
12868
      case OTG_AVAILABLE:
-
 
12869
        return Boolean.valueOf(isOtgAvailable());
-
 
12870
 
12733
      }
12871
      }
12734
      throw new IllegalStateException();
12872
      throw new IllegalStateException();
12735
    }
12873
    }
12736
 
12874
 
12737
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
12875
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
Line 12747... Line 12885...
12747
        return isSetPincode();
12885
        return isSetPincode();
12748
      case EXP:
12886
      case EXP:
12749
        return isSetExp();
12887
        return isSetExp();
12750
      case COD:
12888
      case COD:
12751
        return isSetCod();
12889
        return isSetCod();
-
 
12890
      case OTG_AVAILABLE:
-
 
12891
        return isSetOtgAvailable();
12752
      }
12892
      }
12753
      throw new IllegalStateException();
12893
      throw new IllegalStateException();
12754
    }
12894
    }
12755
 
12895
 
12756
    @Override
12896
    @Override
Line 12800... Line 12940...
12800
          return false;
12940
          return false;
12801
        if (this.cod != that.cod)
12941
        if (this.cod != that.cod)
12802
          return false;
12942
          return false;
12803
      }
12943
      }
12804
 
12944
 
-
 
12945
      boolean this_present_otgAvailable = true;
-
 
12946
      boolean that_present_otgAvailable = true;
-
 
12947
      if (this_present_otgAvailable || that_present_otgAvailable) {
-
 
12948
        if (!(this_present_otgAvailable && that_present_otgAvailable))
-
 
12949
          return false;
-
 
12950
        if (this.otgAvailable != that.otgAvailable)
-
 
12951
          return false;
-
 
12952
      }
-
 
12953
 
12805
      return true;
12954
      return true;
12806
    }
12955
    }
12807
 
12956
 
12808
    @Override
12957
    @Override
12809
    public int hashCode() {
12958
    public int hashCode() {
Line 12856... Line 13005...
12856
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cod, typedOther.cod);
13005
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cod, typedOther.cod);
12857
        if (lastComparison != 0) {
13006
        if (lastComparison != 0) {
12858
          return lastComparison;
13007
          return lastComparison;
12859
        }
13008
        }
12860
      }
13009
      }
-
 
13010
      lastComparison = Boolean.valueOf(isSetOtgAvailable()).compareTo(typedOther.isSetOtgAvailable());
-
 
13011
      if (lastComparison != 0) {
-
 
13012
        return lastComparison;
-
 
13013
      }
-
 
13014
      if (isSetOtgAvailable()) {
-
 
13015
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.otgAvailable, typedOther.otgAvailable);
-
 
13016
        if (lastComparison != 0) {
-
 
13017
          return lastComparison;
-
 
13018
        }
-
 
13019
      }
12861
      return 0;
13020
      return 0;
12862
    }
13021
    }
12863
 
13022
 
12864
    public _Fields fieldForId(int fieldId) {
13023
    public _Fields fieldForId(int fieldId) {
12865
      return _Fields.findByThriftId(fieldId);
13024
      return _Fields.findByThriftId(fieldId);
Line 12904... Line 13063...
12904
              setCodIsSet(true);
13063
              setCodIsSet(true);
12905
            } else { 
13064
            } else { 
12906
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13065
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12907
            }
13066
            }
12908
            break;
13067
            break;
-
 
13068
          case 5: // OTG_AVAILABLE
-
 
13069
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
-
 
13070
              this.otgAvailable = iprot.readBool();
-
 
13071
              setOtgAvailableIsSet(true);
-
 
13072
            } else { 
-
 
13073
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
13074
            }
-
 
13075
            break;
12909
          default:
13076
          default:
12910
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13077
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12911
        }
13078
        }
12912
        iprot.readFieldEnd();
13079
        iprot.readFieldEnd();
12913
      }
13080
      }
Line 12931... Line 13098...
12931
      oprot.writeBool(this.exp);
13098
      oprot.writeBool(this.exp);
12932
      oprot.writeFieldEnd();
13099
      oprot.writeFieldEnd();
12933
      oprot.writeFieldBegin(COD_FIELD_DESC);
13100
      oprot.writeFieldBegin(COD_FIELD_DESC);
12934
      oprot.writeBool(this.cod);
13101
      oprot.writeBool(this.cod);
12935
      oprot.writeFieldEnd();
13102
      oprot.writeFieldEnd();
-
 
13103
      oprot.writeFieldBegin(OTG_AVAILABLE_FIELD_DESC);
-
 
13104
      oprot.writeBool(this.otgAvailable);
-
 
13105
      oprot.writeFieldEnd();
12936
      oprot.writeFieldStop();
13106
      oprot.writeFieldStop();
12937
      oprot.writeStructEnd();
13107
      oprot.writeStructEnd();
12938
    }
13108
    }
12939
 
13109
 
12940
    @Override
13110
    @Override
Line 12959... Line 13129...
12959
      first = false;
13129
      first = false;
12960
      if (!first) sb.append(", ");
13130
      if (!first) sb.append(", ");
12961
      sb.append("cod:");
13131
      sb.append("cod:");
12962
      sb.append(this.cod);
13132
      sb.append(this.cod);
12963
      first = false;
13133
      first = false;
-
 
13134
      if (!first) sb.append(", ");
-
 
13135
      sb.append("otgAvailable:");
-
 
13136
      sb.append(this.otgAvailable);
-
 
13137
      first = false;
12964
      sb.append(")");
13138
      sb.append(")");
12965
      return sb.toString();
13139
      return sb.toString();
12966
    }
13140
    }
12967
 
13141
 
12968
    public void validate() throws org.apache.thrift.TException {
13142
    public void validate() throws org.apache.thrift.TException {