C# Класс iRacingSdkWrapper.SessionInfo

Represents a single update of the Session Info YAML and includes parsing capabilities.
Показать файл Открыть проект Примеры использования класса

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

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

Приватные методы

Метод Описание
FixYaml ( string yaml ) : void
ParseYaml ( ) : void

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

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

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

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

public SessionInfo ( string yaml, double updateTime ) : System
yaml string
updateTime double
Результат System

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

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

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

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

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

public this ( string key ) : iRacingSdkWrapper.YamlQuery
key string
Результат iRacingSdkWrapper.YamlQuery