C# Class Skylabs.Lobby.Client

Exibir arquivo Open project: octgn/OCTGN Class Usage Examples

Public Properties

Property Type Description
Config ILobbyConfig

Private Properties

Property 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

Public Methods

Method 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

Method 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 method

The accept friendship.
public AcceptFriendship ( Jid user ) : void
user Jid /// The user. ///
return void

BeginHostGame() public method

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
return void

BeginLogin() public method

The begin login.
public BeginLogin ( string username, string password ) : void
username string /// The username. ///
password string /// The password. ///
return void

BeginReconnect() public method

The begin get game list. The begin reconnect.
public BeginReconnect ( ) : void
return void

BeginRegister() public method

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

Client() public method

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

DeclineFriendship() public method

The decline friendship.
public DeclineFriendship ( Jid user ) : void
user Jid /// The user. ///
return void

Disconnect() public method

public Disconnect ( ) : void
return void

GetNotificationList() public method

The get notification list.
public GetNotificationList ( ) : Notification[]
return Notification[]

HostedGameStarted() public method

The get hosted games. The hosted game started.
public HostedGameStarted ( ) : void
return void

IgnoreUser() public method

public IgnoreUser ( string username ) : void
username string
return void

KillGame() public method

public KillGame ( System.Guid gameId ) : void
gameId System.Guid
return void

LogOut() public method

The log out.
public LogOut ( ) : void
return void

RemoveFriend() public method

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

Send() public method

The send.
public Send ( Element e ) : void
e Element /// The e. ///
return void

Send() public method

The send.
public Send ( string s ) : void
s string /// The s. ///
return void

SendFriendRequest() public method

The send friend request.
public SendFriendRequest ( string username ) : void
username string /// The username. ///
return void

SendGameInvite() public method

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
return void

SetCustomStatus() public method

The set custom status.
public SetCustomStatus ( string status ) : void
status string /// The status. ///
return void

SetStatus() public method

The set status.
public SetStatus ( UserStatus status ) : void
status UserStatus /// The status. ///
return void

Stop() public method

The stop.
public Stop ( ) : void
return void

UnignoreUser() public method

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

Property Details

Config public_oe property

The host.
public ILobbyConfig Config
return ILobbyConfig