B
     ²ô`¬  ã               @   sD   d Z ddlmZmZmZmZ ddlT ddlmZ G dd„ de	ƒZ
dS )aS  Webex Teams Room data model.

Copyright (c) 2016-2020 Cisco and/or its affiliates.

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
é    )Úabsolute_importÚdivisionÚprint_functionÚunicode_literals)Ú*)ÚWebexTeamsDateTimec               @   s|   e Zd ZdZedd„ ƒZedd„ ƒZedd„ ƒZedd	„ ƒZed
d„ ƒZ	edd„ ƒZ
edd„ ƒZedd„ ƒZedd„ ƒZdS )ÚRoomBasicPropertiesMixinzRoom basic properties.c             C   s   | j  d¡S )z!A unique identifier for the room.Úid)Ú
_json_dataÚget)Úself© r   úO/home/dcms/DCMS/lib/python3.7/site-packages/webexteamssdk/models/mixins/room.pyr	   )   s    zRoomBasicPropertiesMixin.idc             C   s   | j  d¡S )z"A user-friendly name for the room.Útitle)r
   r   )r   r   r   r   r   .   s    zRoomBasicPropertiesMixin.titlec             C   s   | j  d¡S )zpThe room type.

        Room Type Enum:
            `direct`: 1:1 room

            `group`: Group room
        Útype)r
   r   )r   r   r   r   r   3   s    	zRoomBasicPropertiesMixin.typec             C   s   | j  d¡S )z.Whether the room is moderated (locked) or not.ÚisLocked)r
   r   )r   r   r   r   r   >   s    z!RoomBasicPropertiesMixin.isLockedc             C   s   | j  d¡S )z7The ID for the team with which this room is associated.ÚteamId)r
   r   )r   r   r   r   r   C   s    zRoomBasicPropertiesMixin.teamIdc             C   s"   | j  d¡}|rt |¡S dS dS )z.The date and time of the room"s last activity.ÚlastActivityN)r
   r   r   Ústrptime)r   Zlast_activityr   r   r   r   H   s    
z%RoomBasicPropertiesMixin.lastActivityc             C   s   | j  d¡S )z+The ID of the person who created this room.Ú	creatorId)r
   r   )r   r   r   r   r   Q   s    z"RoomBasicPropertiesMixin.creatorIdc             C   s"   | j  d¡}|rt |¡S dS dS )z'The date and time the room was created.ÚcreatedN)r
   r   r   r   )r   r   r   r   r   r   V   s    
z RoomBasicPropertiesMixin.createdc             C   s   | j  d¡S )z0The ID of the organization which owns this room.ÚownerId)r
   r   )r   r   r   r   r   _   s    z RoomBasicPropertiesMixin.ownerIdN)Ú__name__Ú
__module__Ú__qualname__Ú__doc__Úpropertyr	   r   r   r   r   r   r   r   r   r   r   r   r   r   &   s   		r   N)r   Ú
__future__r   r   r   r   ÚbuiltinsZwebexteamssdk.utilsr   Úobjectr   r   r   r   r   Ú<module>   s   