![]() |
Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
|
Contains information about a language. More...
Public Member Functions | |
| Language () | |
| Contains information about a language. More... | |
| async Task< Namespace > | GetNamespaceAsync (string Name) |
| Gets the namespace object, given its name, if available. More... | |
| async Task< Namespace > | GetNamespaceAsync (string Name, bool CreateIfNotFound) |
| Gets the namespace object, given its name, if available. More... | |
| async Task< Namespace[]> | GetNamespacesAsync () |
| Gets available namespaces. More... | |
| async Task< Namespace > | CreateNamespaceAsync (string Name) |
| Creates a new language namespace, or updates an existing language namespace, if one exist with the same properties. More... | |
| Task< string > | GetStringAsync (Type Type, int Id, string Default) |
| Gets the string value of a string ID. If no such string exists, a string is created with the default value. More... | |
| async Task< string > | GetStringAsync (Type Type, string Id, string Default) |
| Gets the string value of a string ID. If no such string exists, a string is created with the default value. More... | |
| override string | ToString () |
Properties | |
| Guid | ObjectId [get, set] |
| Object ID More... | |
| string | Code [get, set] |
| Language code. More... | |
| string | Name [get, set] |
| Language name. More... | |
| byte[] | Flag [get, set] |
| Language flag. More... | |
| int | FlagWidth [get, set] |
| Width of flag. More... | |
| int | FlagHeight [get, set] |
| Height of flag. More... | |
Contains information about a language.
Definition at line 16 of file Language.cs.
| Waher.Runtime.Language.Language.Language | ( | ) |
Contains information about a language.
Definition at line 31 of file Language.cs.
| async Task< Namespace > Waher.Runtime.Language.Language.CreateNamespaceAsync | ( | string | Name | ) |
Creates a new language namespace, or updates an existing language namespace, if one exist with the same properties.
| Name | Namespace. |
Definition at line 175 of file Language.cs.
| async Task< Namespace > Waher.Runtime.Language.Language.GetNamespaceAsync | ( | string | Name | ) |
Gets the namespace object, given its name, if available.
| Name | Namespace. |
Definition at line 99 of file Language.cs.
| async Task< Namespace > Waher.Runtime.Language.Language.GetNamespaceAsync | ( | string | Name, |
| bool | CreateIfNotFound | ||
| ) |
Gets the namespace object, given its name, if available.
| Name | Namespace. |
| CreateIfNotFound | If a new Namespace object should be created, if one is not found. |
Definition at line 130 of file Language.cs.
| async Task< Namespace[]> Waher.Runtime.Language.Language.GetNamespacesAsync | ( | ) |
| Task< string > Waher.Runtime.Language.Language.GetStringAsync | ( | Type | Type, |
| int | Id, | ||
| string | Default | ||
| ) |
Gets the string value of a string ID. If no such string exists, a string is created with the default value.
| Type | Type, whose namespace defines in what language namespace the string will be fetched. |
| Id | String ID |
| Default | Default (untranslated) string. |
Definition at line 209 of file Language.cs.
| async Task< string > Waher.Runtime.Language.Language.GetStringAsync | ( | Type | Type, |
| string | Id, | ||
| string | Default | ||
| ) |
Gets the string value of a string ID. If no such string exists, a string is created with the default value.
| Type | Type, whose namespace defines in what language namespace the string will be fetched. |
| Id | String ID |
| Default | Default (untranslated) string. |
Definition at line 221 of file Language.cs.
| override string Waher.Runtime.Language.Language.ToString | ( | ) |
Definition at line 230 of file Language.cs.
|
getset |
Language code.
Definition at line 48 of file Language.cs.
|
getset |
Language flag.
Definition at line 68 of file Language.cs.
|
getset |
Height of flag.
Definition at line 88 of file Language.cs.
|
getset |
Width of flag.
Definition at line 78 of file Language.cs.
|
getset |
Language name.
Definition at line 58 of file Language.cs.
|
getset |
Object ID
Definition at line 39 of file Language.cs.