class XMPP::Stanza::PEPEventPres

Overview

PEPEventPres is the presence-carried PEP notification defined by XEP-0223.

When a contact is already subscribed to the publisher's presence, the server delivers a PEP notification as a child of the presence stanza instead of as a separate message. It carries the same items/retract payload as the message-form PubSubEvent.

Defined in:

xmpp/stanza/presence/pubsub_event.cr

Constructors

Class Method Summary

Instance Method Summary

Instance methods inherited from module XMPP::Stanza::Packet

name : String name, to_xml(xml : XML::Builder)
to_xml : String
to_xml

Constructor Detail

def self.new(node : XML::Node) #

[View source]
def self.new(xml : String) #

[View source]

Class Method Detail

def self.xml_name : XMLName #

[View source]

Instance Method Detail

def items : Items | Nil #

[View source]
def items=(items : Items | Nil) #

[View source]
def name : String #

[View source]
def retract : Retract | Nil #

[View source]
def retract=(retract : Retract | Nil) #

[View source]
def to_event : PubSubEvent #

to_event converts the presence form into the shared message-form PubSubEvent model.


[View source]
def to_xml(xml : XML::Builder) #

[View source]