class XMPP::Stanza::AvatarData

Overview

AvatarData is the payload of the "urn:xmpp:avatar:data" PEP node (XEP-0084). It holds the base64-encoded avatar image bytes.

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) : AvatarData | Nil #

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


[View source]
def self.xml_name : String #

[View source]

Instance Method Detail

def data : String #

[View source]
def data=(data : String) #

[View source]
def to_node : Node #

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

[View source]