Table of Contents

Class UiCultureInfo

Namespace
VpnHood.AppLib.Api.App
Assembly
VpnHood.AppLib.Api.dll

Represents a language the UI can show: its culture name, and its own name for itself.

public class UiCultureInfo
Inheritance
UiCultureInfo
Inherited Members

Constructors

UiCultureInfo(CultureInfo)

Represents a language the UI can show: its culture name, and its own name for itself.

public UiCultureInfo(CultureInfo cultureInfo)

Parameters

cultureInfo CultureInfo

The language's culture.

UiCultureInfo(string)

Initializes a new instance of the UiCultureInfo class.

public UiCultureInfo(string code)

Parameters

code string

The language's culture name, as fr.

Exceptions

ArgumentNullException

code is null.

CultureNotFoundException

code names no culture.

UiCultureInfo(string, string)

Initializes a new instance of the UiCultureInfo class, as JSON from the other side of the API reads it: with the device's own name for the language, not one the reader's culture data would make.

[JsonConstructor]
public UiCultureInfo(string code, string nativeName)

Parameters

code string

The language's culture name, as fr.

nativeName string

The language's name for itself.

Exceptions

ArgumentNullException

code is null.

CultureNotFoundException

code names no culture.

Properties

Code

Gets the language's culture name, as fr.

public string Code { get; }

Property Value

string

NativeName

Gets the language's name for itself, as français.

public string NativeName { get; }

Property Value

string