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
clientClientdataJsonObjecttweetTweetfromUserUser
Properties
FromUser
通知を発生させたユーザー。
public User? FromUser { get; }
Property Value
Icon
アイコンの情報。
public JsonObject? Icon { get; }
Property Value
Id
通知の一意な ID。
public string Id { get; }
Property Value
Message
通知のメッセージ。
public string Message { get; }
Property Value
TimestampMs
通知のタイムスタンプ(ミリ秒)。
public long TimestampMs { get; }
Property Value
Tweet
関連するツイート。
public Tweet? Tweet { get; }
Property Value
Methods
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(Notification?)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(Notification? other)
Parameters
otherNotificationAn 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.
ToString()
Returns a string that represents the current object.
public override string ToString()
Returns
- string
A string that represents the current object.