class XMPP::ComponentDisco::DiscoItems

Overview

DiscoItems holds the items associated with the component

Defined in:

xmpp/component/disco.cr

Instance Method Summary

Instance Method Detail

def add_item(jid : String, node : String = "", name : String = "") #

Add an item to the root


[View source]
def add_node_item(parent_node : String, jid : String, node : String = "", name : String = "") #

Add an item to a specific node


[View source]
def build_response(node : String = "") : Stanza::DiscoItems #

Build a disco#items response


[View source]
def items : Array(Stanza::DiscoItem) #

[View source]
def items=(items : Array(Stanza::DiscoItem)) #

[View source]
def node_items : Hash(String, Array(Stanza::DiscoItem)) #

[View source]
def node_items=(node_items : Hash(String, Array(Stanza::DiscoItem))) #

[View source]