o
    lqiÀ  ã                   @   s„   d 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G dd„ deƒZG dd„ deƒZG dd„ deƒZ	dS )z3
This module defines some Response classes for BTS
é    )ÚBceResponsec                       ó    e Zd ZdZ‡ fdd„Z‡  ZS )ÚCreateSignatureResponsez#
    Create Signature Response
    c                    ó2   t t| ƒ ¡  t|jƒ| _t|jƒ| _|j| _d S ©N)Úsuperr   Ú__init__ÚstrÚsignature_idÚstatusÚmetadata©ÚselfZbce_response©Ú	__class__© úb/home/app/PaddleOCR-VL/.venv_paddleocr/lib/python3.10/site-packages/baidubce/services/sms/model.pyr      ó   z CreateSignatureResponse.__init__©Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   Ú__classcell__r   r   r   r   r      ó    r   c                       r   )ÚGetSignatureResponsez 
    Get Signature Response
    c                    sn   t t| ƒ ¡  t|jƒ| _t|jƒ| _t|jƒ| _t|jƒ| _t|jƒ| _t|j	ƒ| _	t|j
ƒ| _
|j| _d S r   )r   r   r   r	   r
   Úuser_idÚcontentÚcountry_typeÚcontent_typeÚreviewr   r   r   r   r   r   r   (   s   zGetSignatureResponse.__init__r   r   r   r   r   r   #   r   r   c                       r   )ÚCreateTemplateResponsez"
    Create Template Response
    c                    r   r   )r   r!   r   r	   Útemplate_idr   r   r   r   r   r   r   9   r   zCreateTemplateResponse.__init__r   r   r   r   r   r!   4   r   r!   c                       r   )ÚGetTemplateResponsez
    Get Template Response
    c                    s†   t t| ƒ ¡  t|jƒ| _t|jƒ| _t|jƒ| _t|jƒ| _t|jƒ| _t|j	ƒ| _	t|j
ƒ| _
t|jƒ| _t|jƒ| _|j| _d S r   )r   r#   r   r	   r"   r   Únamer   Zsms_typeÚdescriptionr    r   r   r   r   r   r   r   r   E   s   zGetTemplateResponse.__init__r   r   r   r   r   r#   @   r   r#   c                       r   )ÚQueryQuotaResponsez
    Query Quota Response
    c                    sz   t t| ƒ ¡  |j| _|j| _|j| _|j| _|j| _|j| _|j	| _	|j
| _
|j| _|j| _|j| _|j| _|j| _d S r   )r   r&   r   Zquota_per_dayZquota_per_monthZquota_remain_todayZquota_remain_this_monthZapply_quota_per_dayZapply_quota_per_monthZapply_check_statusZcheck_replyZ(rate_limit_per_mobile_per_sign_by_minuteZ&rate_limit_per_mobile_per_sign_by_hourZ&reate_limit_per_mobile_per_sign_by_dayZ%rate_limit_per_mobile_per_sign_by_dayZrate_limit_white_listr   r   r   r   r   r   X   s   zQueryQuotaResponse.__init__r   r   r   r   r   r&   S   r   r&   c                       r   )ÚGetMobileBlackResponsez#
    Get Mobile Black Response
    c                    s:   t t| ƒ ¡  |j| _|j| _|j| _|j| _|j| _d S r   )	r   r'   r   Ztotal_countZpage_noZ	page_sizeZ
blacklistsZblack_listsr   r   r   r   r   r   n   s   zGetMobileBlackResponse.__init__r   r   r   r   r   r'   i   r   r'   c                       s(   e Zd ZdZ‡ fdd„Zdd„ Z‡  ZS )ÚListStatisticsResponsez5
    Get Statistics Information Response as List
    c                    s&   t t| ƒ ¡  tt| j|jƒƒ| _d S r   )r   r(   r   ÚlistÚmapÚ%_ListStatisticsResponse__result_transZstatistics_resultsr   r   r   r   r   |   s   zListStatisticsResponse.__init__c                 C   s¾   i d|j “d|j“d|j“d|j“d|j“d|j“d|j“d|j“d	|j“d
|j	“d|j
“d|j“d|j“d|j“d|j“d|j“d|j“|j|j|j|j|j|j|j|j|j|jdœ
¥}|S )NÚdatetimeÚcountry_alpha2_codeÚsubmit_countÚsubmit_long_countÚresponse_success_countÚresponse_success_proportionÚdeliver_success_countÚdeliver_success_long_countÚdeliver_success_proportionÚdeliver_failure_countÚdeliver_failure_proportionÚreceipt_proportionÚunknown_countÚunknown_proportionÚresponse_timeout_countÚunknown_error_countÚnot_exist_count)
Úsignature_or_template_countÚabnormal_countÚoverclocking_countÚother_error_countÚblacklist_countÚroute_error_countÚissue_failure_countÚparameter_error_countÚillegal_word_countÚanomaly_count)r,   r-   r.   r/   r0   r1   r2   r3   r4   r5   r6   r7   r8   r9   r:   r;   r<   r=   r>   r?   r@   rA   rB   rC   rD   rE   rF   )r   Zstatistics_resultÚresr   r   r   Z__result_trans€   s^   ÿþýüûúùø	÷
öõôóòñðïåz%ListStatisticsResponse.__result_trans)r   r   r   r   r   r+   r   r   r   r   r   r(   w   s    r(   N)
r   Zbaidubce.bce_responser   r   r   r!   r#   r&   r'   r(   r   r   r   r   Ú<module>   s   