Class UserLocation
public sealed class UserLocation
- Inheritance
-
UserLocation
- Inherited Members
Constructors
UserLocation()
public UserLocation()
UserLocation(string, string, string, string)
public UserLocation(string city = null, string country = null, string region = null, string timezone = null)
Parameters
Properties
City
Free text input for the city of the user, e.g. San Francisco.
[JsonInclude]
[JsonPropertyName("city")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public string City { get; }
Property Value
Country
The two-letter ISO country code of the user, e.g. US.
[JsonInclude]
[JsonPropertyName("country")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public string Country { get; }
Property Value
Region
Free text input for the region of the user, e.g. California.
[JsonInclude]
[JsonPropertyName("region")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public string Region { get; }
Property Value
Timezone
The IANA timezone of the user, e.g. America/Los_Angeles.
[JsonInclude]
[JsonPropertyName("timezone")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public string Timezone { get; }
Property Value
Type
[JsonInclude]
[JsonPropertyName("type")]
public string Type { get; }