Subversion Repositories SmartDukaan

Rev

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

Rev 3079 Rev 3086
Line 274... Line 274...
274
     * @param itemId
274
     * @param itemId
275
     * @param email
275
     * @param email
276
     */
276
     */
277
    public boolean addProductNotification(long itemId, String email) throws TException;
277
    public boolean addProductNotification(long itemId, String email) throws TException;
278
 
278
 
-
 
279
    /**
-
 
280
     * Send the product notifications to the users for items which has stock.
-
 
281
     */
-
 
282
    public boolean sendProductNotifications() throws TException;
-
 
283
 
279
  }
284
  }
280
 
285
 
281
  public static class Client implements Iface {
286
  public static class Client implements Iface {
282
    public Client(TProtocol prot)
287
    public Client(TProtocol prot)
283
    {
288
    {
Line 2137... Line 2142...
2137
        return result.success;
2142
        return result.success;
2138
      }
2143
      }
2139
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "addProductNotification failed: unknown result");
2144
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "addProductNotification failed: unknown result");
2140
    }
2145
    }
2141
 
2146
 
-
 
2147
    public boolean sendProductNotifications() throws TException
-
 
2148
    {
-
 
2149
      send_sendProductNotifications();
-
 
2150
      return recv_sendProductNotifications();
-
 
2151
    }
-
 
2152
 
-
 
2153
    public void send_sendProductNotifications() throws TException
-
 
2154
    {
-
 
2155
      oprot_.writeMessageBegin(new TMessage("sendProductNotifications", TMessageType.CALL, seqid_));
-
 
2156
      sendProductNotifications_args args = new sendProductNotifications_args();
-
 
2157
      args.write(oprot_);
-
 
2158
      oprot_.writeMessageEnd();
-
 
2159
      oprot_.getTransport().flush();
-
 
2160
    }
-
 
2161
 
-
 
2162
    public boolean recv_sendProductNotifications() throws TException
-
 
2163
    {
-
 
2164
      TMessage msg = iprot_.readMessageBegin();
-
 
2165
      if (msg.type == TMessageType.EXCEPTION) {
-
 
2166
        TApplicationException x = TApplicationException.read(iprot_);
-
 
2167
        iprot_.readMessageEnd();
-
 
2168
        throw x;
-
 
2169
      }
-
 
2170
      sendProductNotifications_result result = new sendProductNotifications_result();
-
 
2171
      result.read(iprot_);
-
 
2172
      iprot_.readMessageEnd();
-
 
2173
      if (result.isSetSuccess()) {
-
 
2174
        return result.success;
-
 
2175
      }
-
 
2176
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "sendProductNotifications failed: unknown result");
-
 
2177
    }
-
 
2178
 
2142
  }
2179
  }
2143
  public static class Processor implements TProcessor {
2180
  public static class Processor implements TProcessor {
2144
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
2181
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
2145
    public Processor(Iface iface)
2182
    public Processor(Iface iface)
2146
    {
2183
    {
Line 2195... Line 2232...
2195
      processMap_.put("changeItemRiskyFlag", new changeItemRiskyFlag());
2232
      processMap_.put("changeItemRiskyFlag", new changeItemRiskyFlag());
2196
      processMap_.put("getItemsByRiskyFlag", new getItemsByRiskyFlag());
2233
      processMap_.put("getItemsByRiskyFlag", new getItemsByRiskyFlag());
2197
      processMap_.put("getItemsByVendorCategory", new getItemsByVendorCategory());
2234
      processMap_.put("getItemsByVendorCategory", new getItemsByVendorCategory());
2198
      processMap_.put("getSimilarItemsCatalogIds", new getSimilarItemsCatalogIds());
2235
      processMap_.put("getSimilarItemsCatalogIds", new getSimilarItemsCatalogIds());
2199
      processMap_.put("addProductNotification", new addProductNotification());
2236
      processMap_.put("addProductNotification", new addProductNotification());
-
 
2237
      processMap_.put("sendProductNotifications", new sendProductNotifications());
2200
    }
2238
    }
2201
 
2239
 
2202
    protected static interface ProcessFunction {
2240
    protected static interface ProcessFunction {
2203
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException;
2241
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException;
2204
    }
2242
    }
Line 3537... Line 3575...
3537
        oprot.getTransport().flush();
3575
        oprot.getTransport().flush();
3538
      }
3576
      }
3539
 
3577
 
3540
    }
3578
    }
3541
 
3579
 
-
 
3580
    private class sendProductNotifications implements ProcessFunction {
-
 
3581
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
-
 
3582
      {
-
 
3583
        sendProductNotifications_args args = new sendProductNotifications_args();
-
 
3584
        args.read(iprot);
-
 
3585
        iprot.readMessageEnd();
-
 
3586
        sendProductNotifications_result result = new sendProductNotifications_result();
-
 
3587
        result.success = iface_.sendProductNotifications();
-
 
3588
        result.setSuccessIsSet(true);
-
 
3589
        oprot.writeMessageBegin(new TMessage("sendProductNotifications", TMessageType.REPLY, seqid));
-
 
3590
        result.write(oprot);
-
 
3591
        oprot.writeMessageEnd();
-
 
3592
        oprot.getTransport().flush();
-
 
3593
      }
-
 
3594
 
-
 
3595
    }
-
 
3596
 
3542
  }
3597
  }
3543
 
3598
 
3544
  public static class closeSession_args implements TBase<closeSession_args._Fields>, java.io.Serializable, Cloneable, Comparable<closeSession_args>   {
3599
  public static class closeSession_args implements TBase<closeSession_args._Fields>, java.io.Serializable, Cloneable, Comparable<closeSession_args>   {
3545
    private static final TStruct STRUCT_DESC = new TStruct("closeSession_args");
3600
    private static final TStruct STRUCT_DESC = new TStruct("closeSession_args");
3546
 
3601
 
Line 37786... Line 37841...
37786
      boolean first = true;
37841
      boolean first = true;
37787
 
37842
 
37788
      sb.append("success:");
37843
      sb.append("success:");
37789
      sb.append(this.success);
37844
      sb.append(this.success);
37790
      first = false;
37845
      first = false;
-
 
37846
      sb.append(")");
-
 
37847
      return sb.toString();
-
 
37848
    }
-
 
37849
 
-
 
37850
    public void validate() throws TException {
-
 
37851
      // check for required fields
-
 
37852
    }
-
 
37853
 
-
 
37854
  }
-
 
37855
 
-
 
37856
  public static class sendProductNotifications_args implements TBase<sendProductNotifications_args._Fields>, java.io.Serializable, Cloneable, Comparable<sendProductNotifications_args>   {
-
 
37857
    private static final TStruct STRUCT_DESC = new TStruct("sendProductNotifications_args");
-
 
37858
 
-
 
37859
 
-
 
37860
 
-
 
37861
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
37862
    public enum _Fields implements TFieldIdEnum {
-
 
37863
;
-
 
37864
 
-
 
37865
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
37866
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
37867
 
-
 
37868
      static {
-
 
37869
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
37870
          byId.put((int)field._thriftId, field);
-
 
37871
          byName.put(field.getFieldName(), field);
-
 
37872
        }
-
 
37873
      }
-
 
37874
 
-
 
37875
      /**
-
 
37876
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
37877
       */
-
 
37878
      public static _Fields findByThriftId(int fieldId) {
-
 
37879
        return byId.get(fieldId);
-
 
37880
      }
-
 
37881
 
-
 
37882
      /**
-
 
37883
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
37884
       * if it is not found.
-
 
37885
       */
-
 
37886
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
37887
        _Fields fields = findByThriftId(fieldId);
-
 
37888
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
37889
        return fields;
-
 
37890
      }
-
 
37891
 
-
 
37892
      /**
-
 
37893
       * Find the _Fields constant that matches name, or null if its not found.
-
 
37894
       */
-
 
37895
      public static _Fields findByName(String name) {
-
 
37896
        return byName.get(name);
-
 
37897
      }
-
 
37898
 
-
 
37899
      private final short _thriftId;
-
 
37900
      private final String _fieldName;
-
 
37901
 
-
 
37902
      _Fields(short thriftId, String fieldName) {
-
 
37903
        _thriftId = thriftId;
-
 
37904
        _fieldName = fieldName;
-
 
37905
      }
-
 
37906
 
-
 
37907
      public short getThriftFieldId() {
-
 
37908
        return _thriftId;
-
 
37909
      }
-
 
37910
 
-
 
37911
      public String getFieldName() {
-
 
37912
        return _fieldName;
-
 
37913
      }
-
 
37914
    }
-
 
37915
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
-
 
37916
    }});
-
 
37917
 
-
 
37918
    static {
-
 
37919
      FieldMetaData.addStructMetaDataMap(sendProductNotifications_args.class, metaDataMap);
-
 
37920
    }
-
 
37921
 
-
 
37922
    public sendProductNotifications_args() {
-
 
37923
    }
-
 
37924
 
-
 
37925
    /**
-
 
37926
     * Performs a deep copy on <i>other</i>.
-
 
37927
     */
-
 
37928
    public sendProductNotifications_args(sendProductNotifications_args other) {
-
 
37929
    }
-
 
37930
 
-
 
37931
    public sendProductNotifications_args deepCopy() {
-
 
37932
      return new sendProductNotifications_args(this);
-
 
37933
    }
-
 
37934
 
-
 
37935
    @Deprecated
-
 
37936
    public sendProductNotifications_args clone() {
-
 
37937
      return new sendProductNotifications_args(this);
-
 
37938
    }
-
 
37939
 
-
 
37940
    public void setFieldValue(_Fields field, Object value) {
-
 
37941
      switch (field) {
-
 
37942
      }
-
 
37943
    }
-
 
37944
 
-
 
37945
    public void setFieldValue(int fieldID, Object value) {
-
 
37946
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
37947
    }
-
 
37948
 
-
 
37949
    public Object getFieldValue(_Fields field) {
-
 
37950
      switch (field) {
-
 
37951
      }
-
 
37952
      throw new IllegalStateException();
-
 
37953
    }
-
 
37954
 
-
 
37955
    public Object getFieldValue(int fieldId) {
-
 
37956
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
37957
    }
-
 
37958
 
-
 
37959
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
-
 
37960
    public boolean isSet(_Fields field) {
-
 
37961
      switch (field) {
-
 
37962
      }
-
 
37963
      throw new IllegalStateException();
-
 
37964
    }
-
 
37965
 
-
 
37966
    public boolean isSet(int fieldID) {
-
 
37967
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
37968
    }
-
 
37969
 
-
 
37970
    @Override
-
 
37971
    public boolean equals(Object that) {
-
 
37972
      if (that == null)
-
 
37973
        return false;
-
 
37974
      if (that instanceof sendProductNotifications_args)
-
 
37975
        return this.equals((sendProductNotifications_args)that);
-
 
37976
      return false;
-
 
37977
    }
-
 
37978
 
-
 
37979
    public boolean equals(sendProductNotifications_args that) {
-
 
37980
      if (that == null)
-
 
37981
        return false;
-
 
37982
 
-
 
37983
      return true;
-
 
37984
    }
-
 
37985
 
-
 
37986
    @Override
-
 
37987
    public int hashCode() {
-
 
37988
      return 0;
-
 
37989
    }
-
 
37990
 
-
 
37991
    public int compareTo(sendProductNotifications_args other) {
-
 
37992
      if (!getClass().equals(other.getClass())) {
-
 
37993
        return getClass().getName().compareTo(other.getClass().getName());
-
 
37994
      }
-
 
37995
 
-
 
37996
      int lastComparison = 0;
-
 
37997
      sendProductNotifications_args typedOther = (sendProductNotifications_args)other;
-
 
37998
 
-
 
37999
      return 0;
-
 
38000
    }
-
 
38001
 
-
 
38002
    public void read(TProtocol iprot) throws TException {
-
 
38003
      TField field;
-
 
38004
      iprot.readStructBegin();
-
 
38005
      while (true)
-
 
38006
      {
-
 
38007
        field = iprot.readFieldBegin();
-
 
38008
        if (field.type == TType.STOP) { 
-
 
38009
          break;
-
 
38010
        }
-
 
38011
        _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
38012
        if (fieldId == null) {
-
 
38013
          TProtocolUtil.skip(iprot, field.type);
-
 
38014
        } else {
-
 
38015
          switch (fieldId) {
-
 
38016
          }
-
 
38017
          iprot.readFieldEnd();
-
 
38018
        }
-
 
38019
      }
-
 
38020
      iprot.readStructEnd();
-
 
38021
      validate();
-
 
38022
    }
-
 
38023
 
-
 
38024
    public void write(TProtocol oprot) throws TException {
-
 
38025
      validate();
-
 
38026
 
-
 
38027
      oprot.writeStructBegin(STRUCT_DESC);
-
 
38028
      oprot.writeFieldStop();
-
 
38029
      oprot.writeStructEnd();
-
 
38030
    }
-
 
38031
 
-
 
38032
    @Override
-
 
38033
    public String toString() {
-
 
38034
      StringBuilder sb = new StringBuilder("sendProductNotifications_args(");
-
 
38035
      boolean first = true;
-
 
38036
 
-
 
38037
      sb.append(")");
-
 
38038
      return sb.toString();
-
 
38039
    }
-
 
38040
 
-
 
38041
    public void validate() throws TException {
-
 
38042
      // check for required fields
-
 
38043
    }
-
 
38044
 
-
 
38045
  }
-
 
38046
 
-
 
38047
  public static class sendProductNotifications_result implements TBase<sendProductNotifications_result._Fields>, java.io.Serializable, Cloneable, Comparable<sendProductNotifications_result>   {
-
 
38048
    private static final TStruct STRUCT_DESC = new TStruct("sendProductNotifications_result");
-
 
38049
 
-
 
38050
    private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.BOOL, (short)0);
-
 
38051
 
-
 
38052
    private boolean success;
-
 
38053
 
-
 
38054
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
38055
    public enum _Fields implements TFieldIdEnum {
-
 
38056
      SUCCESS((short)0, "success");
-
 
38057
 
-
 
38058
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
38059
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
38060
 
-
 
38061
      static {
-
 
38062
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
38063
          byId.put((int)field._thriftId, field);
-
 
38064
          byName.put(field.getFieldName(), field);
-
 
38065
        }
-
 
38066
      }
-
 
38067
 
-
 
38068
      /**
-
 
38069
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
38070
       */
-
 
38071
      public static _Fields findByThriftId(int fieldId) {
-
 
38072
        return byId.get(fieldId);
-
 
38073
      }
-
 
38074
 
-
 
38075
      /**
-
 
38076
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
38077
       * if it is not found.
-
 
38078
       */
-
 
38079
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
38080
        _Fields fields = findByThriftId(fieldId);
-
 
38081
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
38082
        return fields;
-
 
38083
      }
-
 
38084
 
-
 
38085
      /**
-
 
38086
       * Find the _Fields constant that matches name, or null if its not found.
-
 
38087
       */
-
 
38088
      public static _Fields findByName(String name) {
-
 
38089
        return byName.get(name);
-
 
38090
      }
-
 
38091
 
-
 
38092
      private final short _thriftId;
-
 
38093
      private final String _fieldName;
-
 
38094
 
-
 
38095
      _Fields(short thriftId, String fieldName) {
-
 
38096
        _thriftId = thriftId;
-
 
38097
        _fieldName = fieldName;
-
 
38098
      }
-
 
38099
 
-
 
38100
      public short getThriftFieldId() {
-
 
38101
        return _thriftId;
-
 
38102
      }
-
 
38103
 
-
 
38104
      public String getFieldName() {
-
 
38105
        return _fieldName;
-
 
38106
      }
-
 
38107
    }
-
 
38108
 
-
 
38109
    // isset id assignments
-
 
38110
    private static final int __SUCCESS_ISSET_ID = 0;
-
 
38111
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
38112
 
-
 
38113
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
-
 
38114
      put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, 
-
 
38115
          new FieldValueMetaData(TType.BOOL)));
-
 
38116
    }});
-
 
38117
 
-
 
38118
    static {
-
 
38119
      FieldMetaData.addStructMetaDataMap(sendProductNotifications_result.class, metaDataMap);
-
 
38120
    }
-
 
38121
 
-
 
38122
    public sendProductNotifications_result() {
-
 
38123
    }
-
 
38124
 
-
 
38125
    public sendProductNotifications_result(
-
 
38126
      boolean success)
-
 
38127
    {
-
 
38128
      this();
-
 
38129
      this.success = success;
-
 
38130
      setSuccessIsSet(true);
-
 
38131
    }
-
 
38132
 
-
 
38133
    /**
-
 
38134
     * Performs a deep copy on <i>other</i>.
-
 
38135
     */
-
 
38136
    public sendProductNotifications_result(sendProductNotifications_result other) {
-
 
38137
      __isset_bit_vector.clear();
-
 
38138
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
38139
      this.success = other.success;
-
 
38140
    }
-
 
38141
 
-
 
38142
    public sendProductNotifications_result deepCopy() {
-
 
38143
      return new sendProductNotifications_result(this);
-
 
38144
    }
-
 
38145
 
-
 
38146
    @Deprecated
-
 
38147
    public sendProductNotifications_result clone() {
-
 
38148
      return new sendProductNotifications_result(this);
-
 
38149
    }
-
 
38150
 
-
 
38151
    public boolean isSuccess() {
-
 
38152
      return this.success;
-
 
38153
    }
-
 
38154
 
-
 
38155
    public sendProductNotifications_result setSuccess(boolean success) {
-
 
38156
      this.success = success;
-
 
38157
      setSuccessIsSet(true);
-
 
38158
      return this;
-
 
38159
    }
-
 
38160
 
-
 
38161
    public void unsetSuccess() {
-
 
38162
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
-
 
38163
    }
-
 
38164
 
-
 
38165
    /** Returns true if field success is set (has been asigned a value) and false otherwise */
-
 
38166
    public boolean isSetSuccess() {
-
 
38167
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
-
 
38168
    }
-
 
38169
 
-
 
38170
    public void setSuccessIsSet(boolean value) {
-
 
38171
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
-
 
38172
    }
-
 
38173
 
-
 
38174
    public void setFieldValue(_Fields field, Object value) {
-
 
38175
      switch (field) {
-
 
38176
      case SUCCESS:
-
 
38177
        if (value == null) {
-
 
38178
          unsetSuccess();
-
 
38179
        } else {
-
 
38180
          setSuccess((Boolean)value);
-
 
38181
        }
-
 
38182
        break;
-
 
38183
 
-
 
38184
      }
-
 
38185
    }
-
 
38186
 
-
 
38187
    public void setFieldValue(int fieldID, Object value) {
-
 
38188
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
38189
    }
-
 
38190
 
-
 
38191
    public Object getFieldValue(_Fields field) {
-
 
38192
      switch (field) {
-
 
38193
      case SUCCESS:
-
 
38194
        return new Boolean(isSuccess());
-
 
38195
 
-
 
38196
      }
-
 
38197
      throw new IllegalStateException();
-
 
38198
    }
-
 
38199
 
-
 
38200
    public Object getFieldValue(int fieldId) {
-
 
38201
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
38202
    }
-
 
38203
 
-
 
38204
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
-
 
38205
    public boolean isSet(_Fields field) {
-
 
38206
      switch (field) {
-
 
38207
      case SUCCESS:
-
 
38208
        return isSetSuccess();
-
 
38209
      }
-
 
38210
      throw new IllegalStateException();
-
 
38211
    }
-
 
38212
 
-
 
38213
    public boolean isSet(int fieldID) {
-
 
38214
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
38215
    }
-
 
38216
 
-
 
38217
    @Override
-
 
38218
    public boolean equals(Object that) {
-
 
38219
      if (that == null)
-
 
38220
        return false;
-
 
38221
      if (that instanceof sendProductNotifications_result)
-
 
38222
        return this.equals((sendProductNotifications_result)that);
-
 
38223
      return false;
-
 
38224
    }
-
 
38225
 
-
 
38226
    public boolean equals(sendProductNotifications_result that) {
-
 
38227
      if (that == null)
-
 
38228
        return false;
-
 
38229
 
-
 
38230
      boolean this_present_success = true;
-
 
38231
      boolean that_present_success = true;
-
 
38232
      if (this_present_success || that_present_success) {
-
 
38233
        if (!(this_present_success && that_present_success))
-
 
38234
          return false;
-
 
38235
        if (this.success != that.success)
-
 
38236
          return false;
-
 
38237
      }
-
 
38238
 
-
 
38239
      return true;
-
 
38240
    }
-
 
38241
 
-
 
38242
    @Override
-
 
38243
    public int hashCode() {
-
 
38244
      return 0;
-
 
38245
    }
-
 
38246
 
-
 
38247
    public int compareTo(sendProductNotifications_result other) {
-
 
38248
      if (!getClass().equals(other.getClass())) {
-
 
38249
        return getClass().getName().compareTo(other.getClass().getName());
-
 
38250
      }
-
 
38251
 
-
 
38252
      int lastComparison = 0;
-
 
38253
      sendProductNotifications_result typedOther = (sendProductNotifications_result)other;
-
 
38254
 
-
 
38255
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(isSetSuccess());
-
 
38256
      if (lastComparison != 0) {
-
 
38257
        return lastComparison;
-
 
38258
      }
-
 
38259
      lastComparison = TBaseHelper.compareTo(success, typedOther.success);
-
 
38260
      if (lastComparison != 0) {
-
 
38261
        return lastComparison;
-
 
38262
      }
-
 
38263
      return 0;
-
 
38264
    }
-
 
38265
 
-
 
38266
    public void read(TProtocol iprot) throws TException {
-
 
38267
      TField field;
-
 
38268
      iprot.readStructBegin();
-
 
38269
      while (true)
-
 
38270
      {
-
 
38271
        field = iprot.readFieldBegin();
-
 
38272
        if (field.type == TType.STOP) { 
-
 
38273
          break;
-
 
38274
        }
-
 
38275
        _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
38276
        if (fieldId == null) {
-
 
38277
          TProtocolUtil.skip(iprot, field.type);
-
 
38278
        } else {
-
 
38279
          switch (fieldId) {
-
 
38280
            case SUCCESS:
-
 
38281
              if (field.type == TType.BOOL) {
-
 
38282
                this.success = iprot.readBool();
-
 
38283
                setSuccessIsSet(true);
-
 
38284
              } else { 
-
 
38285
                TProtocolUtil.skip(iprot, field.type);
-
 
38286
              }
-
 
38287
              break;
-
 
38288
          }
-
 
38289
          iprot.readFieldEnd();
-
 
38290
        }
-
 
38291
      }
-
 
38292
      iprot.readStructEnd();
-
 
38293
      validate();
-
 
38294
    }
-
 
38295
 
-
 
38296
    public void write(TProtocol oprot) throws TException {
-
 
38297
      oprot.writeStructBegin(STRUCT_DESC);
-
 
38298
 
-
 
38299
      if (this.isSetSuccess()) {
-
 
38300
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
38301
        oprot.writeBool(this.success);
-
 
38302
        oprot.writeFieldEnd();
-
 
38303
      }
-
 
38304
      oprot.writeFieldStop();
-
 
38305
      oprot.writeStructEnd();
-
 
38306
    }
-
 
38307
 
-
 
38308
    @Override
-
 
38309
    public String toString() {
-
 
38310
      StringBuilder sb = new StringBuilder("sendProductNotifications_result(");
-
 
38311
      boolean first = true;
-
 
38312
 
-
 
38313
      sb.append("success:");
-
 
38314
      sb.append(this.success);
-
 
38315
      first = false;
37791
      sb.append(")");
38316
      sb.append(")");
37792
      return sb.toString();
38317
      return sb.toString();
37793
    }
38318
    }
37794
 
38319
 
37795
    public void validate() throws TException {
38320
    public void validate() throws TException {