C# Class OpenStory.Server.Accounts.ActiveAccount

Represents an active account session.
Afficher le fichier Open project: shoftee/OpenStory Class Usage Examples

Méthodes publiques

Méthode Description
ActiveAccount ( int accountId, int sessionId ) : System

Initializes a new instance of the ActiveAccount class.

KeepAlive ( Instant now ) : System.Duration
RegisterCharacter ( int characterId ) : void

Registers a character ID for this active account.

UnregisterCharacter ( ) : void

Unregisters the active character.

Method Details

ActiveAccount() public méthode

Initializes a new instance of the ActiveAccount class.
public ActiveAccount ( int accountId, int sessionId ) : System
accountId int The ID of the active account.
sessionId int The ID of the active session.
Résultat System

KeepAlive() public méthode

public KeepAlive ( Instant now ) : System.Duration
now Instant
Résultat System.Duration

RegisterCharacter() public méthode

Registers a character ID for this active account.
Thrown if is already assigned a value.
public RegisterCharacter ( int characterId ) : void
characterId int The character ID for this active account.
Résultat void

UnregisterCharacter() public méthode

Unregisters the active character.
Thrown if has no value assigned.
public UnregisterCharacter ( ) : void
Résultat void