Announcement_Service/gen/openapi_server/models/user.py

62 lines
1.5 KiB
Python

from datetime import date, datetime # noqa: F401
from typing import List, Dict # noqa: F401
from openapi_server.models.base_model import Model
from openapi_server import util
class User(Model):
"""NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Do not edit the class manually.
"""
def __init__(self, last_seen_date=None): # noqa: E501
"""User - a model defined in OpenAPI
:param last_seen_date: The last_seen_date of this User. # noqa: E501
:type last_seen_date: date
"""
self.openapi_types = {
'last_seen_date': date
}
self.attribute_map = {
'last_seen_date': 'lastSeenDate'
}
self._last_seen_date = last_seen_date
@classmethod
def from_dict(cls, dikt) -> 'User':
"""Returns the dict as a model
:param dikt: A dict.
:type: dict
:return: The user of this User. # noqa: E501
:rtype: User
"""
return util.deserialize_model(dikt, cls)
@property
def last_seen_date(self) -> date:
"""Gets the last_seen_date of this User.
:return: The last_seen_date of this User.
:rtype: date
"""
return self._last_seen_date
@last_seen_date.setter
def last_seen_date(self, last_seen_date: date):
"""Sets the last_seen_date of this User.
:param last_seen_date: The last_seen_date of this User.
:type last_seen_date: date
"""
self._last_seen_date = last_seen_date