C# Class Skylabs.Lobby.Client

Afficher le fichier Open project: octgn/OCTGN Class Usage Examples

Méthodes publiques

Свойство Type Description
Config ILobbyConfig

Private Properties

Свойство Type Description
BeginConnect void
FireLoginComplete void
OnIgnorelistUpdated void
RebuildXmpp void
ReconnectTimerOnElapsed void
XmppOnOnAgentItem void
XmppOnOnAuthError void
XmppOnOnClose void
XmppOnOnError void
XmppOnOnIq void
XmppOnOnLogin void
XmppOnOnMessage void
XmppOnOnReadXml void
XmppOnOnRegisterError void
XmppOnOnRegistered void
XmppOnOnRosterEnd void
XmppOnOnRosterItem void
XmppOnOnRosterStart void
XmppOnOnSocketError void
XmppOnOnStreamError void
XmppOnOnWriteXml void
XmppOnOnXmppConnectionStateChanged void
XmppOnPresence void

Méthodes publiques

Méthode Description
AcceptFriendship ( Jid user ) : void

The accept friendship.

BeginHostGame ( Octgn game, string gamename, string password, string actualgamename, string gameIconUrl, System.Version sasVersion, bool specators ) : void

The begin host game.

BeginLogin ( string username, string password ) : void

The begin login.

BeginReconnect ( ) : void

The begin get game list.

The begin reconnect.

BeginRegister ( string username, string password, string email ) : void

The begin register.

Client ( ILobbyConfig config ) : System

Initializes a new instance of the Client class.

DeclineFriendship ( Jid user ) : void

The decline friendship.

Disconnect ( ) : void
GetNotificationList ( ) : Notification[]

The get notification list.

HostedGameStarted ( ) : void

The get hosted games.

The hosted game started.

IgnoreUser ( string username ) : void
KillGame ( System.Guid gameId ) : void
LogOut ( ) : void

The log out.

RemoveFriend ( agsXMPP.protocol.x.muc.User user ) : void

The remove friend.

Send ( Element e ) : void

The send.

Send ( string s ) : void

The send.

SendFriendRequest ( string username ) : void

The send friend request.

SendGameInvite ( agsXMPP.protocol.x.muc.User user, System.Guid sessionId, string gamePassword ) : void
SetCustomStatus ( string status ) : void

The set custom status.

SetStatus ( UserStatus status ) : void

The set status.

Stop ( ) : void

The stop.

UnignoreUser ( agsXMPP.protocol.x.muc.User user ) : void

Private Methods

Méthode Description
BeginConnect ( ) : void
FireLoginComplete ( LoginResults result ) : void

The fire login complete.

OnIgnorelistUpdated ( object sender, agsXMPP.protocol.client.IQ iq, object data ) : void
RebuildXmpp ( ) : void
ReconnectTimerOnElapsed ( object sender, System.Timers.ElapsedEventArgs elapsedEventArgs ) : void
XmppOnOnAgentItem ( object sender, agsXMPP.protocol.iq.agent.Agent agent ) : void

The xmpp on on agent item.

XmppOnOnAuthError ( object sender, Element element ) : void

The xmpp on on auth error.

XmppOnOnClose ( object sender ) : void

The xmpp on on close.

XmppOnOnError ( object sender, Exception exception ) : void

The xmpp on on error.

XmppOnOnIq ( object sender, agsXMPP.protocol.client.IQ iq ) : void

The xmpp on on iq.

XmppOnOnLogin ( object sender ) : void

The xmpp on on login.

XmppOnOnMessage ( object sender, Message msg ) : void

The xmpp on on message.

XmppOnOnReadXml ( object sender, string xml ) : void

The xmpp on on read xml.

XmppOnOnRegisterError ( object sender, Element element ) : void

The xmpp on on register error.

XmppOnOnRegistered ( object sender ) : void

The xmpp on on registered.

XmppOnOnRosterEnd ( object sender ) : void

The xmpp on on roster end.

XmppOnOnRosterItem ( object sender, RosterItem item ) : void

The xmpp on on roster item.

XmppOnOnRosterStart ( object sender ) : void

The xmpp on on roster start.

XmppOnOnSocketError ( object sender, Exception exception ) : void

The xmpp on on socket error.

XmppOnOnStreamError ( object sender, Element element ) : void

The xmpp on on stream error.

XmppOnOnWriteXml ( object sender, string xml ) : void

The xmpp on on write xml.

XmppOnOnXmppConnectionStateChanged ( object sender, XmppConnectionState state ) : void

The xmpp on on xmpp connection state changed.

XmppOnPresence ( object sender, Presence pres ) : void

The xmpp on presence.

Method Details

AcceptFriendship() public méthode

The accept friendship.
public AcceptFriendship ( Jid user ) : void
user Jid /// The user. ///
Résultat void

BeginHostGame() public méthode

The begin host game.
public BeginHostGame ( Octgn game, string gamename, string password, string actualgamename, string gameIconUrl, System.Version sasVersion, bool specators ) : void
game Octgn /// The game. ///
gamename string /// The gamename. ///
password string
actualgamename string
gameIconUrl string
sasVersion System.Version
specators bool
Résultat void

BeginLogin() public méthode

The begin login.
public BeginLogin ( string username, string password ) : void
username string /// The username. ///
password string /// The password. ///
Résultat void

BeginReconnect() public méthode

The begin get game list. The begin reconnect.
public BeginReconnect ( ) : void
Résultat void

BeginRegister() public méthode

The begin register.
public BeginRegister ( string username, string password, string email ) : void
username string /// The username. ///
password string /// The password. ///
email string /// The email. ///
Résultat void

Client() public méthode

Initializes a new instance of the Client class.
public Client ( ILobbyConfig config ) : System
config ILobbyConfig Lobby Config
Résultat System

DeclineFriendship() public méthode

The decline friendship.
public DeclineFriendship ( Jid user ) : void
user Jid /// The user. ///
Résultat void

Disconnect() public méthode

public Disconnect ( ) : void
Résultat void

GetNotificationList() public méthode

The get notification list.
public GetNotificationList ( ) : Notification[]
Résultat Notification[]

HostedGameStarted() public méthode

The get hosted games. The hosted game started.
public HostedGameStarted ( ) : void
Résultat void

IgnoreUser() public méthode

public IgnoreUser ( string username ) : void
username string
Résultat void

KillGame() public méthode

public KillGame ( System.Guid gameId ) : void
gameId System.Guid
Résultat void

LogOut() public méthode

The log out.
public LogOut ( ) : void
Résultat void

RemoveFriend() public méthode

The remove friend.
public RemoveFriend ( agsXMPP.protocol.x.muc.User user ) : void
user agsXMPP.protocol.x.muc.User /// The user. ///
Résultat void

Send() public méthode

The send.
public Send ( Element e ) : void
e Element /// The e. ///
Résultat void

Send() public méthode

The send.
public Send ( string s ) : void
s string /// The s. ///
Résultat void

SendFriendRequest() public méthode

The send friend request.
public SendFriendRequest ( string username ) : void
username string /// The username. ///
Résultat void

SendGameInvite() public méthode

public SendGameInvite ( agsXMPP.protocol.x.muc.User user, System.Guid sessionId, string gamePassword ) : void
user agsXMPP.protocol.x.muc.User
sessionId System.Guid
gamePassword string
Résultat void

SetCustomStatus() public méthode

The set custom status.
public SetCustomStatus ( string status ) : void
status string /// The status. ///
Résultat void

SetStatus() public méthode

The set status.
public SetStatus ( UserStatus status ) : void
status UserStatus /// The status. ///
Résultat void

Stop() public méthode

The stop.
public Stop ( ) : void
Résultat void

UnignoreUser() public méthode

public UnignoreUser ( agsXMPP.protocol.x.muc.User user ) : void
user agsXMPP.protocol.x.muc.User
Résultat void

Property Details

Config public_oe property

The host.
public ILobbyConfig Config
Résultat ILobbyConfig