Subversion Repositories SmartDukaan

Rev

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

Rev 3546 Rev 4241
Line 38... Line 38...
38
  private static final org.apache.thrift.protocol.TField TICKET_DESCRIPTION_FIELD_DESC = new org.apache.thrift.protocol.TField("ticketDescription", org.apache.thrift.protocol.TType.STRING, (short)13);
38
  private static final org.apache.thrift.protocol.TField TICKET_DESCRIPTION_FIELD_DESC = new org.apache.thrift.protocol.TField("ticketDescription", org.apache.thrift.protocol.TType.STRING, (short)13);
39
  private static final org.apache.thrift.protocol.TField IS_READ_FIELD_DESC = new org.apache.thrift.protocol.TField("isRead", org.apache.thrift.protocol.TType.BOOL, (short)14);
39
  private static final org.apache.thrift.protocol.TField IS_READ_FIELD_DESC = new org.apache.thrift.protocol.TField("isRead", org.apache.thrift.protocol.TType.BOOL, (short)14);
40
  private static final org.apache.thrift.protocol.TField CUSTOMER_MOBILE_NUMBER_FIELD_DESC = new org.apache.thrift.protocol.TField("customerMobileNumber", org.apache.thrift.protocol.TType.STRING, (short)15);
40
  private static final org.apache.thrift.protocol.TField CUSTOMER_MOBILE_NUMBER_FIELD_DESC = new org.apache.thrift.protocol.TField("customerMobileNumber", org.apache.thrift.protocol.TType.STRING, (short)15);
41
  private static final org.apache.thrift.protocol.TField CUSTOMER_EMAIL_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("customerEmailId", org.apache.thrift.protocol.TType.STRING, (short)16);
41
  private static final org.apache.thrift.protocol.TField CUSTOMER_EMAIL_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("customerEmailId", org.apache.thrift.protocol.TType.STRING, (short)16);
42
  private static final org.apache.thrift.protocol.TField CUSTOMER_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("customerName", org.apache.thrift.protocol.TType.STRING, (short)17);
42
  private static final org.apache.thrift.protocol.TField CUSTOMER_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("customerName", org.apache.thrift.protocol.TType.STRING, (short)17);
-
 
43
  private static final org.apache.thrift.protocol.TField ATTACHMENTS_FIELD_DESC = new org.apache.thrift.protocol.TField("attachments", org.apache.thrift.protocol.TType.STRING, (short)18);
43
 
44
 
44
  private long id; // required
45
  private long id; // required
45
  private String description; // required
46
  private String description; // required
46
  private long creationTimestamp; // required
47
  private long creationTimestamp; // required
47
  private ActivityType type; // required
48
  private ActivityType type; // required
Line 56... Line 57...
56
  private String ticketDescription; // required
57
  private String ticketDescription; // required
57
  private boolean isRead; // required
58
  private boolean isRead; // required
58
  private String customerMobileNumber; // required
59
  private String customerMobileNumber; // required
59
  private String customerEmailId; // required
60
  private String customerEmailId; // required
60
  private String customerName; // required
61
  private String customerName; // required
-
 
62
  private String attachments; // required
61
 
63
 
62
  /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
64
  /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
63
  public enum _Fields implements org.apache.thrift.TFieldIdEnum {
65
  public enum _Fields implements org.apache.thrift.TFieldIdEnum {
64
    ID((short)1, "id"),
66
    ID((short)1, "id"),
65
    DESCRIPTION((short)2, "description"),
67
    DESCRIPTION((short)2, "description"),
Line 91... Line 93...
91
    TICKET_CATEGORY((short)12, "ticketCategory"),
93
    TICKET_CATEGORY((short)12, "ticketCategory"),
92
    TICKET_DESCRIPTION((short)13, "ticketDescription"),
94
    TICKET_DESCRIPTION((short)13, "ticketDescription"),
93
    IS_READ((short)14, "isRead"),
95
    IS_READ((short)14, "isRead"),
94
    CUSTOMER_MOBILE_NUMBER((short)15, "customerMobileNumber"),
96
    CUSTOMER_MOBILE_NUMBER((short)15, "customerMobileNumber"),
95
    CUSTOMER_EMAIL_ID((short)16, "customerEmailId"),
97
    CUSTOMER_EMAIL_ID((short)16, "customerEmailId"),
96
    CUSTOMER_NAME((short)17, "customerName");
98
    CUSTOMER_NAME((short)17, "customerName"),
-
 
99
    ATTACHMENTS((short)18, "attachments");
97
 
100
 
98
    private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
101
    private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
99
 
102
 
100
    static {
103
    static {
101
      for (_Fields field : EnumSet.allOf(_Fields.class)) {
104
      for (_Fields field : EnumSet.allOf(_Fields.class)) {
Line 140... Line 143...
140
          return CUSTOMER_MOBILE_NUMBER;
143
          return CUSTOMER_MOBILE_NUMBER;
141
        case 16: // CUSTOMER_EMAIL_ID
144
        case 16: // CUSTOMER_EMAIL_ID
142
          return CUSTOMER_EMAIL_ID;
145
          return CUSTOMER_EMAIL_ID;
143
        case 17: // CUSTOMER_NAME
146
        case 17: // CUSTOMER_NAME
144
          return CUSTOMER_NAME;
147
          return CUSTOMER_NAME;
-
 
148
        case 18: // ATTACHMENTS
-
 
149
          return ATTACHMENTS;
145
        default:
150
        default:
146
          return null;
151
          return null;
147
      }
152
      }
148
    }
153
    }
149
 
154
 
Line 227... Line 232...
227
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
232
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
228
    tmpMap.put(_Fields.CUSTOMER_EMAIL_ID, new org.apache.thrift.meta_data.FieldMetaData("customerEmailId", org.apache.thrift.TFieldRequirementType.OPTIONAL, 
233
    tmpMap.put(_Fields.CUSTOMER_EMAIL_ID, new org.apache.thrift.meta_data.FieldMetaData("customerEmailId", org.apache.thrift.TFieldRequirementType.OPTIONAL, 
229
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
234
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
230
    tmpMap.put(_Fields.CUSTOMER_NAME, new org.apache.thrift.meta_data.FieldMetaData("customerName", org.apache.thrift.TFieldRequirementType.OPTIONAL, 
235
    tmpMap.put(_Fields.CUSTOMER_NAME, new org.apache.thrift.meta_data.FieldMetaData("customerName", org.apache.thrift.TFieldRequirementType.OPTIONAL, 
231
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
236
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
-
 
237
    tmpMap.put(_Fields.ATTACHMENTS, new org.apache.thrift.meta_data.FieldMetaData("attachments", org.apache.thrift.TFieldRequirementType.OPTIONAL, 
-
 
238
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
232
    metaDataMap = Collections.unmodifiableMap(tmpMap);
239
    metaDataMap = Collections.unmodifiableMap(tmpMap);
233
    org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(Activity.class, metaDataMap);
240
    org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(Activity.class, metaDataMap);
234
  }
241
  }
235
 
242
 
236
  public Activity() {
243
  public Activity() {
Line 291... Line 298...
291
      this.customerEmailId = other.customerEmailId;
298
      this.customerEmailId = other.customerEmailId;
292
    }
299
    }
293
    if (other.isSetCustomerName()) {
300
    if (other.isSetCustomerName()) {
294
      this.customerName = other.customerName;
301
      this.customerName = other.customerName;
295
    }
302
    }
-
 
303
    if (other.isSetAttachments()) {
-
 
304
      this.attachments = other.attachments;
-
 
305
    }
296
  }
306
  }
297
 
307
 
298
  public Activity deepCopy() {
308
  public Activity deepCopy() {
299
    return new Activity(this);
309
    return new Activity(this);
300
  }
310
  }
Line 324... Line 334...
324
    setIsReadIsSet(false);
334
    setIsReadIsSet(false);
325
    this.isRead = false;
335
    this.isRead = false;
326
    this.customerMobileNumber = null;
336
    this.customerMobileNumber = null;
327
    this.customerEmailId = null;
337
    this.customerEmailId = null;
328
    this.customerName = null;
338
    this.customerName = null;
-
 
339
    this.attachments = null;
329
  }
340
  }
330
 
341
 
331
  public long getId() {
342
  public long getId() {
332
    return this.id;
343
    return this.id;
333
  }
344
  }
Line 741... Line 752...
741
    if (!value) {
752
    if (!value) {
742
      this.customerName = null;
753
      this.customerName = null;
743
    }
754
    }
744
  }
755
  }
745
 
756
 
-
 
757
  public String getAttachments() {
-
 
758
    return this.attachments;
-
 
759
  }
-
 
760
 
-
 
761
  public void setAttachments(String attachments) {
-
 
762
    this.attachments = attachments;
-
 
763
  }
-
 
764
 
-
 
765
  public void unsetAttachments() {
-
 
766
    this.attachments = null;
-
 
767
  }
-
 
768
 
-
 
769
  /** Returns true if field attachments is set (has been assigned a value) and false otherwise */
-
 
770
  public boolean isSetAttachments() {
-
 
771
    return this.attachments != null;
-
 
772
  }
-
 
773
 
-
 
774
  public void setAttachmentsIsSet(boolean value) {
-
 
775
    if (!value) {
-
 
776
      this.attachments = null;
-
 
777
    }
-
 
778
  }
-
 
779
 
746
  public void setFieldValue(_Fields field, Object value) {
780
  public void setFieldValue(_Fields field, Object value) {
747
    switch (field) {
781
    switch (field) {
748
    case ID:
782
    case ID:
749
      if (value == null) {
783
      if (value == null) {
750
        unsetId();
784
        unsetId();
Line 879... Line 913...
879
      } else {
913
      } else {
880
        setCustomerName((String)value);
914
        setCustomerName((String)value);
881
      }
915
      }
882
      break;
916
      break;
883
 
917
 
-
 
918
    case ATTACHMENTS:
-
 
919
      if (value == null) {
-
 
920
        unsetAttachments();
-
 
921
      } else {
-
 
922
        setAttachments((String)value);
-
 
923
      }
-
 
924
      break;
-
 
925
 
884
    }
926
    }
885
  }
927
  }
886
 
928
 
887
  public Object getFieldValue(_Fields field) {
929
  public Object getFieldValue(_Fields field) {
888
    switch (field) {
930
    switch (field) {
Line 935... Line 977...
935
      return getCustomerEmailId();
977
      return getCustomerEmailId();
936
 
978
 
937
    case CUSTOMER_NAME:
979
    case CUSTOMER_NAME:
938
      return getCustomerName();
980
      return getCustomerName();
939
 
981
 
-
 
982
    case ATTACHMENTS:
-
 
983
      return getAttachments();
-
 
984
 
940
    }
985
    }
941
    throw new IllegalStateException();
986
    throw new IllegalStateException();
942
  }
987
  }
943
 
988
 
944
  /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
989
  /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
Line 980... Line 1025...
980
      return isSetCustomerMobileNumber();
1025
      return isSetCustomerMobileNumber();
981
    case CUSTOMER_EMAIL_ID:
1026
    case CUSTOMER_EMAIL_ID:
982
      return isSetCustomerEmailId();
1027
      return isSetCustomerEmailId();
983
    case CUSTOMER_NAME:
1028
    case CUSTOMER_NAME:
984
      return isSetCustomerName();
1029
      return isSetCustomerName();
-
 
1030
    case ATTACHMENTS:
-
 
1031
      return isSetAttachments();
985
    }
1032
    }
986
    throw new IllegalStateException();
1033
    throw new IllegalStateException();
987
  }
1034
  }
988
 
1035
 
989
  @Override
1036
  @Override
Line 1150... Line 1197...
1150
        return false;
1197
        return false;
1151
      if (!this.customerName.equals(that.customerName))
1198
      if (!this.customerName.equals(that.customerName))
1152
        return false;
1199
        return false;
1153
    }
1200
    }
1154
 
1201
 
-
 
1202
    boolean this_present_attachments = true && this.isSetAttachments();
-
 
1203
    boolean that_present_attachments = true && that.isSetAttachments();
-
 
1204
    if (this_present_attachments || that_present_attachments) {
-
 
1205
      if (!(this_present_attachments && that_present_attachments))
-
 
1206
        return false;
-
 
1207
      if (!this.attachments.equals(that.attachments))
-
 
1208
        return false;
-
 
1209
    }
-
 
1210
 
1155
    return true;
1211
    return true;
1156
  }
1212
  }
1157
 
1213
 
1158
  @Override
1214
  @Override
1159
  public int hashCode() {
1215
  public int hashCode() {
Line 1336... Line 1392...
1336
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.customerName, typedOther.customerName);
1392
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.customerName, typedOther.customerName);
1337
      if (lastComparison != 0) {
1393
      if (lastComparison != 0) {
1338
        return lastComparison;
1394
        return lastComparison;
1339
      }
1395
      }
1340
    }
1396
    }
-
 
1397
    lastComparison = Boolean.valueOf(isSetAttachments()).compareTo(typedOther.isSetAttachments());
-
 
1398
    if (lastComparison != 0) {
-
 
1399
      return lastComparison;
-
 
1400
    }
-
 
1401
    if (isSetAttachments()) {
-
 
1402
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.attachments, typedOther.attachments);
-
 
1403
      if (lastComparison != 0) {
-
 
1404
        return lastComparison;
-
 
1405
      }
-
 
1406
    }
1341
    return 0;
1407
    return 0;
1342
  }
1408
  }
1343
 
1409
 
1344
  public _Fields fieldForId(int fieldId) {
1410
  public _Fields fieldForId(int fieldId) {
1345
    return _Fields.findByThriftId(fieldId);
1411
    return _Fields.findByThriftId(fieldId);
Line 1480... Line 1546...
1480
            this.customerName = iprot.readString();
1546
            this.customerName = iprot.readString();
1481
          } else { 
1547
          } else { 
1482
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1548
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1483
          }
1549
          }
1484
          break;
1550
          break;
-
 
1551
        case 18: // ATTACHMENTS
-
 
1552
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
-
 
1553
            this.attachments = iprot.readString();
-
 
1554
          } else { 
-
 
1555
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
1556
          }
-
 
1557
          break;
1485
        default:
1558
        default:
1486
          org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1559
          org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1487
      }
1560
      }
1488
      iprot.readFieldEnd();
1561
      iprot.readFieldEnd();
1489
    }
1562
    }
Line 1588... Line 1661...
1588
        oprot.writeFieldBegin(CUSTOMER_NAME_FIELD_DESC);
1661
        oprot.writeFieldBegin(CUSTOMER_NAME_FIELD_DESC);
1589
        oprot.writeString(this.customerName);
1662
        oprot.writeString(this.customerName);
1590
        oprot.writeFieldEnd();
1663
        oprot.writeFieldEnd();
1591
      }
1664
      }
1592
    }
1665
    }
-
 
1666
    if (this.attachments != null) {
-
 
1667
      if (isSetAttachments()) {
-
 
1668
        oprot.writeFieldBegin(ATTACHMENTS_FIELD_DESC);
-
 
1669
        oprot.writeString(this.attachments);
-
 
1670
        oprot.writeFieldEnd();
-
 
1671
      }
-
 
1672
    }
1593
    oprot.writeFieldStop();
1673
    oprot.writeFieldStop();
1594
    oprot.writeStructEnd();
1674
    oprot.writeStructEnd();
1595
  }
1675
  }
1596
 
1676
 
1597
  @Override
1677
  @Override
Line 1726... Line 1806...
1726
      } else {
1806
      } else {
1727
        sb.append(this.customerName);
1807
        sb.append(this.customerName);
1728
      }
1808
      }
1729
      first = false;
1809
      first = false;
1730
    }
1810
    }
-
 
1811
    if (isSetAttachments()) {
-
 
1812
      if (!first) sb.append(", ");
-
 
1813
      sb.append("attachments:");
-
 
1814
      if (this.attachments == null) {
-
 
1815
        sb.append("null");
-
 
1816
      } else {
-
 
1817
        sb.append(this.attachments);
-
 
1818
      }
-
 
1819
      first = false;
-
 
1820
    }
1731
    sb.append(")");
1821
    sb.append(")");
1732
    return sb.toString();
1822
    return sb.toString();
1733
  }
1823
  }
1734
 
1824
 
1735
  public void validate() throws org.apache.thrift.TException {
1825
  public void validate() throws org.apache.thrift.TException {