Table of Contents

Interface IChatMessageCollection

Namespace
PnP.Core.Model.Me
Assembly
PnP.Core.dll
public interface IChatMessageCollection : IQueryable<IChatMessage>, IQueryable, IAsyncEnumerable<IChatMessage>, IDataModelCollectionLoad<IChatMessage>, IDataModelCollection<IChatMessage>, IEnumerable<IChatMessage>, IEnumerable, IDataModelParent, IDataModelWithContext, IRequestableCollection, ISupportModules<IChatMessageCollection>
Inherited Members
Extension Methods

Methods

Add(ChatMessageOptions)

Adds a new channel chat

IChatMessage Add(ChatMessageOptions options)

Parameters

options ChatMessageOptions

Full chat message options

Returns

IChatMessage

Add(string, ChatMessageContentType, string)

Adds a new channel chat

IChatMessage Add(string content, ChatMessageContentType contentType = ChatMessageContentType.Text, string subject = null)

Parameters

content string

Content of the message

contentType ChatMessageContentType

Message content type e.g. Text, Html

subject string

Message Subject

Returns

IChatMessage

AddAsync(ChatMessageOptions)

Adds a new channel chat message

Task<IChatMessage> AddAsync(ChatMessageOptions options)

Parameters

options ChatMessageOptions

Full chat message options

Returns

Task<IChatMessage>

AddAsync(string, ChatMessageContentType, string)

Adds a new channel chat message

Task<IChatMessage> AddAsync(string content, ChatMessageContentType contentType = ChatMessageContentType.Text, string subject = null)

Parameters

content string

Content of the message

contentType ChatMessageContentType

Message content type e.g. Text, Html

subject string

Message Subject

Returns

Task<IChatMessage>

AddBatch(ChatMessageOptions)

Adds a new channel chat message

IChatMessage AddBatch(ChatMessageOptions options)

Parameters

options ChatMessageOptions

Full chat message options

Returns

IChatMessage

Newly added channel chat message

AddBatch(Batch, ChatMessageOptions)

Adds a new channel chat message

IChatMessage AddBatch(Batch batch, ChatMessageOptions options)

Parameters

batch Batch

Batch the message is associated with

options ChatMessageOptions

Full chat message options

Returns

IChatMessage

Newly added channel chat message

AddBatch(Batch, string, ChatMessageContentType, string)

Adds a new channel chat message

IChatMessage AddBatch(Batch batch, string content, ChatMessageContentType contentType = ChatMessageContentType.Text, string subject = null)

Parameters

batch Batch

Batch the message is associated with

content string

Content of the message

contentType ChatMessageContentType

Message content type e.g. Text, Html

subject string

Message Subject

Returns

IChatMessage

Newly added channel chat message

AddBatch(string, ChatMessageContentType, string)

Adds a new channel chat message

IChatMessage AddBatch(string content, ChatMessageContentType contentType = ChatMessageContentType.Text, string subject = null)

Parameters

content string

Content of the message

contentType ChatMessageContentType

Message content type e.g. Text, Html

subject string

Message Subject

Returns

IChatMessage

Newly added channel chat message

AddBatchAsync(ChatMessageOptions)

Adds a new channel chat message

Task<IChatMessage> AddBatchAsync(ChatMessageOptions options)

Parameters

options ChatMessageOptions

Full chat message options

Returns

Task<IChatMessage>

Newly added channel chat message

AddBatchAsync(Batch, ChatMessageOptions)

Adds a new channel chat message

Task<IChatMessage> AddBatchAsync(Batch batch, ChatMessageOptions options)

Parameters

batch Batch

Batch the message is associated with

options ChatMessageOptions

Full chat message options

Returns

Task<IChatMessage>

Newly added channel chat message

AddBatchAsync(Batch, string, ChatMessageContentType, string)

Adds a new channel chat message

Task<IChatMessage> AddBatchAsync(Batch batch, string content, ChatMessageContentType contentType = ChatMessageContentType.Text, string subject = null)

Parameters

batch Batch

Batch the message is associated with

content string

Content of the message

contentType ChatMessageContentType

Message content type e.g. Text, Html

subject string

Message Subject

Returns

Task<IChatMessage>

Newly added channel chat message

AddBatchAsync(string, ChatMessageContentType, string)

Adds a new channel chat message

Task<IChatMessage> AddBatchAsync(string content, ChatMessageContentType contentType = ChatMessageContentType.Text, string subject = null)

Parameters

content string

Content of the message

contentType ChatMessageContentType

Message content type e.g. Text, Html

subject string

Message Subject

Returns

Task<IChatMessage>

Newly added channel chat message