o ckF[» ã@s(dZGdd„deƒZGdd„deƒZdS)z0 A set of results returned by SendMessageBatch. c@s eZdZdZdd„Zdd„ZdS)Ú ResultEntrya The result (successful or unsuccessful) of a single message within a send_message_batch request. In the case of a successful result, this dict-like object will contain the following items: :ivar id: A string containing the user-supplied ID of the message. :ivar message_id: A string containing the SQS ID of the new message. :ivar message_md5: A string containing the MD5 hash of the message body. In the case of an error, this object will contain the following items: :ivar id: A string containing the user-supplied ID of the message. :ivar sender_fault: A boolean value. :ivar error_code: A string containing a short description of the error. :ivar error_message: A string containing a description of the error. cCsdS©N©)ÚselfÚnameÚattrsÚ connectionrrú7/usr/lib/python3/dist-packages/boto/sqs/batchresults.pyÚ startElement0szResultEntry.startElementcCs||dkr ||d<dS|dkr||d<dS|dkr||d<dS|dkr(||d<dS|d kr2||d <dS|d kr<||d <dSdS) NÚIdÚidÚ MessageIdÚ message_idÚMD5OfMessageBodyÚ message_md5Ú SenderFaultÚ sender_faultÚCodeÚ error_codeÚMessageÚ error_messager©rrÚvaluerrrrÚ endElement3s      ÿzResultEntry.endElementN)Ú__name__Ú __module__Ú __qualname__Ú__doc__r rrrrrrs rc@s(eZdZdZdd„Zdd„Zdd„ZdS) Ú BatchResultsaC A container for the results of a send_message_batch request. :ivar results: A list of successful results. Each item in the list will be an instance of :class:`ResultEntry`. :ivar errors: A list of unsuccessful results. Each item in the list will be an instance of :class:`ResultEntry`. cCs||_g|_g|_dSr)ÚparentÚresultsÚerrors)rrrrrÚ__init__Ls zBatchResults.__init__cCsB| d¡rtƒ}|j |¡|S|dkrtƒ}|j |¡|SdS)NÚMessageBatchResultEntryÚBatchResultErrorEntry)ÚendswithrrÚappendr )rrrrÚentryrrrr Qs   zBatchResults.startElementcCst|||ƒdSr)Úsetattrrrrrr\szBatchResults.endElementN)rrrrr!r rrrrrrAs   rN)rÚdictrÚobjectrrrrrÚs&