C# Class SfSdk.Data.Character

Inheritance: ICharacter, INotifyPropertyChanged
Datei anzeigen Open project: ebeeb/SfSdk Class Usage Examples

Public Methods

Method Description
Character ( ICharacterResponse response, string username, ISession session, Uri serverUri ) : System

Creates a new Character instance, calculated from a CharacterResponse. The character's loaded status is initially set to true.

Character ( int rank, string username, string guild, int level, int honor, ISession session ) : System

Creates a new Character instance, without its details loaded.

Refresh ( bool force = false ) : System.Threading.Tasks.Task

Refreshes the data of the character by requesting it again.

Protected Methods

Method Description
NotifyOfPropertyChange ( [ propertyName = null ) : void

Private Methods

Method Description
LoadFromSavegame ( ISavegame sg ) : void

Method Details

Character() public method

Creates a new Character instance, calculated from a CharacterResponse. The character's loaded status is initially set to true.
When savegame is empty or username is null or empty. When session or response is null.
public Character ( ICharacterResponse response, string username, ISession session, Uri serverUri ) : System
response ICharacterResponse The from which arguments the is going to calculated.
username string The username of the character.
session ISession The session, where the character is going to be attatched to.
serverUri System.Uri The server .
return System

Character() public method

Creates a new Character instance, without its details loaded.
When username is null or empty. When session is null.
public Character ( int rank, string username, string guild, int level, int honor, ISession session ) : System
rank int The character's rank.
username string The character's username.
guild string The character's guild.
level int The character's level.
honor int The character's honor.
session ISession The session, where the character is going to be attatched to.
return System

NotifyOfPropertyChange() protected method

protected NotifyOfPropertyChange ( [ propertyName = null ) : void
propertyName [
return void

Refresh() public method

Refreshes the data of the character by requesting it again.
public Refresh ( bool force = false ) : System.Threading.Tasks.Task
force bool Indicates whether request shall be forced, even if the character has already been loaded.
return System.Threading.Tasks.Task