Table of Contents

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>, IEnumerable

Inheritance

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

notifications IList<Notification>

The list of notifications to create the list from.

cursor string?

An optional pagination cursor.

priority bool?

A flag indicating whether the notification list is priority or not.

seenAt DateTimeOffset?

The date and time the list was seen at.

Exceptions

ArgumentNullException

Thrown when notifications is 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

notifications IList<Notification>

The list of notifications to create the list from.

cursor string?

An optional pagination cursor.

priority bool?

A flag indicating whether the notification list is priority or not.

seenAt DateTimeOffset?

The date and time the list was seen at.

Exceptions

ArgumentNullException

Thrown when notifications is 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

notifications IList<Notification>

The list of notifications to create the list from.

cursor string?

An optional pagination cursor.

priority bool?

A flag indicating whether the notification list is priority or not.

seenAt DateTimeOffset?

The date and time the list was seen at.

Exceptions

ArgumentNullException

Thrown when notifications is 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

DateTimeOffset?

SeenAt

The date when the view was generated.

[JsonInclude]
public DateTimeOffset? SeenAt { get; }

Property Value

DateTimeOffset?

SeenAt

The date when the view was generated.

[JsonInclude]
public DateTimeOffset? SeenAt { get; }

Property Value

DateTimeOffset?