Table of Contents

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

client Client
data JsonObject

Exceptions

NotFoundException

X が解決できなかったリスト(ID だけの殻)。

Properties

Banner

バナー情報。カスタムバナーが無ければ既定のバナー。

public JsonObject? Banner { get; }

Property Value

JsonObject

CreatedAt

作成時刻(エポックミリ秒)。

public long? CreatedAt { get; }

Property Value

long?

CreatedAtDatetime

CreatedAt を DateTimeOffset にしたもの(無ければ null)。

public DateTimeOffset? CreatedAtDatetime { get; }

Property Value

DateTimeOffset?

DefaultBanner

既定のバナー情報。

public JsonObject? DefaultBanner { get; }

Property Value

JsonObject

Description

説明。

public string? Description { get; }

Property Value

string

Following

ログイン中のユーザーがこのリストをフォローしているか。

public bool Following { get; }

Property Value

bool

Id

リストの一意な ID。

public string Id { get; }

Property Value

string

IsMember

ログイン中のユーザーがこのリストのメンバーか。

public bool IsMember { get; }

Property Value

bool

MemberCount

メンバー数。

public int MemberCount { get; }

Property Value

int

Mode

'Private' または 'Public'。

public string? Mode { get; }

Property Value

string

Muting

ミュートしているか。

public bool Muting { get; }

Property Value

bool

Name

リスト名。

public string? Name { get; }

Property Value

string

Pinning

ピン留めしているか。

public bool Pinning { get; }

Property Value

bool

SubscriberCount

購読者数。

public int SubscriberCount { get; }

Property Value

int

Methods

AddMemberAsync(string)

メンバーを追加します。

public Task<TwitterList> AddMemberAsync(string userId)

Parameters

userId string

Returns

Task<TwitterList>

DeleteBannerAsync()

バナー画像を削除します。

public Task<HttpResponseMessage> DeleteBannerAsync()

Returns

Task<HttpResponseMessage>

EditAsync(string?, string?, bool?)

リストの情報を編集します。

public Task<TwitterList> EditAsync(string? name = null, string? description = null, bool? isPrivate = null)

Parameters

name string
description string
isPrivate bool?

Returns

Task<TwitterList>

EditBannerAsync(string)

バナー画像を変更します。

public Task<HttpResponseMessage> EditBannerAsync(string mediaId)

Parameters

mediaId string

Returns

Task<HttpResponseMessage>

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(TwitterList?)

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

public bool Equals(TwitterList? other)

Parameters

other TwitterList

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.

GetMembersAsync(int, string?)

メンバーを取得します。

public Task<Result<User>> GetMembersAsync(int count = 20, string? cursor = null)

Parameters

count int
cursor string

Returns

Task<Result<User>>

GetSubscribersAsync(int, string?)

購読者を取得します。

public Task<Result<User>> GetSubscribersAsync(int count = 20, string? cursor = null)

Parameters

count int
cursor string

Returns

Task<Result<User>>

GetTweetsAsync(int, string?)

リストのツイートを取得します。

public Task<Result<Tweet>> GetTweetsAsync(int count = 20, string? cursor = null)

Parameters

count int
cursor string

Returns

Task<Result<Tweet>>

RemoveMemberAsync(string)

メンバーを削除します。

public Task<TwitterList> RemoveMemberAsync(string userId)

Parameters

userId string

Returns

Task<TwitterList>

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