Table of Contents

Class BookmarkFolder

Namespace
Twikit
Assembly
Twikit.dll

ブックマークフォルダー。

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

Constructors

BookmarkFolder(Client, JsonObject)

public BookmarkFolder(Client client, JsonObject data)

Parameters

client Client
data JsonObject

Properties

Id

フォルダーの ID。

public string Id { get; }

Property Value

string

Media

アイコン画像の情報。

public JsonObject? Media { get; }

Property Value

JsonObject

Name

フォルダー名。

public string? Name { get; }

Property Value

string

Methods

AddAsync(string)

フォルダーにツイートを追加します。

public Task<HttpResponseMessage> AddAsync(string tweetId)

Parameters

tweetId string

Returns

Task<HttpResponseMessage>

DeleteAsync()

フォルダーを削除します。

public Task<HttpResponseMessage> DeleteAsync()

Returns

Task<HttpResponseMessage>

EditAsync(string)

フォルダー名を変更します。

public Task<BookmarkFolder> EditAsync(string name)

Parameters

name string

Returns

Task<BookmarkFolder>

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

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

public bool Equals(BookmarkFolder? other)

Parameters

other BookmarkFolder

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.

GetTweetsAsync(string?)

フォルダー内のツイートを取得します。

public Task<Result<Tweet>> GetTweetsAsync(string? cursor = null)

Parameters

cursor string

Returns

Task<Result<Tweet>>

ToString()

Returns a string that represents the current object.

public override string ToString()

Returns

string

A string that represents the current object.