class XMPP::Stanza::Bookmarks

Overview

Bookmarks implements XEP-0048 - Bookmark Conformance.

Bookmarks are the user's saved chat rooms (and URLs in v1.0). They are conventionally stored on the PEP node "storage:bookmarks" (XEP-0402) and may also be carried in private XML storage (XEP-0049). Items published to the PEP node use this payload.

Defined in:

xmpp/stanza/bookmarks.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]
def self.new #

[View source]

Class Method Detail

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

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


[View source]
def self.xml_name : String #

[View source]

Instance Method Detail

def conferences : Array(BookmarkConference) #

[View source]
def to_node : Node #

to_node converts the model into the generic Item payload used when publishing to the "storage:bookmarks" PEP node.


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

[View source]
def urls : Array(BookmarkURL) #

[View source]