o
    eX*                     @   s   d Z ddlmZ ddlmZ ddlmZ ddlmZ ddlm	Z	 ddl
mZ G dd	 d	e	ZG d
d deZG dd deZG dd deZdS )za
This code was generated by
\ / _    _  _|   _  _
 | (_)\/(_)(_|\/| |(/_  v1.0.0
      /       /
    )deserialize)values)InstanceContext)InstanceResource)ListResource)Pagec                       s8   e Zd ZdZ fddZdd Zdd Zdd	 Z  ZS )
CurrentCallList PLEASE NOTE that this class contains preview products that are subject
    to change. Use them with caution. If you currently do not have developer
    preview access, please contact help@twilio.com. c                    s   t t| | i | _dS )a  
        Initialize the CurrentCallList

        :param Version version: Version that contains the resource

        :returns: twilio.rest.preview.trusted_comms.current_call.CurrentCallList
        :rtype: twilio.rest.preview.trusted_comms.current_call.CurrentCallList
        N)superr   __init__	_solutionselfversion	__class__ a/var/www/html/venv/lib/python3.10/site-packages/twilio/rest/preview/trusted_comms/current_call.pyr      s   	
zCurrentCallList.__init__c                 C   
   t | jS z
        Constructs a CurrentCallContext

        :returns: twilio.rest.preview.trusted_comms.current_call.CurrentCallContext
        :rtype: twilio.rest.preview.trusted_comms.current_call.CurrentCallContext
        CurrentCallContext_versionr   r   r   r   get$      
zCurrentCallList.getc                 C   r   r   r   r   r   r   r   __call__-   r   zCurrentCallList.__call__c                 C      dS )z
        Provide a friendly representation

        :returns: Machine friendly representation
        :rtype: str
        z-<Twilio.Preview.TrustedComms.CurrentCallList>r   r   r   r   r   __repr__6      zCurrentCallList.__repr__)	__name__
__module____qualname____doc__r   r   r   r   __classcell__r   r   r   r   r      s    		r   c                       s0   e Zd ZdZ fddZdd Zdd Z  ZS )CurrentCallPager	   c                    s   t t| || || _dS )aM  
        Initialize the CurrentCallPage

        :param Version version: Version that contains the resource
        :param Response response: Response from the API

        :returns: twilio.rest.preview.trusted_comms.current_call.CurrentCallPage
        :rtype: twilio.rest.preview.trusted_comms.current_call.CurrentCallPage
        N)r
   r&   r   r   )r   r   responsesolutionr   r   r   r   E   s   

zCurrentCallPage.__init__c                 C   s   t | j|S )a  
        Build an instance of CurrentCallInstance

        :param dict payload: Payload response from the API

        :returns: twilio.rest.preview.trusted_comms.current_call.CurrentCallInstance
        :rtype: twilio.rest.preview.trusted_comms.current_call.CurrentCallInstance
        )CurrentCallInstancer   )r   payloadr   r   r   get_instanceT   s   	zCurrentCallPage.get_instancec                 C   r   )r   z-<Twilio.Preview.TrustedComms.CurrentCallPage>r   r   r   r   r   r   _   r    zCurrentCallPage.__repr__)r!   r"   r#   r$   r   r+   r   r%   r   r   r   r   r&   @   s
    r&   c                       s:   e Zd ZdZ fddZejejfddZdd Z  Z	S )r   r	   c                    s.   t t| | i | _djdi | j| _dS )a  
        Initialize the CurrentCallContext

        :param Version version: Version that contains the resource

        :returns: twilio.rest.preview.trusted_comms.current_call.CurrentCallContext
        :rtype: twilio.rest.preview.trusted_comms.current_call.CurrentCallContext
        z/CurrentCallNr   )r
   r   r   r   format_urir   r   r   r   r   n   s   	zCurrentCallContext.__init__c                 C   s0   t ||d}| jjd| j|d}t| j|S )f  
        Fetch the CurrentCallInstance

        :param unicode x_xcnam_sensitive_phone_number_from: The originating Phone Number
        :param unicode x_xcnam_sensitive_phone_number_to: The terminating Phone Number

        :returns: The fetched CurrentCallInstance
        :rtype: twilio.rest.preview.trusted_comms.current_call.CurrentCallInstance
        )z#X-Xcnam-Sensitive-Phone-Number-Fromz!X-Xcnam-Sensitive-Phone-Number-ToGET)methoduriheaders)r   ofr   fetchr-   r)   )r   #x_xcnam_sensitive_phone_number_from!x_xcnam_sensitive_phone_number_tor2   r*   r   r   r   r4   }   s   zCurrentCallContext.fetchc                 C   $   d dd | j D }d|S )r    c                 s        | ]\}}d  ||V  qdS z{}={}Nr,   .0kvr   r   r   	<genexpr>       z.CurrentCallContext.__repr__.<locals>.<genexpr>z3<Twilio.Preview.TrustedComms.CurrentCallContext {}>joinr   itemsr,   r   contextr   r   r   r         
zCurrentCallContext.__repr__)
r!   r"   r#   r$   r   r   unsetr4   r   r%   r   r   r   r   r   i   s    
r   c                       s   e Zd ZdZ f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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jejfd"d#Zd$d% Z  ZS )&r)   r	   c                    s   t t| | |d|dt|d|d|d|d|d|d|d	|d
|d|d|d|dd| _d| _i | _dS )z
        Initialize the CurrentCallInstance

        :returns: twilio.rest.preview.trusted_comms.current_call.CurrentCallInstance
        :rtype: twilio.rest.preview.trusted_comms.current_call.CurrentCallInstance
        bg_colorcaller
created_at
font_colorfromlogomanagerreason
shield_imgsidstatustourluse_case)rI   rJ   rK   rL   from_rN   rO   rP   rQ   rR   rS   rT   rU   rV   N)	r
   r)   r   r   r   iso8601_datetime_properties_contextr   )r   r   r*   r   r   r   r      s$   
zCurrentCallInstance.__init__c                 C   s   | j du rt| j| _ | j S )aD  
        Generate an instance context for the instance, the context is capable of
        performing various actions.  All instance actions are proxied to the context

        :returns: CurrentCallContext for this CurrentCallInstance
        :rtype: twilio.rest.preview.trusted_comms.current_call.CurrentCallContext
        N)rZ   r   r   r   r   r   r   _proxy   s   
	zCurrentCallInstance._proxyc                 C   
   | j d S )z^
        :returns: Background color of the current phone call
        :rtype: unicode
        rI   rY   r   r   r   r   rI         
zCurrentCallInstance.bg_colorc                 C   r\   )zY
        :returns: Caller name of the current phone call
        :rtype: unicode
        rJ   r]   r   r   r   r   rJ      r^   zCurrentCallInstance.callerc                 C   r\   )za
        :returns: The date this current phone call was created
        :rtype: datetime
        rK   r]   r   r   r   r   rK      r^   zCurrentCallInstance.created_atc                 C   r\   )zX
        :returns: Font color of the current phone call
        :rtype: unicode
        rL   r]   r   r   r   r   rL      r^   zCurrentCallInstance.font_colorc                 C   r\   )zP
        :returns: The originating phone number
        :rtype: unicode
        rW   r]   r   r   r   r   rW      r^   zCurrentCallInstance.from_c                 C   r\   )zJ
        :returns: Logo URL of the caller
        :rtype: unicode
        rN   r]   r   r   r   r   rN      r^   zCurrentCallInstance.logoc                 C   r\   )zT
        :returns: The name of the CPS organization
        :rtype: unicode
        rO   r]   r   r   r   r   rO      r^   zCurrentCallInstance.managerc                 C   r\   )zc
        :returns: The business reason for this current phone call
        :rtype: unicode
        rP   r]   r   r   r   r   rP     r^   zCurrentCallInstance.reasonc                 C   r\   )z
        :returns: Shield image URL that serves as authenticity proof of the current phone call
        :rtype: unicode
        rQ   r]   r   r   r   r   rQ     r^   zCurrentCallInstance.shield_imgc                 C   r\   )zv
        :returns: A string that uniquely identifies this current branded phone call.
        :rtype: unicode
        rR   r]   r   r   r   r   rR     r^   zCurrentCallInstance.sidc                 C   r\   )zX
        :returns: The status of the current phone call
        :rtype: unicode
        rS   r]   r   r   r   r   rS     r^   zCurrentCallInstance.statusc                 C   r\   )zP
        :returns: The terminating phone number
        :rtype: unicode
        rT   r]   r   r   r   r   rT   %  r^   zCurrentCallInstance.toc                 C   r\   )zM
        :returns: The URL of this resource.
        :rtype: unicode
        rU   r]   r   r   r   r   rU   -  r^   zCurrentCallInstance.urlc                 C   r\   )z[
        :returns: The use case for the current phone call
        :rtype: unicode
        rV   r]   r   r   r   r   rV   5  r^   zCurrentCallInstance.use_casec                 C   s   | j j||dS )r.   )r5   r6   )r[   r4   )r   r5   r6   r   r   r   r4   =  s   zCurrentCallInstance.fetchc                 C   r7   )r   r8   c                 s   r9   r:   r;   r<   r   r   r   r@   T  rA   z/CurrentCallInstance.__repr__.<locals>.<genexpr>z4<Twilio.Preview.TrustedComms.CurrentCallInstance {}>rB   rE   r   r   r   r   M  rG   zCurrentCallInstance.__repr__)r!   r"   r#   r$   r   propertyr[   rI   rJ   rK   rL   rW   rN   rO   rP   rQ   rR   rS   rT   rU   rV   r   rH   r4   r   r%   r   r   r   r   r)      sJ    















r)   N)r$   twilio.baser   r   twilio.base.instance_contextr   twilio.base.instance_resourcer   twilio.base.list_resourcer   twilio.base.pager   r   r&   r   r)   r   r   r   r   <module>   s   /)3