C# Class OpenStory.Server.Accounts.ActiveAccount

Represents an active account session.
Show file Open project: shoftee/OpenStory Class Usage Examples

Public Methods

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

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.
return System

KeepAlive() public method

public KeepAlive ( Instant now ) : System.Duration
now Instant
return System.Duration

RegisterCharacter() public method

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

UnregisterCharacter() public method

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