本文整理汇总了Python中sipsimple.payloads.XMLElement类的典型用法代码示例。如果您正苦于以下问题:Python XMLElement类的具体用法?Python XMLElement怎么用?Python XMLElement使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了XMLElement类的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Python代码示例。
示例1: __init__
def __init__(self, id, device_id=None, notes=[], timestamp=None):
XMLElement.__init__(self)
self.id = id
self.device_id = device_id
for note in notes:
self.notes.add(note)
self.timestamp = timestamp
开发者ID:LaoHanTeam,项目名称:python-sipsimple,代码行数:7,代码来源:presdm.py
示例2: __init__
def __init__(self, value=None, id=None, since=None, until=None):
XMLElement.__init__(self)
self.__value = None
self.id = id
self.since = since
self.until = until
self.value = value
开发者ID:LaoHanTeam,项目名称:python-sipsimple,代码行数:7,代码来源:rpid.py
示例3: __init__
def __init__(self, name, hash, size, sender, status):
XMLElement.__init__(self)
self.name = name
self.hash = hash
self.size = size
self.sender = sender
self.status = status
开发者ID:pol51,项目名称:python-sipsimple,代码行数:7,代码来源:conference.py
示例4: __init__
def __init__(self, id=None, since=None, until=None, moods=[], notes=[]):
XMLElement.__init__(self)
self.id = id
self.since = since
self.until = until
self.update(moods)
self.notes.update(notes)
开发者ID:acatighera,项目名称:python-sipsimple,代码行数:7,代码来源:rpid.py
示例5: __init__
def __init__(self, uri, state=None, display_text=None, purpose=None, modified=None):
XMLElement.__init__(self)
self.uri = uri
self.state = state
self.display_text = display_text
self.purpose = purpose
self.modified = modified
开发者ID:LaoHanTeam,项目名称:python-sipsimple,代码行数:7,代码来源:conference.py
示例6: __init__
def __init__(self, id, uri, name='', presence_handling=None, dialog_handling=None):
XMLElement.__init__(self)
self.id = id
self.uri = uri
self.name = name
self.dialog = dialog_handling or DialogHandling('default', False)
self.presence = presence_handling or PresenceHandling('default', False)
开发者ID:AGProjects,项目名称:python-sipsimple,代码行数:7,代码来源:addressbook.py
示例7: __init__
def __init__(self, sipuri, id, status, event, display_name=None, expiration=None, duration=None):
XMLElement.__init__(self)
self.sipuri = sipuri
self.id = id
self.status = status
self.event = event
self.display_name = display_name
self.expiration = expiration
self.duration = duration
开发者ID:earuiz,项目名称:python-sipsimple,代码行数:9,代码来源:watcherinfo.py
示例8: __init__
def __init__(self, id, state, call_id=None, local_tag=None, remote_tag=None, direction=None, duration=None, replaces=None, referred_by=None, local=None, remote=None):
XMLElement.__init__(self)
self.id = id
self.state = state
self.call_id = call_id
self.local_tag = local_tag
self.remote_tag = remote_tag
self.direction = direction
self.duration = duration
self.replaces = replaces
self.referred_by = referred_by
self.local = local
self.remote = remote
开发者ID:acatighera,项目名称:python-sipsimple,代码行数:13,代码来源:dialoginfo.py
示例9: __init__
def __init__(self, uri, items=[]):
XMLElement.__init__(self)
self.uri = uri
self.update(items)
开发者ID:AGProjects,项目名称:python-sipsimple,代码行数:4,代码来源:rlmi.py
示例10: __init__
def __init__(self, id):
XMLElement.__init__(self)
self.id = id
开发者ID:AGProjects,项目名称:python-sipsimple,代码行数:3,代码来源:commonpolicy.py
注:本文中的sipsimple.payloads.XMLElement类示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论