# Slixmpp: The Slick XMPP Library# Copyright (C) 2025 Mathieu Pasquet# This file is part of Slixmpp.# See the file LICENSE for copying permissionfromtypingimportTuple,List,OptionalfromslixmppimportMessagefromslixmpp.jidimportJIDfromslixmpp.xmlstreamimportElementBase,register_stanza_pluginNS='urn:xmpp:call-invites:0'
[docs]defset_jid(self,value:JID)->None:ifnotisinstance(value,JID):try:value=JID(value)exceptValueError:raiseValueError(f'"jid" must be a valid JID object')self.xml.attrib['jid']=value.full
[docs]defset_video(self,value:bool)->None:ifnotisinstance(value,bool):raiseValueError(f'Invalid value for the video attribute: {value}')self.xml.attrib['video']=str(value).lower()