class XMPP::Stanza::AvatarMetadata

Overview

AvatarMetadata is the payload of the "urn:xmpp:avatar:metadata" PEP node (XEP-0084). It describes the published avatar without the image bytes so subscribers can decide whether to fetch the data node.

Defined in:

xmpp/stanza/avatar.cr

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.new(xml : String) #

[View source]
def self.new(node : XML::Node) #

[View source]

Class Method Detail

def self.from_node(node : Node) : AvatarMetadata | Nil #

from_node converts a generic Item payload (as delivered in a PEP notification) back into an AvatarMetadata model.


[View source]
def self.xml_name : String #

[View source]

Instance Method Detail

def infos : Array(AvatarInfo) #

[View source]
def to_node : Node #

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

[View source]