C# Класс OpenStory.Server.Accounts.ActiveAccount

Represents an active account session.
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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.

Описание методов

ActiveAccount() публичный Метод

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.
Результат System

KeepAlive() публичный Метод

public KeepAlive ( Instant now ) : System.Duration
now Instant
Результат System.Duration

RegisterCharacter() публичный Метод

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.
Результат void

UnregisterCharacter() публичный Метод

Unregisters the active character.
Thrown if has no value assigned.
public UnregisterCharacter ( ) : void
Результат void