C# Class iRacingSdkWrapper.SessionInfo

Represents a single update of the Session Info YAML and includes parsing capabilities.
Afficher le fichier Open project: NickThissen/iRacingSdkWrapper Class Usage Examples

Méthodes publiques

Méthode Description
GetValue ( string query ) : string

Gets a value from the session info YAML. May throw an exception. Use TryGetValue for safer operation.

SessionInfo ( string yaml, double updateTime ) : System
TryGetValue ( string query, string &value ) : bool

Gets a value from the session info YAML. Returns true if successfull, false if there is an error.

TryGetValue ( string query ) : string

Gets a value from the session info YAML, or null if there is an error.

this ( string key ) : iRacingSdkWrapper.YamlQuery

Private Methods

Méthode Description
FixYaml ( string yaml ) : void
ParseYaml ( ) : void

Method Details

GetValue() public méthode

Gets a value from the session info YAML. May throw an exception. Use TryGetValue for safer operation.
public GetValue ( string query ) : string
query string The YAML query path to the value.
Résultat string

SessionInfo() public méthode

public SessionInfo ( string yaml, double updateTime ) : System
yaml string
updateTime double
Résultat System

TryGetValue() public méthode

Gets a value from the session info YAML. Returns true if successfull, false if there is an error.
public TryGetValue ( string query, string &value ) : bool
query string The YAML query path to the value.
value string When this method returns, contains the requested value if the query was valid, or null if the query was invalid.
Résultat bool

TryGetValue() public méthode

Gets a value from the session info YAML, or null if there is an error.
public TryGetValue ( string query ) : string
query string The YAML query path to the value.
Résultat string

this() public méthode

public this ( string key ) : iRacingSdkWrapper.YamlQuery
key string
Résultat iRacingSdkWrapper.YamlQuery