Interface IMessageContainer
IMessageContainer represents a generic named collection of Messages, along with common client functionality and features. Group and Chat are two possible implementations of this interface.
Namespace: GroupMeClientApi.Models
Assembly: GroupMeClientApi.dll
Syntax
public interface IMessageContainer : IAvatarSource
Properties
| Improve this Doc View SourceClient
Gets the GroupMeClient that manages this collection.
Declaration
GroupMeClient Client { get; }
Property Value
| Type | Description |
|---|---|
| GroupMeClient |
CreatedAtTime
Gets the Date and Time when this collection was created.
Declaration
DateTime CreatedAtTime { get; }
Property Value
| Type | Description |
|---|---|
| DateTime |
Id
Gets a unique identfier for this IMessageContainer.
Declaration
string Id { get; }
Property Value
| Type | Description |
|---|---|
| String |
LatestMessage
Gets a copy of the latest message for preview purposes. Note that API Operations, like LikeMessage() cannot be performed. See Messages list instead for full message objects.
Declaration
Message LatestMessage { get; }
Property Value
| Type | Description |
|---|---|
| Message |
Messages
Gets a list of Messages in this collection.
Declaration
List<Message> Messages { get; }
Property Value
| Type | Description |
|---|---|
| List<Message> |
Name
Gets the display name.
Declaration
string Name { get; }
Property Value
| Type | Description |
|---|---|
| String |
ReadReceipt
Gets the latest Read Receipt for this collection.
Declaration
ReadReceipt ReadReceipt { get; }
Property Value
| Type | Description |
|---|---|
| ReadReceipt |
TotalMessageCount
Gets the total number of messages within this IMessageContainer.
Declaration
int TotalMessageCount { get; }
Property Value
| Type | Description |
|---|---|
| Int32 |
UpdatedAtTime
Gets the Date and Time when this collection was last updated.
Declaration
DateTime UpdatedAtTime { get; }
Property Value
| Type | Description |
|---|---|
| DateTime |
Methods
| Improve this Doc View SourceGetMaxMessagesAsync(MessageRetreiveMode, String)
Returns a set of messages from a this container in the largest possible block-size.
Declaration
Task<ICollection<Message>> GetMaxMessagesAsync(MessageRetreiveMode mode = MessageRetreiveMode.None, string messageId = "")
Parameters
| Type | Name | Description |
|---|---|---|
| MessageRetreiveMode | mode | The method that should be used to determine the set of messages returned. |
| String | messageId | The Message Id that will be used by the sorting mode set in |
Returns
| Type | Description |
|---|---|
| Task<ICollection<Message>> | A list of Message. |
GetMessagesAsync(MessageRetreiveMode, String)
Returns a set of messages from a this container.
Declaration
Task<ICollection<Message>> GetMessagesAsync(MessageRetreiveMode mode = MessageRetreiveMode.None, string messageId = "")
Parameters
| Type | Name | Description |
|---|---|---|
| MessageRetreiveMode | mode | The method that should be used to determine the set of messages returned. |
| String | messageId | The Message Id that will be used by the sorting mode set in |
Returns
| Type | Description |
|---|---|
| Task<ICollection<Message>> | A list of Message. |
SendMessage(Message)
Sends a new message to this IMessageContainer.
Declaration
Task<bool> SendMessage(Message message)
Parameters
| Type | Name | Description |
|---|---|---|
| Message | message | The message to send. |
Returns
| Type | Description |
|---|---|
| Task<Boolean> | A |
WhoAmI()
Returns the authenticated user who is accessing this collection.
Declaration
Member WhoAmI()
Returns
| Type | Description |
|---|---|
| Member | A Member. |