Table of Contents

Class GuestTweet

Namespace
Twikit.Guest
Assembly
Twikit.dll

ゲストクライアントで取得したツイート。

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

Constructors

GuestTweet(GuestClient, JsonObject, GuestUser?)

public GuestTweet(GuestClient client, JsonObject data, GuestUser? user = null)

Parameters

client GuestClient
data JsonObject
user GuestUser

Properties

BookmarkCount

public int BookmarkCount { get; }

Property Value

int

Bookmarked

public bool Bookmarked { get; }

Property Value

bool

CommunityNote

public BirdwatchNote? CommunityNote { get; }

Property Value

BirdwatchNote

CreatedAt

public string CreatedAt { get; }

Property Value

string

CreatedAtDatetime

public DateTimeOffset CreatedAtDatetime { get; }

Property Value

DateTimeOffset

Data

public JsonObject Data { get; }

Property Value

JsonObject

EditTweetIds

public List<string> EditTweetIds { get; }

Property Value

List<string>

EditableUntilMsecs

public long? EditableUntilMsecs { get; }

Property Value

long?

EditsRemaining

public int? EditsRemaining { get; }

Property Value

int?

FavoriteCount

public int FavoriteCount { get; }

Property Value

int

Favorited

public bool Favorited { get; }

Property Value

bool

FullText

public string FullText { get; }

Property Value

string

HasCard

public bool HasCard { get; }

Property Value

bool

HasCommunityNotes

public bool HasCommunityNotes { get; }

Property Value

bool

Hashtags

public List<string> Hashtags { get; }

Property Value

List<string>

Highlighted

投稿者の「ハイライト」タブに入っているか。GetUserHighlightsTweetsAsync(string, int, string?) で取得したツイートだけ true になり、 それ以外は null(X はタイムラインにこのフラグを含めません)。

public bool? Highlighted { get; }

Property Value

bool?

Id

public string Id { get; }

Property Value

string

InReplyTo

public string? InReplyTo { get; }

Property Value

string

IsEditEligible

public bool IsEditEligible { get; }

Property Value

bool

IsQuoteStatus

public bool IsQuoteStatus { get; }

Property Value

bool

IsTranslatable

public bool IsTranslatable { get; }

Property Value

bool

Lang

public string? Lang { get; }

Property Value

string

Media

添付メディア。

public List<Media> Media { get; }

Property Value

List<Media>

PlaceData

public JsonObject? PlaceData { get; }

Property Value

JsonObject

PollData

public JsonObject? PollData { get; }

Property Value

JsonObject

PossiblySensitive

public bool PossiblySensitive { get; }

Property Value

bool

PossiblySensitiveEditable

public bool PossiblySensitiveEditable { get; }

Property Value

bool

Quote

public GuestTweet? Quote { get; }

Property Value

GuestTweet

QuoteCount

public int QuoteCount { get; }

Property Value

int

RelatedTweets

public List<GuestTweet>? RelatedTweets { get; set; }

Property Value

List<GuestTweet>

ReplyCount

public int ReplyCount { get; }

Property Value

int

ReplyTo

public List<GuestTweet>? ReplyTo { get; set; }

Property Value

List<GuestTweet>

RetweetCount

public int RetweetCount { get; }

Property Value

int

RetweetedTweet

public GuestTweet? RetweetedTweet { get; }

Property Value

GuestTweet

Text

public string Text { get; }

Property Value

string

Thread

public List<GuestTweet>? Thread { get; set; }

Property Value

List<GuestTweet>

ThumbnailTitle

public string? ThumbnailTitle { get; }

Property Value

string

ThumbnailUrl

public string? ThumbnailUrl { get; }

Property Value

string

Urls

public List<UrlEntity> Urls { get; }

Property Value

List<UrlEntity>

User

public GuestUser? User { get; }

Property Value

GuestUser

ViewCount

public string? ViewCount { get; }

Property Value

string

ViewCountState

public string? ViewCountState { 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(GuestTweet?)

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

public bool Equals(GuestTweet? other)

Parameters

other GuestTweet

An object to compare with this object.

Returns

bool

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

FromData(GuestClient, JsonNode?)

タイムラインのエントリなどから GuestTweet を作ります。

public static GuestTweet? FromData(GuestClient client, JsonNode? data)

Parameters

client GuestClient
data JsonNode

Returns

GuestTweet

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.