C# 클래스 jabber.connection.PubSubNode

상속: jabber.connection.StreamComponent, IEnumerable
파일 보기 프로젝트 열기: codebutler/jabber-net 1 사용 예제들

공개 메소드들

메소드 설명
AddItemAddCallback ( ItemCB callback ) : void

Adds a handler for the OnItemAdd event, and calls the handler for any existing items. To prevent races, use this rather than .OnItemAdd +=.

AutomatedSubscribe ( ) : void

Creates the node then subscribes. If the creation succeeded, or if the node already exists, retrieve the items for the node. This is the typical starting point. Please make sure to register callbacks before calling this function.

Configure ( IqCB callback, object state ) : void

Request configuration form as the owner

Create ( ) : void

Creates the node with default configuration.

Create ( jabber config ) : void

Creates the node using the specified configuration form.

Delete ( ) : void

Deletes the node from the XMPP server.

DeleteItem ( string id ) : void

Deletes a single item from the XMPP server.

GetItems ( ) : void

Gets the items from the node on the XMPP server.

ItemAdded ( PubSubItem item ) : void

Notifies the client that an item has been add to this PubSubNode.

ItemRemoved ( PubSubItem item ) : void

Notifies the client that an item has been removed from this PubSubNode.

PublishItem ( string id, XmlElement contents ) : void

Publishes an item to the node.

Purge ( ) : void

Delete all items from a node at once.

Subscribe ( ) : void

Sends a subscription request. Items request will be sent automatically on successful subscribe.

Unsubscribe ( ) : void

Unsubscribes from the node.

this ( string id ) : XmlElement

Returns the contents of the specified item

비공개 메소드들

메소드 설명
FireError ( Op op, string message, XmlElement protocol ) : void
FireItems ( jabber.protocol.iq.EventItems items ) : void
GetItemsIfPending ( ) : void
GotCreated ( object sender, IQ iq, object state ) : void
GotDelete ( object sender, IQ iq, object data ) : void
GotItems ( object sender, IQ iq, object state ) : void
GotPurge ( object sender, IQ iq, object data ) : void
GotSubscribed ( object sender, IQ iq, object state ) : void
GotUnsubsribed ( object sender, IQ iq, object data ) : void
IEnumerable ( ) : IEnumerator
NeedsAsking ( STATE state ) : bool
OnConfigure ( object sender, IQ iq, object data ) : void
OnDeleteNode ( object sender, IQ iq, object data ) : void
OnPublished ( object sender, IQ iq, object data ) : void
PubSubNode ( jabber.connection.XmppStream stream, JID jid, string node, int maxItems ) : System

Create a Node. Next, call Create and/or Subscribe.

SubscribeIfPending ( ) : void
addInfo ( PubSubIQ iq ) : void
createCommand ( PubSubCommandType type ) : PubSubIQ
this ( Op op ) : STATE

메소드 상세

AddItemAddCallback() 공개 메소드

Adds a handler for the OnItemAdd event, and calls the handler for any existing items. To prevent races, use this rather than .OnItemAdd +=.
public AddItemAddCallback ( ItemCB callback ) : void
callback ItemCB Callback to call with every item.
리턴 void

AutomatedSubscribe() 공개 메소드

Creates the node then subscribes. If the creation succeeded, or if the node already exists, retrieve the items for the node. This is the typical starting point. Please make sure to register callbacks before calling this function.
public AutomatedSubscribe ( ) : void
리턴 void

Configure() 공개 메소드

Request configuration form as the owner
public Configure ( IqCB callback, object state ) : void
callback IqCB Callback. Must not be null. Will not be called back /// if there is an error, but instead OnError will be called.
state object State information to be passed back to callback
리턴 void

Create() 공개 메소드

Creates the node with default configuration.
public Create ( ) : void
리턴 void

Create() 공개 메소드

Creates the node using the specified configuration form.
public Create ( jabber config ) : void
config jabber Null for the default configuration
리턴 void

Delete() 공개 메소드

Deletes the node from the XMPP server.
public Delete ( ) : void
리턴 void

DeleteItem() 공개 메소드

Deletes a single item from the XMPP server.
public DeleteItem ( string id ) : void
id string Id of item.
리턴 void

GetItems() 공개 메소드

Gets the items from the node on the XMPP server.
public GetItems ( ) : void
리턴 void

ItemAdded() 공개 메소드

Notifies the client that an item has been add to this PubSubNode.
public ItemAdded ( PubSubItem item ) : void
item PubSubItem Item that was added.
리턴 void

ItemRemoved() 공개 메소드

Notifies the client that an item has been removed from this PubSubNode.
public ItemRemoved ( PubSubItem item ) : void
item PubSubItem Item that was removed.
리턴 void

PublishItem() 공개 메소드

Publishes an item to the node.
public PublishItem ( string id, XmlElement contents ) : void
id string If null, the server will assign an item ID.
contents System.Xml.XmlElement The XML inside the item. Should be in a new namespace.
리턴 void

Purge() 공개 메소드

Delete all items from a node at once.
public Purge ( ) : void
리턴 void

Subscribe() 공개 메소드

Sends a subscription request. Items request will be sent automatically on successful subscribe.
public Subscribe ( ) : void
리턴 void

Unsubscribe() 공개 메소드

Unsubscribes from the node.
public Unsubscribe ( ) : void
리턴 void

this() 공개 메소드

Returns the contents of the specified item
public this ( string id ) : XmlElement
id string Index of the element to retrieve.
리턴 XmlElement