C# Class agsXMPP.PresenceGrabber

Inheritance: PacketGrabber
Mostrar archivo Open project: SiteView/ECC8.13 Class Usage Examples

Public Methods

Method Description
Add ( Jid jid, IComparer comparer, PresenceCB cb, object cbArg ) : void

Adds the specified jid.

Add ( Jid jid, PresenceCB cb, object cbArg ) : void
PresenceGrabber ( XmppClientConnection conn ) : System

Initializes a new instance of the PresenceGrabber class.

Remove ( Jid jid ) : void

Pending request can be removed. This is useful when a ressource for the callback is destroyed and we are not interested anymore at the result.

Private Methods

Method Description
m_connection_OnPresence ( object sender, Presence pres ) : void

A presence is received. Now check if its from a Jid we are looking for and raise the event in this case.

Method Details

Add() public method

Adds the specified jid.
public Add ( Jid jid, IComparer comparer, PresenceCB cb, object cbArg ) : void
jid Jid The jid.
comparer IComparer The comparer.
cb PresenceCB The callback.
cbArg object The callback Arguments.
return void

Add() public method

public Add ( Jid jid, PresenceCB cb, object cbArg ) : void
jid Jid
cb PresenceCB
cbArg object
return void

PresenceGrabber() public method

Initializes a new instance of the PresenceGrabber class.
public PresenceGrabber ( XmppClientConnection conn ) : System
conn XmppClientConnection The conn.
return System

Remove() public method

Pending request can be removed. This is useful when a ressource for the callback is destroyed and we are not interested anymore at the result.
public Remove ( Jid jid ) : void
jid Jid
return void