Class TwitterList
- Namespace
- Twikit
- Assembly
- Twikit.dll
リスト(Python 版の twikit.List。System.Collections.Generic.List<T> との混同を避けるため
C# では TwitterList という名前です)。
public sealed class TwitterList : IEquatable<TwitterList>
- Inheritance
-
TwitterList
- Implements
- Inherited Members
Constructors
TwitterList(Client, JsonObject)
public TwitterList(Client client, JsonObject data)
Parameters
clientClientdataJsonObject
Exceptions
- NotFoundException
X が解決できなかったリスト(ID だけの殻)。
Properties
Banner
バナー情報。カスタムバナーが無ければ既定のバナー。
public JsonObject? Banner { get; }
Property Value
CreatedAt
作成時刻(エポックミリ秒)。
public long? CreatedAt { get; }
Property Value
- long?
CreatedAtDatetime
CreatedAt を DateTimeOffset にしたもの(無ければ null)。
public DateTimeOffset? CreatedAtDatetime { get; }
Property Value
DefaultBanner
既定のバナー情報。
public JsonObject? DefaultBanner { get; }
Property Value
Description
説明。
public string? Description { get; }
Property Value
Following
ログイン中のユーザーがこのリストをフォローしているか。
public bool Following { get; }
Property Value
Id
リストの一意な ID。
public string Id { get; }
Property Value
IsMember
ログイン中のユーザーがこのリストのメンバーか。
public bool IsMember { get; }
Property Value
MemberCount
メンバー数。
public int MemberCount { get; }
Property Value
Mode
'Private' または 'Public'。
public string? Mode { get; }
Property Value
Muting
ミュートしているか。
public bool Muting { get; }
Property Value
Name
リスト名。
public string? Name { get; }
Property Value
Pinning
ピン留めしているか。
public bool Pinning { get; }
Property Value
SubscriberCount
購読者数。
public int SubscriberCount { get; }
Property Value
Methods
AddMemberAsync(string)
メンバーを追加します。
public Task<TwitterList> AddMemberAsync(string userId)
Parameters
userIdstring
Returns
DeleteBannerAsync()
バナー画像を削除します。
public Task<HttpResponseMessage> DeleteBannerAsync()
Returns
EditAsync(string?, string?, bool?)
リストの情報を編集します。
public Task<TwitterList> EditAsync(string? name = null, string? description = null, bool? isPrivate = null)
Parameters
Returns
EditBannerAsync(string)
バナー画像を変更します。
public Task<HttpResponseMessage> EditBannerAsync(string mediaId)
Parameters
mediaIdstring
Returns
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(TwitterList?)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(TwitterList? other)
Parameters
otherTwitterListAn 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.
GetMembersAsync(int, string?)
メンバーを取得します。
public Task<Result<User>> GetMembersAsync(int count = 20, string? cursor = null)
Parameters
Returns
GetSubscribersAsync(int, string?)
購読者を取得します。
public Task<Result<User>> GetSubscribersAsync(int count = 20, string? cursor = null)
Parameters
Returns
GetTweetsAsync(int, string?)
リストのツイートを取得します。
public Task<Result<Tweet>> GetTweetsAsync(int count = 20, string? cursor = null)
Parameters
Returns
RemoveMemberAsync(string)
メンバーを削除します。
public Task<TwitterList> RemoveMemberAsync(string userId)
Parameters
userIdstring
Returns
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()