v1.3.5
This commit is contained in:
@@ -0,0 +1,51 @@
|
||||
########################################################################
|
||||
# File name: xso.py
|
||||
# This file is part of: aioxmpp
|
||||
#
|
||||
# LICENSE
|
||||
#
|
||||
# This program is free software: you can redistribute it and/or modify
|
||||
# it under the terms of the GNU Lesser General Public License as
|
||||
# published by the Free Software Foundation, either version 3 of the
|
||||
# License, or (at your option) any later version.
|
||||
#
|
||||
# This program is distributed in the hope that it will be useful, but
|
||||
# WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
# Lesser General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU Lesser General Public
|
||||
# License along with this program. If not, see
|
||||
# <http://www.gnu.org/licenses/>.
|
||||
#
|
||||
########################################################################
|
||||
import aioxmpp
|
||||
import aioxmpp.xso as xso
|
||||
|
||||
from aioxmpp.utils import namespaces
|
||||
|
||||
namespaces.xep0184_receipts = "urn:xmpp:receipts"
|
||||
|
||||
|
||||
aioxmpp.Message.xep0184_request_receipt = xso.ChildFlag(
|
||||
(namespaces.xep0184_receipts, "request"),
|
||||
)
|
||||
|
||||
|
||||
class Received(xso.XSO):
|
||||
TAG = namespaces.xep0184_receipts, "received"
|
||||
|
||||
message_id = xso.Attr(
|
||||
"id",
|
||||
)
|
||||
|
||||
def __init__(self, message_id):
|
||||
super().__init__()
|
||||
self.message_id = message_id
|
||||
|
||||
|
||||
aioxmpp.Message.xep0184_received = xso.Child(
|
||||
[
|
||||
Received,
|
||||
]
|
||||
)
|
||||
Reference in New Issue
Block a user