Table of Contents

Class Notification

Namespace
Twikit
Assembly
Twikit.dll

通知。

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

Constructors

Notification(Client, JsonObject, Tweet?, User?)

public Notification(Client client, JsonObject data, Tweet? tweet, User? fromUser)

Parameters

client Client
data JsonObject
tweet Tweet
fromUser User

Properties

FromUser

通知を発生させたユーザー。

public User? FromUser { get; }

Property Value

User

Icon

アイコンの情報。

public JsonObject? Icon { get; }

Property Value

JsonObject

Id

通知の一意な ID。

public string Id { get; }

Property Value

string

Message

通知のメッセージ。

public string Message { get; }

Property Value

string

TimestampMs

通知のタイムスタンプ(ミリ秒)。

public long TimestampMs { get; }

Property Value

long

Tweet

関連するツイート。

public Tweet? Tweet { get; }

Property Value

Tweet

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

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

public bool Equals(Notification? other)

Parameters

other Notification

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.

ToString()

Returns a string that represents the current object.

public override string ToString()

Returns

string

A string that represents the current object.