C# Class SfSdk.Data.Character

Inheritance: ICharacter, INotifyPropertyChanged
Afficher le fichier Open project: ebeeb/SfSdk Class Usage Examples

Méthodes publiques

Méthode 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.

Méthodes protégées

Méthode Description
NotifyOfPropertyChange ( [ propertyName = null ) : void

Private Methods

Méthode Description
LoadFromSavegame ( ISavegame sg ) : void

Method Details

Character() public méthode

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 .
Résultat System

Character() public méthode

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.
Résultat System

NotifyOfPropertyChange() protected méthode

protected NotifyOfPropertyChange ( [ propertyName = null ) : void
propertyName [
Résultat void

Refresh() public méthode

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.
Résultat System.Threading.Tasks.Task