241 lines
6.4 KiB
Python
241 lines
6.4 KiB
Python
# coding: utf-8
|
|
|
|
"""
|
|
api/v1/activity_service.proto
|
|
|
|
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
|
|
|
|
OpenAPI spec version: version not set
|
|
|
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
"""
|
|
|
|
import pprint
|
|
import re # noqa: F401
|
|
|
|
import six
|
|
|
|
class V1InboxNameBody(object):
|
|
"""NOTE: This class is auto generated by the swagger code generator program.
|
|
|
|
Do not edit the class manually.
|
|
"""
|
|
"""
|
|
Attributes:
|
|
swagger_types (dict): The key is attribute name
|
|
and the value is attribute type.
|
|
attribute_map (dict): The key is attribute name
|
|
and the value is json key in definition.
|
|
"""
|
|
swagger_types = {
|
|
'sender': 'str',
|
|
'receiver': 'str',
|
|
'status': 'V1InboxStatus',
|
|
'create_time': 'datetime',
|
|
'type': 'V1InboxType',
|
|
'activity_id': 'int'
|
|
}
|
|
|
|
attribute_map = {
|
|
'sender': 'sender',
|
|
'receiver': 'receiver',
|
|
'status': 'status',
|
|
'create_time': 'createTime',
|
|
'type': 'type',
|
|
'activity_id': 'activityId'
|
|
}
|
|
|
|
def __init__(self, sender=None, receiver=None, status=None, create_time=None, type=None, activity_id=None): # noqa: E501
|
|
"""V1InboxNameBody - a model defined in Swagger""" # noqa: E501
|
|
self._sender = None
|
|
self._receiver = None
|
|
self._status = None
|
|
self._create_time = None
|
|
self._type = None
|
|
self._activity_id = None
|
|
self.discriminator = None
|
|
if sender is not None:
|
|
self.sender = sender
|
|
if receiver is not None:
|
|
self.receiver = receiver
|
|
if status is not None:
|
|
self.status = status
|
|
if create_time is not None:
|
|
self.create_time = create_time
|
|
if type is not None:
|
|
self.type = type
|
|
if activity_id is not None:
|
|
self.activity_id = activity_id
|
|
|
|
@property
|
|
def sender(self):
|
|
"""Gets the sender of this V1InboxNameBody. # noqa: E501
|
|
|
|
|
|
:return: The sender of this V1InboxNameBody. # noqa: E501
|
|
:rtype: str
|
|
"""
|
|
return self._sender
|
|
|
|
@sender.setter
|
|
def sender(self, sender):
|
|
"""Sets the sender of this V1InboxNameBody.
|
|
|
|
|
|
:param sender: The sender of this V1InboxNameBody. # noqa: E501
|
|
:type: str
|
|
"""
|
|
|
|
self._sender = sender
|
|
|
|
@property
|
|
def receiver(self):
|
|
"""Gets the receiver of this V1InboxNameBody. # noqa: E501
|
|
|
|
|
|
:return: The receiver of this V1InboxNameBody. # noqa: E501
|
|
:rtype: str
|
|
"""
|
|
return self._receiver
|
|
|
|
@receiver.setter
|
|
def receiver(self, receiver):
|
|
"""Sets the receiver of this V1InboxNameBody.
|
|
|
|
|
|
:param receiver: The receiver of this V1InboxNameBody. # noqa: E501
|
|
:type: str
|
|
"""
|
|
|
|
self._receiver = receiver
|
|
|
|
@property
|
|
def status(self):
|
|
"""Gets the status of this V1InboxNameBody. # noqa: E501
|
|
|
|
|
|
:return: The status of this V1InboxNameBody. # noqa: E501
|
|
:rtype: V1InboxStatus
|
|
"""
|
|
return self._status
|
|
|
|
@status.setter
|
|
def status(self, status):
|
|
"""Sets the status of this V1InboxNameBody.
|
|
|
|
|
|
:param status: The status of this V1InboxNameBody. # noqa: E501
|
|
:type: V1InboxStatus
|
|
"""
|
|
|
|
self._status = status
|
|
|
|
@property
|
|
def create_time(self):
|
|
"""Gets the create_time of this V1InboxNameBody. # noqa: E501
|
|
|
|
|
|
:return: The create_time of this V1InboxNameBody. # noqa: E501
|
|
:rtype: datetime
|
|
"""
|
|
return self._create_time
|
|
|
|
@create_time.setter
|
|
def create_time(self, create_time):
|
|
"""Sets the create_time of this V1InboxNameBody.
|
|
|
|
|
|
:param create_time: The create_time of this V1InboxNameBody. # noqa: E501
|
|
:type: datetime
|
|
"""
|
|
|
|
self._create_time = create_time
|
|
|
|
@property
|
|
def type(self):
|
|
"""Gets the type of this V1InboxNameBody. # noqa: E501
|
|
|
|
|
|
:return: The type of this V1InboxNameBody. # noqa: E501
|
|
:rtype: V1InboxType
|
|
"""
|
|
return self._type
|
|
|
|
@type.setter
|
|
def type(self, type):
|
|
"""Sets the type of this V1InboxNameBody.
|
|
|
|
|
|
:param type: The type of this V1InboxNameBody. # noqa: E501
|
|
:type: V1InboxType
|
|
"""
|
|
|
|
self._type = type
|
|
|
|
@property
|
|
def activity_id(self):
|
|
"""Gets the activity_id of this V1InboxNameBody. # noqa: E501
|
|
|
|
|
|
:return: The activity_id of this V1InboxNameBody. # noqa: E501
|
|
:rtype: int
|
|
"""
|
|
return self._activity_id
|
|
|
|
@activity_id.setter
|
|
def activity_id(self, activity_id):
|
|
"""Sets the activity_id of this V1InboxNameBody.
|
|
|
|
|
|
:param activity_id: The activity_id of this V1InboxNameBody. # noqa: E501
|
|
:type: int
|
|
"""
|
|
|
|
self._activity_id = activity_id
|
|
|
|
def to_dict(self):
|
|
"""Returns the model properties as a dict"""
|
|
result = {}
|
|
|
|
for attr, _ in six.iteritems(self.swagger_types):
|
|
value = getattr(self, attr)
|
|
if isinstance(value, list):
|
|
result[attr] = list(map(
|
|
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
value
|
|
))
|
|
elif hasattr(value, "to_dict"):
|
|
result[attr] = value.to_dict()
|
|
elif isinstance(value, dict):
|
|
result[attr] = dict(map(
|
|
lambda item: (item[0], item[1].to_dict())
|
|
if hasattr(item[1], "to_dict") else item,
|
|
value.items()
|
|
))
|
|
else:
|
|
result[attr] = value
|
|
if issubclass(V1InboxNameBody, dict):
|
|
for key, value in self.items():
|
|
result[key] = value
|
|
|
|
return result
|
|
|
|
def to_str(self):
|
|
"""Returns the string representation of the model"""
|
|
return pprint.pformat(self.to_dict())
|
|
|
|
def __repr__(self):
|
|
"""For `print` and `pprint`"""
|
|
return self.to_str()
|
|
|
|
def __eq__(self, other):
|
|
"""Returns true if both objects are equal"""
|
|
if not isinstance(other, V1InboxNameBody):
|
|
return False
|
|
|
|
return self.__dict__ == other.__dict__
|
|
|
|
def __ne__(self, other):
|
|
"""Returns true if both objects are not equal"""
|
|
return not self == other
|