Subversion Repositories SmartDukaan

Rev

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

Rev 6922 Rev 7007
Line 636... Line 636...
636
     - startDate
636
     - startDate
637
     - endDate
637
     - endDate
638
    """
638
    """
639
    pass
639
    pass
640
 
640
 
-
 
641
  def markUserAsFBUser(self, id):
-
 
642
    """
-
 
643
    Parameters:
-
 
644
     - id
-
 
645
    """
-
 
646
    pass
-
 
647
 
641
 
648
 
642
class Client(shop2020.thriftpy.generic.GenericService.Client, Iface):
649
class Client(shop2020.thriftpy.generic.GenericService.Client, Iface):
643
  """
650
  """
644
  service
651
  service
645
  """
652
  """
Line 3057... Line 3064...
3057
    self._iprot.readMessageEnd()
3064
    self._iprot.readMessageEnd()
3058
    if result.success is not None:
3065
    if result.success is not None:
3059
      return result.success
3066
      return result.success
3060
    raise TApplicationException(TApplicationException.MISSING_RESULT, "isProductAddedToCart failed: unknown result");
3067
    raise TApplicationException(TApplicationException.MISSING_RESULT, "isProductAddedToCart failed: unknown result");
3061
 
3068
 
-
 
3069
  def markUserAsFBUser(self, id):
-
 
3070
    """
-
 
3071
    Parameters:
-
 
3072
     - id
-
 
3073
    """
-
 
3074
    self.send_markUserAsFBUser(id)
-
 
3075
    self.recv_markUserAsFBUser()
-
 
3076
 
-
 
3077
  def send_markUserAsFBUser(self, id):
-
 
3078
    self._oprot.writeMessageBegin('markUserAsFBUser', TMessageType.CALL, self._seqid)
-
 
3079
    args = markUserAsFBUser_args()
-
 
3080
    args.id = id
-
 
3081
    args.write(self._oprot)
-
 
3082
    self._oprot.writeMessageEnd()
-
 
3083
    self._oprot.trans.flush()
-
 
3084
 
-
 
3085
  def recv_markUserAsFBUser(self, ):
-
 
3086
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
-
 
3087
    if mtype == TMessageType.EXCEPTION:
-
 
3088
      x = TApplicationException()
-
 
3089
      x.read(self._iprot)
-
 
3090
      self._iprot.readMessageEnd()
-
 
3091
      raise x
-
 
3092
    result = markUserAsFBUser_result()
-
 
3093
    result.read(self._iprot)
-
 
3094
    self._iprot.readMessageEnd()
-
 
3095
    return
-
 
3096
 
3062
 
3097
 
3063
class Processor(shop2020.thriftpy.generic.GenericService.Processor, Iface, TProcessor):
3098
class Processor(shop2020.thriftpy.generic.GenericService.Processor, Iface, TProcessor):
3064
  def __init__(self, handler):
3099
  def __init__(self, handler):
3065
    shop2020.thriftpy.generic.GenericService.Processor.__init__(self, handler)
3100
    shop2020.thriftpy.generic.GenericService.Processor.__init__(self, handler)
3066
    self._processMap["createAnonymousUser"] = Processor.process_createAnonymousUser
3101
    self._processMap["createAnonymousUser"] = Processor.process_createAnonymousUser
Line 3133... Line 3168...
3133
    self._processMap["insureItem"] = Processor.process_insureItem
3168
    self._processMap["insureItem"] = Processor.process_insureItem
3134
    self._processMap["cancelInsurance"] = Processor.process_cancelInsurance
3169
    self._processMap["cancelInsurance"] = Processor.process_cancelInsurance
3135
    self._processMap["storeInsuranceSpecificDetails"] = Processor.process_storeInsuranceSpecificDetails
3170
    self._processMap["storeInsuranceSpecificDetails"] = Processor.process_storeInsuranceSpecificDetails
3136
    self._processMap["isInsuranceDetailPresent"] = Processor.process_isInsuranceDetailPresent
3171
    self._processMap["isInsuranceDetailPresent"] = Processor.process_isInsuranceDetailPresent
3137
    self._processMap["isProductAddedToCart"] = Processor.process_isProductAddedToCart
3172
    self._processMap["isProductAddedToCart"] = Processor.process_isProductAddedToCart
-
 
3173
    self._processMap["markUserAsFBUser"] = Processor.process_markUserAsFBUser
3138
 
3174
 
3139
  def process(self, iprot, oprot):
3175
  def process(self, iprot, oprot):
3140
    (name, type, seqid) = iprot.readMessageBegin()
3176
    (name, type, seqid) = iprot.readMessageBegin()
3141
    if name not in self._processMap:
3177
    if name not in self._processMap:
3142
      iprot.skip(TType.STRUCT)
3178
      iprot.skip(TType.STRUCT)
Line 4111... Line 4147...
4111
    oprot.writeMessageBegin("isProductAddedToCart", TMessageType.REPLY, seqid)
4147
    oprot.writeMessageBegin("isProductAddedToCart", TMessageType.REPLY, seqid)
4112
    result.write(oprot)
4148
    result.write(oprot)
4113
    oprot.writeMessageEnd()
4149
    oprot.writeMessageEnd()
4114
    oprot.trans.flush()
4150
    oprot.trans.flush()
4115
 
4151
 
-
 
4152
  def process_markUserAsFBUser(self, seqid, iprot, oprot):
-
 
4153
    args = markUserAsFBUser_args()
-
 
4154
    args.read(iprot)
-
 
4155
    iprot.readMessageEnd()
-
 
4156
    result = markUserAsFBUser_result()
-
 
4157
    self._handler.markUserAsFBUser(args.id)
-
 
4158
    oprot.writeMessageBegin("markUserAsFBUser", TMessageType.REPLY, seqid)
-
 
4159
    result.write(oprot)
-
 
4160
    oprot.writeMessageEnd()
-
 
4161
    oprot.trans.flush()
-
 
4162
 
4116
 
4163
 
4117
# HELPER FUNCTIONS AND STRUCTURES
4164
# HELPER FUNCTIONS AND STRUCTURES
4118
 
4165
 
4119
class createAnonymousUser_args:
4166
class createAnonymousUser_args:
4120
  """
4167
  """
Line 14116... Line 14163...
14116
    oprot.writeFieldStop()
14163
    oprot.writeFieldStop()
14117
    oprot.writeStructEnd()
14164
    oprot.writeStructEnd()
14118
 
14165
 
14119
  def validate(self):
14166
  def validate(self):
14120
    return
14167
    return
-
 
14168
 
-
 
14169
 
-
 
14170
  def __repr__(self):
-
 
14171
    L = ['%s=%r' % (key, value)
-
 
14172
      for key, value in self.__dict__.iteritems()]
-
 
14173
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
14174
 
-
 
14175
  def __eq__(self, other):
-
 
14176
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
14177
 
-
 
14178
  def __ne__(self, other):
-
 
14179
    return not (self == other)
-
 
14180
 
-
 
14181
class markUserAsFBUser_args:
-
 
14182
  """
-
 
14183
  Attributes:
-
 
14184
   - id
-
 
14185
  """
-
 
14186
 
-
 
14187
  thrift_spec = (
-
 
14188
    None, # 0
-
 
14189
    (1, TType.I64, 'id', None, None, ), # 1
-
 
14190
  )
-
 
14191
 
-
 
14192
  def __init__(self, id=None,):
-
 
14193
    self.id = id
-
 
14194
 
-
 
14195
  def read(self, iprot):
-
 
14196
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
14197
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
14198
      return
-
 
14199
    iprot.readStructBegin()
-
 
14200
    while True:
-
 
14201
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
14202
      if ftype == TType.STOP:
-
 
14203
        break
-
 
14204
      if fid == 1:
-
 
14205
        if ftype == TType.I64:
-
 
14206
          self.id = iprot.readI64();
-
 
14207
        else:
-
 
14208
          iprot.skip(ftype)
-
 
14209
      else:
-
 
14210
        iprot.skip(ftype)
-
 
14211
      iprot.readFieldEnd()
-
 
14212
    iprot.readStructEnd()
-
 
14213
 
-
 
14214
  def write(self, oprot):
-
 
14215
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
14216
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
14217
      return
-
 
14218
    oprot.writeStructBegin('markUserAsFBUser_args')
-
 
14219
    if self.id is not None:
-
 
14220
      oprot.writeFieldBegin('id', TType.I64, 1)
-
 
14221
      oprot.writeI64(self.id)
-
 
14222
      oprot.writeFieldEnd()
-
 
14223
    oprot.writeFieldStop()
-
 
14224
    oprot.writeStructEnd()
-
 
14225
 
-
 
14226
  def validate(self):
-
 
14227
    return
-
 
14228
 
-
 
14229
 
-
 
14230
  def __repr__(self):
-
 
14231
    L = ['%s=%r' % (key, value)
-
 
14232
      for key, value in self.__dict__.iteritems()]
-
 
14233
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
14234
 
-
 
14235
  def __eq__(self, other):
-
 
14236
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
14237
 
-
 
14238
  def __ne__(self, other):
-
 
14239
    return not (self == other)
-
 
14240
 
-
 
14241
class markUserAsFBUser_result:
-
 
14242
 
-
 
14243
  thrift_spec = (
-
 
14244
  )
-
 
14245
 
-
 
14246
  def read(self, iprot):
-
 
14247
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
14248
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
14249
      return
-
 
14250
    iprot.readStructBegin()
-
 
14251
    while True:
-
 
14252
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
14253
      if ftype == TType.STOP:
-
 
14254
        break
-
 
14255
      else:
-
 
14256
        iprot.skip(ftype)
-
 
14257
      iprot.readFieldEnd()
-
 
14258
    iprot.readStructEnd()
-
 
14259
 
-
 
14260
  def write(self, oprot):
-
 
14261
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
14262
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
14263
      return
-
 
14264
    oprot.writeStructBegin('markUserAsFBUser_result')
-
 
14265
    oprot.writeFieldStop()
-
 
14266
    oprot.writeStructEnd()
-
 
14267
 
-
 
14268
  def validate(self):
-
 
14269
    return
14121
 
14270
 
14122
 
14271
 
14123
  def __repr__(self):
14272
  def __repr__(self):
14124
    L = ['%s=%r' % (key, value)
14273
    L = ['%s=%r' % (key, value)
14125
      for key, value in self.__dict__.iteritems()]
14274
      for key, value in self.__dict__.iteritems()]