Class Location
- Namespace
- Twikit
- Assembly
- Twikit.dll
トレンドを取得できる地域。
public sealed class Location : IEquatable<Location>
- Inheritance
-
Location
- Implements
- Inherited Members
Constructors
Location(Client, JsonObject)
public Location(Client client, JsonObject data)
Parameters
clientClientdataJsonObject
Properties
Country
public string? Country { get; }
Property Value
CountryCode
public string? CountryCode { get; }
Property Value
Name
public string Name { get; }
Property Value
ParentId
public long? ParentId { get; }
Property Value
- long?
PlaceType
public JsonObject? PlaceType { get; }
Property Value
Url
public string? Url { get; }
Property Value
Woeid
public long Woeid { get; }
Property Value
Methods
Equals(object?)
Determines whether the specified object is equal to the current object.
public override bool Equals(object? obj)
Parameters
objobjectThe object to compare with the current object.
Returns
Equals(Location?)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(Location? other)
Parameters
otherLocationAn object to compare with this object.
Returns
GetHashCode()
Serves as the default hash function.
public override int GetHashCode()
Returns
- int
A hash code for the current object.
GetTrendsAsync()
この地域のトレンドを取得します。
public Task<PlaceTrends> GetTrendsAsync()
Returns
ToString()
Returns a string that represents the current object.
public override string ToString()
Returns
- string
A string that represents the current object.