Class NotificationCollection
- Namespace
- idunno.Bluesky.Notifications
- Assembly
- idunno.Bluesky.dll
Presents a list of notifications for the authenticated user.
public class NotificationCollection : PagedReadOnlyCollection<Notification>, IList<Notification>, ICollection<Notification>, IList, ICollection, IReadOnlyList<Notification>, IReadOnlyCollection<Notification>, IEnumerable<Notification>, IEnumerableInheritance
-
PagedReadOnlyCollection<Notification>
Implements
Inherited Members
-
PagedReadOnlyCollection<Notification>.Cursor
Constructors
NotificationCollection(IList<Notification>, string?, bool?, DateTimeOffset?)
Creates a new instance of idunno.Bluesky.Notifications.NotificationCollection.
[JsonConstructor]
public NotificationCollection(IList<Notification> notifications, string? cursor, bool? priority, DateTimeOffset? seenAt)Parameters
notificationsIList<Notification>-
The list of notifications to create the list from.
cursorstring?-
An optional pagination cursor.
prioritybool?-
A flag indicating whether the notification list is priority or not.
seenAtDateTimeOffset?-
The date and time the list was seen at.
Exceptions
- ArgumentNullException
-
Thrown when
notificationsis null.
NotificationCollection(IList<Notification>, string?, bool?, DateTimeOffset?)
Creates a new instance of idunno.Bluesky.Notifications.NotificationCollection.
[JsonConstructor]
public NotificationCollection(IList<Notification> notifications, string? cursor, bool? priority, DateTimeOffset? seenAt)Parameters
notificationsIList<Notification>-
The list of notifications to create the list from.
cursorstring?-
An optional pagination cursor.
prioritybool?-
A flag indicating whether the notification list is priority or not.
seenAtDateTimeOffset?-
The date and time the list was seen at.
Exceptions
- ArgumentNullException
-
Thrown when
notificationsis null.
NotificationCollection(IList<Notification>, string?, bool?, DateTimeOffset?)
Creates a new instance of idunno.Bluesky.Notifications.NotificationCollection.
[JsonConstructor]
public NotificationCollection(IList<Notification> notifications, string? cursor, bool? priority, DateTimeOffset? seenAt)Parameters
notificationsIList<Notification>-
The list of notifications to create the list from.
cursorstring?-
An optional pagination cursor.
prioritybool?-
A flag indicating whether the notification list is priority or not.
seenAtDateTimeOffset?-
The date and time the list was seen at.
Exceptions
- ArgumentNullException
-
Thrown when
notificationsis null.
Properties
Priority
A flag indicating whether a notification list is a priority list.
public bool? Priority { get; }Property Value
- bool?
Priority
A flag indicating whether a notification list is a priority list.
public bool? Priority { get; }Property Value
- bool?
Priority
A flag indicating whether a notification list is a priority list.
public bool? Priority { get; }Property Value
- bool?
SeenAt
The date when the view was generated.
[JsonInclude]
public DateTimeOffset? SeenAt { get; }Property Value
SeenAt
The date when the view was generated.
[JsonInclude]
public DateTimeOffset? SeenAt { get; }Property Value
SeenAt
The date when the view was generated.
[JsonInclude]
public DateTimeOffset? SeenAt { get; }