AlipayEcoEduCampusJobdeliverModifyModel.py 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190
  1. #!/usr/bin/env python
  2. # -*- coding: utf-8 -*-
  3. import json
  4. from alipay.aop.api.constant.ParamConstants import *
  5. class AlipayEcoEduCampusJobdeliverModifyModel(object):
  6. def __init__(self):
  7. self._alipay_user_id = None
  8. self._comment = None
  9. self._content_var = None
  10. self._interview_location = None
  11. self._interview_time = None
  12. self._latitude = None
  13. self._longitude = None
  14. self._source_code = None
  15. self._source_id = None
  16. self._status = None
  17. self._update_time = None
  18. @property
  19. def alipay_user_id(self):
  20. return self._alipay_user_id
  21. @alipay_user_id.setter
  22. def alipay_user_id(self, value):
  23. self._alipay_user_id = value
  24. @property
  25. def comment(self):
  26. return self._comment
  27. @comment.setter
  28. def comment(self, value):
  29. self._comment = value
  30. @property
  31. def content_var(self):
  32. return self._content_var
  33. @content_var.setter
  34. def content_var(self, value):
  35. self._content_var = value
  36. @property
  37. def interview_location(self):
  38. return self._interview_location
  39. @interview_location.setter
  40. def interview_location(self, value):
  41. self._interview_location = value
  42. @property
  43. def interview_time(self):
  44. return self._interview_time
  45. @interview_time.setter
  46. def interview_time(self, value):
  47. self._interview_time = value
  48. @property
  49. def latitude(self):
  50. return self._latitude
  51. @latitude.setter
  52. def latitude(self, value):
  53. self._latitude = value
  54. @property
  55. def longitude(self):
  56. return self._longitude
  57. @longitude.setter
  58. def longitude(self, value):
  59. self._longitude = value
  60. @property
  61. def source_code(self):
  62. return self._source_code
  63. @source_code.setter
  64. def source_code(self, value):
  65. self._source_code = value
  66. @property
  67. def source_id(self):
  68. return self._source_id
  69. @source_id.setter
  70. def source_id(self, value):
  71. self._source_id = value
  72. @property
  73. def status(self):
  74. return self._status
  75. @status.setter
  76. def status(self, value):
  77. self._status = value
  78. @property
  79. def update_time(self):
  80. return self._update_time
  81. @update_time.setter
  82. def update_time(self, value):
  83. self._update_time = value
  84. def to_alipay_dict(self):
  85. params = dict()
  86. if self.alipay_user_id:
  87. if hasattr(self.alipay_user_id, 'to_alipay_dict'):
  88. params['alipay_user_id'] = self.alipay_user_id.to_alipay_dict()
  89. else:
  90. params['alipay_user_id'] = self.alipay_user_id
  91. if self.comment:
  92. if hasattr(self.comment, 'to_alipay_dict'):
  93. params['comment'] = self.comment.to_alipay_dict()
  94. else:
  95. params['comment'] = self.comment
  96. if self.content_var:
  97. if hasattr(self.content_var, 'to_alipay_dict'):
  98. params['content_var'] = self.content_var.to_alipay_dict()
  99. else:
  100. params['content_var'] = self.content_var
  101. if self.interview_location:
  102. if hasattr(self.interview_location, 'to_alipay_dict'):
  103. params['interview_location'] = self.interview_location.to_alipay_dict()
  104. else:
  105. params['interview_location'] = self.interview_location
  106. if self.interview_time:
  107. if hasattr(self.interview_time, 'to_alipay_dict'):
  108. params['interview_time'] = self.interview_time.to_alipay_dict()
  109. else:
  110. params['interview_time'] = self.interview_time
  111. if self.latitude:
  112. if hasattr(self.latitude, 'to_alipay_dict'):
  113. params['latitude'] = self.latitude.to_alipay_dict()
  114. else:
  115. params['latitude'] = self.latitude
  116. if self.longitude:
  117. if hasattr(self.longitude, 'to_alipay_dict'):
  118. params['longitude'] = self.longitude.to_alipay_dict()
  119. else:
  120. params['longitude'] = self.longitude
  121. if self.source_code:
  122. if hasattr(self.source_code, 'to_alipay_dict'):
  123. params['source_code'] = self.source_code.to_alipay_dict()
  124. else:
  125. params['source_code'] = self.source_code
  126. if self.source_id:
  127. if hasattr(self.source_id, 'to_alipay_dict'):
  128. params['source_id'] = self.source_id.to_alipay_dict()
  129. else:
  130. params['source_id'] = self.source_id
  131. if self.status:
  132. if hasattr(self.status, 'to_alipay_dict'):
  133. params['status'] = self.status.to_alipay_dict()
  134. else:
  135. params['status'] = self.status
  136. if self.update_time:
  137. if hasattr(self.update_time, 'to_alipay_dict'):
  138. params['update_time'] = self.update_time.to_alipay_dict()
  139. else:
  140. params['update_time'] = self.update_time
  141. return params
  142. @staticmethod
  143. def from_alipay_dict(d):
  144. if not d:
  145. return None
  146. o = AlipayEcoEduCampusJobdeliverModifyModel()
  147. if 'alipay_user_id' in d:
  148. o.alipay_user_id = d['alipay_user_id']
  149. if 'comment' in d:
  150. o.comment = d['comment']
  151. if 'content_var' in d:
  152. o.content_var = d['content_var']
  153. if 'interview_location' in d:
  154. o.interview_location = d['interview_location']
  155. if 'interview_time' in d:
  156. o.interview_time = d['interview_time']
  157. if 'latitude' in d:
  158. o.latitude = d['latitude']
  159. if 'longitude' in d:
  160. o.longitude = d['longitude']
  161. if 'source_code' in d:
  162. o.source_code = d['source_code']
  163. if 'source_id' in d:
  164. o.source_id = d['source_id']
  165. if 'status' in d:
  166. o.status = d['status']
  167. if 'update_time' in d:
  168. o.update_time = d['update_time']
  169. return o