Subversion Repositories SmartDukaan

Rev

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

Rev 6019 Rev 6031
Line 1063... Line 1063...
1063
      }
1063
      }
1064
      switch (field.id) {
1064
      switch (field.id) {
1065
        case 1: // COD_CANCELLABLE
1065
        case 1: // COD_CANCELLABLE
1066
          if (field.type == org.apache.thrift.protocol.TType.LIST) {
1066
          if (field.type == org.apache.thrift.protocol.TType.LIST) {
1067
            {
1067
            {
1068
              org.apache.thrift.protocol.TList _list12 = iprot.readListBegin();
1068
              org.apache.thrift.protocol.TList _list8 = iprot.readListBegin();
1069
              this.codCancellable = new ArrayList<OrderStatus>(_list12.size);
1069
              this.codCancellable = new ArrayList<OrderStatus>(_list8.size);
1070
              for (int _i13 = 0; _i13 < _list12.size; ++_i13)
1070
              for (int _i9 = 0; _i9 < _list8.size; ++_i9)
1071
              {
1071
              {
1072
                OrderStatus _elem14; // required
1072
                OrderStatus _elem10; // required
1073
                _elem14 = OrderStatus.findByValue(iprot.readI32());
1073
                _elem10 = OrderStatus.findByValue(iprot.readI32());
1074
                this.codCancellable.add(_elem14);
1074
                this.codCancellable.add(_elem10);
1075
              }
1075
              }
1076
              iprot.readListEnd();
1076
              iprot.readListEnd();
1077
            }
1077
            }
1078
          } else { 
1078
          } else { 
1079
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1079
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1080
          }
1080
          }
1081
          break;
1081
          break;
1082
        case 2: // PREPAID_CANCELLABLE_BEFORE_BILLED
1082
        case 2: // PREPAID_CANCELLABLE_BEFORE_BILLED
1083
          if (field.type == org.apache.thrift.protocol.TType.LIST) {
1083
          if (field.type == org.apache.thrift.protocol.TType.LIST) {
1084
            {
1084
            {
1085
              org.apache.thrift.protocol.TList _list15 = iprot.readListBegin();
1085
              org.apache.thrift.protocol.TList _list11 = iprot.readListBegin();
1086
              this.prepaidCancellableBeforeBilled = new ArrayList<OrderStatus>(_list15.size);
1086
              this.prepaidCancellableBeforeBilled = new ArrayList<OrderStatus>(_list11.size);
1087
              for (int _i16 = 0; _i16 < _list15.size; ++_i16)
1087
              for (int _i12 = 0; _i12 < _list11.size; ++_i12)
1088
              {
1088
              {
1089
                OrderStatus _elem17; // required
1089
                OrderStatus _elem13; // required
1090
                _elem17 = OrderStatus.findByValue(iprot.readI32());
1090
                _elem13 = OrderStatus.findByValue(iprot.readI32());
1091
                this.prepaidCancellableBeforeBilled.add(_elem17);
1091
                this.prepaidCancellableBeforeBilled.add(_elem13);
1092
              }
1092
              }
1093
              iprot.readListEnd();
1093
              iprot.readListEnd();
1094
            }
1094
            }
1095
          } else { 
1095
          } else { 
1096
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1096
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1097
          }
1097
          }
1098
          break;
1098
          break;
1099
        case 3: // PREPAID_CANCELLABLE_AFTER_BILLED
1099
        case 3: // PREPAID_CANCELLABLE_AFTER_BILLED
1100
          if (field.type == org.apache.thrift.protocol.TType.LIST) {
1100
          if (field.type == org.apache.thrift.protocol.TType.LIST) {
1101
            {
1101
            {
1102
              org.apache.thrift.protocol.TList _list18 = iprot.readListBegin();
1102
              org.apache.thrift.protocol.TList _list14 = iprot.readListBegin();
1103
              this.prepaidCancellableAfterBilled = new ArrayList<OrderStatus>(_list18.size);
1103
              this.prepaidCancellableAfterBilled = new ArrayList<OrderStatus>(_list14.size);
1104
              for (int _i19 = 0; _i19 < _list18.size; ++_i19)
1104
              for (int _i15 = 0; _i15 < _list14.size; ++_i15)
1105
              {
1105
              {
1106
                OrderStatus _elem20; // required
1106
                OrderStatus _elem16; // required
1107
                _elem20 = OrderStatus.findByValue(iprot.readI32());
1107
                _elem16 = OrderStatus.findByValue(iprot.readI32());
1108
                this.prepaidCancellableAfterBilled.add(_elem20);
1108
                this.prepaidCancellableAfterBilled.add(_elem16);
1109
              }
1109
              }
1110
              iprot.readListEnd();
1110
              iprot.readListEnd();
1111
            }
1111
            }
1112
          } else { 
1112
          } else { 
1113
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1113
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1114
          }
1114
          }
1115
          break;
1115
          break;
1116
        case 4: // OPEN_ORDERS
1116
        case 4: // OPEN_ORDERS
1117
          if (field.type == org.apache.thrift.protocol.TType.LIST) {
1117
          if (field.type == org.apache.thrift.protocol.TType.LIST) {
1118
            {
1118
            {
1119
              org.apache.thrift.protocol.TList _list21 = iprot.readListBegin();
1119
              org.apache.thrift.protocol.TList _list17 = iprot.readListBegin();
1120
              this.openOrders = new ArrayList<OrderStatus>(_list21.size);
1120
              this.openOrders = new ArrayList<OrderStatus>(_list17.size);
1121
              for (int _i22 = 0; _i22 < _list21.size; ++_i22)
1121
              for (int _i18 = 0; _i18 < _list17.size; ++_i18)
1122
              {
1122
              {
1123
                OrderStatus _elem23; // required
1123
                OrderStatus _elem19; // required
1124
                _elem23 = OrderStatus.findByValue(iprot.readI32());
1124
                _elem19 = OrderStatus.findByValue(iprot.readI32());
1125
                this.openOrders.add(_elem23);
1125
                this.openOrders.add(_elem19);
1126
              }
1126
              }
1127
              iprot.readListEnd();
1127
              iprot.readListEnd();
1128
            }
1128
            }
1129
          } else { 
1129
          } else { 
1130
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1130
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1131
          }
1131
          }
1132
          break;
1132
          break;
1133
        case 5: // REFUNDED_ORDERS
1133
        case 5: // REFUNDED_ORDERS
1134
          if (field.type == org.apache.thrift.protocol.TType.LIST) {
1134
          if (field.type == org.apache.thrift.protocol.TType.LIST) {
1135
            {
1135
            {
1136
              org.apache.thrift.protocol.TList _list24 = iprot.readListBegin();
1136
              org.apache.thrift.protocol.TList _list20 = iprot.readListBegin();
1137
              this.refundedOrders = new ArrayList<OrderStatus>(_list24.size);
1137
              this.refundedOrders = new ArrayList<OrderStatus>(_list20.size);
1138
              for (int _i25 = 0; _i25 < _list24.size; ++_i25)
1138
              for (int _i21 = 0; _i21 < _list20.size; ++_i21)
1139
              {
1139
              {
1140
                OrderStatus _elem26; // required
1140
                OrderStatus _elem22; // required
1141
                _elem26 = OrderStatus.findByValue(iprot.readI32());
1141
                _elem22 = OrderStatus.findByValue(iprot.readI32());
1142
                this.refundedOrders.add(_elem26);
1142
                this.refundedOrders.add(_elem22);
1143
              }
1143
              }
1144
              iprot.readListEnd();
1144
              iprot.readListEnd();
1145
            }
1145
            }
1146
          } else { 
1146
          } else { 
1147
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1147
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1148
          }
1148
          }
1149
          break;
1149
          break;
1150
        case 6: // SHIPPED_ORDERS
1150
        case 6: // SHIPPED_ORDERS
1151
          if (field.type == org.apache.thrift.protocol.TType.LIST) {
1151
          if (field.type == org.apache.thrift.protocol.TType.LIST) {
1152
            {
1152
            {
1153
              org.apache.thrift.protocol.TList _list27 = iprot.readListBegin();
1153
              org.apache.thrift.protocol.TList _list23 = iprot.readListBegin();
1154
              this.shippedOrders = new ArrayList<OrderStatus>(_list27.size);
1154
              this.shippedOrders = new ArrayList<OrderStatus>(_list23.size);
1155
              for (int _i28 = 0; _i28 < _list27.size; ++_i28)
1155
              for (int _i24 = 0; _i24 < _list23.size; ++_i24)
1156
              {
1156
              {
1157
                OrderStatus _elem29; // required
1157
                OrderStatus _elem25; // required
1158
                _elem29 = OrderStatus.findByValue(iprot.readI32());
1158
                _elem25 = OrderStatus.findByValue(iprot.readI32());
1159
                this.shippedOrders.add(_elem29);
1159
                this.shippedOrders.add(_elem25);
1160
              }
1160
              }
1161
              iprot.readListEnd();
1161
              iprot.readListEnd();
1162
            }
1162
            }
1163
          } else { 
1163
          } else { 
1164
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1164
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1165
          }
1165
          }
1166
          break;
1166
          break;
1167
        case 7: // FAILED_ORDERS
1167
        case 7: // FAILED_ORDERS
1168
          if (field.type == org.apache.thrift.protocol.TType.LIST) {
1168
          if (field.type == org.apache.thrift.protocol.TType.LIST) {
1169
            {
1169
            {
1170
              org.apache.thrift.protocol.TList _list30 = iprot.readListBegin();
1170
              org.apache.thrift.protocol.TList _list26 = iprot.readListBegin();
1171
              this.failedOrders = new ArrayList<OrderStatus>(_list30.size);
1171
              this.failedOrders = new ArrayList<OrderStatus>(_list26.size);
1172
              for (int _i31 = 0; _i31 < _list30.size; ++_i31)
1172
              for (int _i27 = 0; _i27 < _list26.size; ++_i27)
1173
              {
1173
              {
1174
                OrderStatus _elem32; // required
1174
                OrderStatus _elem28; // required
1175
                _elem32 = OrderStatus.findByValue(iprot.readI32());
1175
                _elem28 = OrderStatus.findByValue(iprot.readI32());
1176
                this.failedOrders.add(_elem32);
1176
                this.failedOrders.add(_elem28);
1177
              }
1177
              }
1178
              iprot.readListEnd();
1178
              iprot.readListEnd();
1179
            }
1179
            }
1180
          } else { 
1180
          } else { 
1181
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1181
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 1196... Line 1196...
1196
    oprot.writeStructBegin(STRUCT_DESC);
1196
    oprot.writeStructBegin(STRUCT_DESC);
1197
    if (this.codCancellable != null) {
1197
    if (this.codCancellable != null) {
1198
      oprot.writeFieldBegin(COD_CANCELLABLE_FIELD_DESC);
1198
      oprot.writeFieldBegin(COD_CANCELLABLE_FIELD_DESC);
1199
      {
1199
      {
1200
        oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I32, this.codCancellable.size()));
1200
        oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I32, this.codCancellable.size()));
1201
        for (OrderStatus _iter33 : this.codCancellable)
1201
        for (OrderStatus _iter29 : this.codCancellable)
1202
        {
1202
        {
1203
          oprot.writeI32(_iter33.getValue());
1203
          oprot.writeI32(_iter29.getValue());
1204
        }
1204
        }
1205
        oprot.writeListEnd();
1205
        oprot.writeListEnd();
1206
      }
1206
      }
1207
      oprot.writeFieldEnd();
1207
      oprot.writeFieldEnd();
1208
    }
1208
    }
1209
    if (this.prepaidCancellableBeforeBilled != null) {
1209
    if (this.prepaidCancellableBeforeBilled != null) {
1210
      oprot.writeFieldBegin(PREPAID_CANCELLABLE_BEFORE_BILLED_FIELD_DESC);
1210
      oprot.writeFieldBegin(PREPAID_CANCELLABLE_BEFORE_BILLED_FIELD_DESC);
1211
      {
1211
      {
1212
        oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I32, this.prepaidCancellableBeforeBilled.size()));
1212
        oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I32, this.prepaidCancellableBeforeBilled.size()));
1213
        for (OrderStatus _iter34 : this.prepaidCancellableBeforeBilled)
1213
        for (OrderStatus _iter30 : this.prepaidCancellableBeforeBilled)
1214
        {
1214
        {
1215
          oprot.writeI32(_iter34.getValue());
1215
          oprot.writeI32(_iter30.getValue());
1216
        }
1216
        }
1217
        oprot.writeListEnd();
1217
        oprot.writeListEnd();
1218
      }
1218
      }
1219
      oprot.writeFieldEnd();
1219
      oprot.writeFieldEnd();
1220
    }
1220
    }
1221
    if (this.prepaidCancellableAfterBilled != null) {
1221
    if (this.prepaidCancellableAfterBilled != null) {
1222
      oprot.writeFieldBegin(PREPAID_CANCELLABLE_AFTER_BILLED_FIELD_DESC);
1222
      oprot.writeFieldBegin(PREPAID_CANCELLABLE_AFTER_BILLED_FIELD_DESC);
1223
      {
1223
      {
1224
        oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I32, this.prepaidCancellableAfterBilled.size()));
1224
        oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I32, this.prepaidCancellableAfterBilled.size()));
1225
        for (OrderStatus _iter35 : this.prepaidCancellableAfterBilled)
1225
        for (OrderStatus _iter31 : this.prepaidCancellableAfterBilled)
1226
        {
1226
        {
1227
          oprot.writeI32(_iter35.getValue());
1227
          oprot.writeI32(_iter31.getValue());
1228
        }
1228
        }
1229
        oprot.writeListEnd();
1229
        oprot.writeListEnd();
1230
      }
1230
      }
1231
      oprot.writeFieldEnd();
1231
      oprot.writeFieldEnd();
1232
    }
1232
    }
1233
    if (this.openOrders != null) {
1233
    if (this.openOrders != null) {
1234
      oprot.writeFieldBegin(OPEN_ORDERS_FIELD_DESC);
1234
      oprot.writeFieldBegin(OPEN_ORDERS_FIELD_DESC);
1235
      {
1235
      {
1236
        oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I32, this.openOrders.size()));
1236
        oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I32, this.openOrders.size()));
1237
        for (OrderStatus _iter36 : this.openOrders)
1237
        for (OrderStatus _iter32 : this.openOrders)
1238
        {
1238
        {
1239
          oprot.writeI32(_iter36.getValue());
1239
          oprot.writeI32(_iter32.getValue());
1240
        }
1240
        }
1241
        oprot.writeListEnd();
1241
        oprot.writeListEnd();
1242
      }
1242
      }
1243
      oprot.writeFieldEnd();
1243
      oprot.writeFieldEnd();
1244
    }
1244
    }
1245
    if (this.refundedOrders != null) {
1245
    if (this.refundedOrders != null) {
1246
      oprot.writeFieldBegin(REFUNDED_ORDERS_FIELD_DESC);
1246
      oprot.writeFieldBegin(REFUNDED_ORDERS_FIELD_DESC);
1247
      {
1247
      {
1248
        oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I32, this.refundedOrders.size()));
1248
        oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I32, this.refundedOrders.size()));
1249
        for (OrderStatus _iter37 : this.refundedOrders)
1249
        for (OrderStatus _iter33 : this.refundedOrders)
1250
        {
1250
        {
1251
          oprot.writeI32(_iter37.getValue());
1251
          oprot.writeI32(_iter33.getValue());
1252
        }
1252
        }
1253
        oprot.writeListEnd();
1253
        oprot.writeListEnd();
1254
      }
1254
      }
1255
      oprot.writeFieldEnd();
1255
      oprot.writeFieldEnd();
1256
    }
1256
    }
1257
    if (this.shippedOrders != null) {
1257
    if (this.shippedOrders != null) {
1258
      oprot.writeFieldBegin(SHIPPED_ORDERS_FIELD_DESC);
1258
      oprot.writeFieldBegin(SHIPPED_ORDERS_FIELD_DESC);
1259
      {
1259
      {
1260
        oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I32, this.shippedOrders.size()));
1260
        oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I32, this.shippedOrders.size()));
1261
        for (OrderStatus _iter38 : this.shippedOrders)
1261
        for (OrderStatus _iter34 : this.shippedOrders)
1262
        {
1262
        {
1263
          oprot.writeI32(_iter38.getValue());
1263
          oprot.writeI32(_iter34.getValue());
1264
        }
1264
        }
1265
        oprot.writeListEnd();
1265
        oprot.writeListEnd();
1266
      }
1266
      }
1267
      oprot.writeFieldEnd();
1267
      oprot.writeFieldEnd();
1268
    }
1268
    }
1269
    if (this.failedOrders != null) {
1269
    if (this.failedOrders != null) {
1270
      oprot.writeFieldBegin(FAILED_ORDERS_FIELD_DESC);
1270
      oprot.writeFieldBegin(FAILED_ORDERS_FIELD_DESC);
1271
      {
1271
      {
1272
        oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I32, this.failedOrders.size()));
1272
        oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I32, this.failedOrders.size()));
1273
        for (OrderStatus _iter39 : this.failedOrders)
1273
        for (OrderStatus _iter35 : this.failedOrders)
1274
        {
1274
        {
1275
          oprot.writeI32(_iter39.getValue());
1275
          oprot.writeI32(_iter35.getValue());
1276
        }
1276
        }
1277
        oprot.writeListEnd();
1277
        oprot.writeListEnd();
1278
      }
1278
      }
1279
      oprot.writeFieldEnd();
1279
      oprot.writeFieldEnd();
1280
    }
1280
    }