B
     ²ô`T
  ã               @   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 )aT  Webex Teams Event 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               @   sd   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dS )ÚEventBasicPropertiesMixinzEvent basic properties.c             C   s   | j  d¡S )z$The unique identifier for the event.Úid)Ú
_json_dataÚget)Úself© r   úP/home/dcms/DCMS/lib/python3.7/site-packages/webexteamssdk/models/mixins/event.pyr	   )   s    zEventBasicPropertiesMixin.idc             C   s   | j  d¡S )zzThe type of resource in the event.

        Event Resource Enum:
            `messages`
            `memberships`
        Úresource)r
   r   )r   r   r   r   r   .   s    z"EventBasicPropertiesMixin.resourcec             C   s   | j  d¡S )zŽThe action which took place in the event.

        Event Type Enum:
            `created`
            `updated`
            `deleted`
        Útype)r
   r   )r   r   r   r   r   8   s    	zEventBasicPropertiesMixin.typec             C   s   | j  d¡S )z(The ID of the application for the event.ÚappId)r
   r   )r   r   r   r   r   C   s    zEventBasicPropertiesMixin.appIdc             C   s   | j  d¡S )z.The ID of the person who performed the action.ÚactorId)r
   r   )r   r   r   r   r   H   s    z!EventBasicPropertiesMixin.actorIdc             C   s   | j  d¡S )z)The ID of the organization for the event.ÚorgId)r
   r   )r   r   r   r   r   M   s    zEventBasicPropertiesMixin.orgIdc             C   s"   | j  d¡}|rt |¡S dS dS )zThe date and time of the event.ÚcreatedN)r
   r   r   Ústrptime)r   r   r   r   r   r   R   s    
z!EventBasicPropertiesMixin.createdN)Ú__name__Ú
__module__Ú__qualname__Ú__doc__Úpropertyr	   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   