Table of Contents

Class Messages

Namespace
idunno.Bluesky.Chat
Assembly
idunno.Bluesky.dll

Implements a paged collection of messages from a direct message conversation.

public class Messages : PagedViewReadOnlyCollection<MessageViewBase>, IList<MessageViewBase>, ICollection<MessageViewBase>, IList, ICollection, IReadOnlyList<MessageViewBase>, IReadOnlyCollection<MessageViewBase>, IEnumerable<MessageViewBase>, IEnumerable

Inheritance

Implements

Inherited Members

Constructors

Messages()

Creates a new instance of idunno.Bluesky.Chat.Messages with an empty list and no cursor.

public Messages()

Messages(IList<MessageViewBase>, string?, IReadOnlyCollection<ProfileViewBasic>?)

Creates a new instance of idunno.Bluesky.Chat.Messages.

public Messages(IList<MessageViewBase> list, string? cursor = null, IReadOnlyCollection<ProfileViewBasic>? relatedProfiles = null)

Parameters

list IList<MessageViewBase>

The list of idunno.Bluesky.Chat.MessageViewBase to create this instance of idunno.Bluesky.Chat.Messages from.

cursor string?

An optional cursor for pagination.

relatedProfiles IReadOnlyCollection<ProfileViewBasic>?

An optional collection of the profiles of every member who authored or reacted to the messages in list, including those referred to by system messages.

Messages(ICollection<MessageViewBase>, string?, IReadOnlyCollection<ProfileViewBasic>?)

Creates a new instance of idunno.Bluesky.Chat.Messages.

public Messages(ICollection<MessageViewBase> collection, string? cursor = null, IReadOnlyCollection<ProfileViewBasic>? relatedProfiles = null)

Parameters

collection ICollection<MessageViewBase>

A collection of idunno.Bluesky.Chat.MessageViewBase to create this instance of idunno.Bluesky.Chat.Messages from.

cursor string?

An optional cursor for pagination.

relatedProfiles IReadOnlyCollection<ProfileViewBasic>?

An optional collection of the profiles of every member who authored or reacted to the messages in collection, including those referred to by system messages.

Messages()

Creates a new instance of idunno.Bluesky.Chat.Messages with an empty list and no cursor.

public Messages()

Messages(IList<MessageViewBase>, string?, IReadOnlyCollection<ProfileViewBasic>?)

Creates a new instance of idunno.Bluesky.Chat.Messages.

public Messages(IList<MessageViewBase> list, string? cursor = null, IReadOnlyCollection<ProfileViewBasic>? relatedProfiles = null)

Parameters

list IList<MessageViewBase>

The list of idunno.Bluesky.Chat.MessageViewBase to create this instance of idunno.Bluesky.Chat.Messages from.

cursor string?

An optional cursor for pagination.

relatedProfiles IReadOnlyCollection<ProfileViewBasic>?

An optional collection of the profiles of every member who authored or reacted to the messages in list, including those referred to by system messages.

Messages(ICollection<MessageViewBase>, string?, IReadOnlyCollection<ProfileViewBasic>?)

Creates a new instance of idunno.Bluesky.Chat.Messages.

public Messages(ICollection<MessageViewBase> collection, string? cursor = null, IReadOnlyCollection<ProfileViewBasic>? relatedProfiles = null)

Parameters

collection ICollection<MessageViewBase>

A collection of idunno.Bluesky.Chat.MessageViewBase to create this instance of idunno.Bluesky.Chat.Messages from.

cursor string?

An optional cursor for pagination.

relatedProfiles IReadOnlyCollection<ProfileViewBasic>?

An optional collection of the profiles of every member who authored or reacted to the messages in collection, including those referred to by system messages.

Messages()

Creates a new instance of idunno.Bluesky.Chat.Messages with an empty list and no cursor.

public Messages()

Messages(IList<MessageViewBase>, string?, IReadOnlyCollection<ProfileViewBasic>?)

Creates a new instance of idunno.Bluesky.Chat.Messages.

public Messages(IList<MessageViewBase> list, string? cursor = null, IReadOnlyCollection<ProfileViewBasic>? relatedProfiles = null)

Parameters

list IList<MessageViewBase>

The list of idunno.Bluesky.Chat.MessageViewBase to create this instance of idunno.Bluesky.Chat.Messages from.

cursor string?

An optional cursor for pagination.

relatedProfiles IReadOnlyCollection<ProfileViewBasic>?

An optional collection of the profiles of every member who authored or reacted to the messages in list, including those referred to by system messages.

Messages(ICollection<MessageViewBase>, string?, IReadOnlyCollection<ProfileViewBasic>?)

Creates a new instance of idunno.Bluesky.Chat.Messages.

public Messages(ICollection<MessageViewBase> collection, string? cursor = null, IReadOnlyCollection<ProfileViewBasic>? relatedProfiles = null)

Parameters

collection ICollection<MessageViewBase>

A collection of idunno.Bluesky.Chat.MessageViewBase to create this instance of idunno.Bluesky.Chat.Messages from.

cursor string?

An optional cursor for pagination.

relatedProfiles IReadOnlyCollection<ProfileViewBasic>?

An optional collection of the profiles of every member who authored or reacted to the messages in collection, including those referred to by system messages.

Properties

RelatedProfiles

Gets the profiles of every member who authored or reacted to the messages in this collection, including the members referred to by any system messages.

public IReadOnlyCollection<ProfileViewBasic> RelatedProfiles { get; }

Property Value

IReadOnlyCollection<ProfileViewBasic>

Remarks

A idunno.Bluesky.Chat.SystemMessageView refers to the users it concerns by idunno.AtProto.Did only, so this collection is the only source of those users' profiles. It is empty if the service did not return any related profiles.

The value supplied is copied, so later changes to the collection assigned are not reflected here.

RelatedProfiles

Gets the profiles of every member who authored or reacted to the messages in this collection, including the members referred to by any system messages.

public IReadOnlyCollection<ProfileViewBasic> RelatedProfiles { get; }

Property Value

IReadOnlyCollection<ProfileViewBasic>

Remarks

A idunno.Bluesky.Chat.SystemMessageView refers to the users it concerns by idunno.AtProto.Did only, so this collection is the only source of those users' profiles. It is empty if the service did not return any related profiles.

The value supplied is copied, so later changes to the collection assigned are not reflected here.

RelatedProfiles

Gets the profiles of every member who authored or reacted to the messages in this collection, including the members referred to by any system messages.

public IReadOnlyCollection<ProfileViewBasic> RelatedProfiles { get; }

Property Value

IReadOnlyCollection<ProfileViewBasic>

Remarks

A idunno.Bluesky.Chat.SystemMessageView refers to the users it concerns by idunno.AtProto.Did only, so this collection is the only source of those users' profiles. It is empty if the service did not return any related profiles.

The value supplied is copied, so later changes to the collection assigned are not reflected here.