Table of Contents

Class Place

Namespace
Twikit
Assembly
Twikit.dll

場所。

public sealed class Place : IEquatable<Place>
Inheritance
Place
Implements
Inherited Members

Constructors

Place(Client, JsonObject)

public Place(Client client, JsonObject data)

Parameters

client Client
data JsonObject

Properties

Attributes

public JsonObject? Attributes { get; }

Property Value

JsonObject

BoundingBox

場所の地理的範囲を表すバウンディングボックス。

public JsonObject? BoundingBox { get; }

Property Value

JsonObject

Centroid

緯度・経度で表した中心。

public List<double>? Centroid { get; }

Property Value

List<double>

ContainedWithin

この場所を含む場所の一覧。

public List<Place> ContainedWithin { get; }

Property Value

List<Place>

Country

国。

public string? Country { get; }

Property Value

string

CountryCode

ISO 3166-1 alpha-2 の国コード。

public string? CountryCode { get; }

Property Value

string

FullName

場所の正式名称。

public string? FullName { get; }

Property Value

string

Id

場所の ID。

public string Id { get; }

Property Value

string

Name

場所の名前。

public string? Name { get; }

Property Value

string

PlaceType

場所の種類。

public string? PlaceType { get; }

Property Value

string

Url

詳細情報の URL。

public string? Url { get; }

Property Value

string

Methods

Equals(object?)

Determines whether the specified object is equal to the current object.

public override bool Equals(object? obj)

Parameters

obj object

The object to compare with the current object.

Returns

bool

true if the specified object is equal to the current object; otherwise, false.

Equals(Place?)

Indicates whether the current object is equal to another object of the same type.

public bool Equals(Place? other)

Parameters

other Place

An object to compare with this object.

Returns

bool

true if the current object is equal to the other parameter; otherwise, false.

GetHashCode()

Serves as the default hash function.

public override int GetHashCode()

Returns

int

A hash code for the current object.

ToString()

Returns a string that represents the current object.

public override string ToString()

Returns

string

A string that represents the current object.

UpdateAsync()

最新の情報で更新します。

public Task UpdateAsync()

Returns

Task