chore
parent
33019501d2
commit
675afb4276
|
@ -179,7 +179,6 @@ namespace LeanCloud.Realtime {
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Mark the last message of this conversation as read.
|
/// Mark the last message of this conversation as read.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="message"></param>
|
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
public virtual async Task Read() {
|
public virtual async Task Read() {
|
||||||
if (LastMessage == null) {
|
if (LastMessage == null) {
|
||||||
|
@ -259,10 +258,13 @@ namespace LeanCloud.Realtime {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Sends a message in this conversation.
|
/// Sends a message in this conversation.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="message">The message to send.</param>
|
/// <param name="message">The message to send.</param>
|
||||||
|
/// <param name="options">The options of sending message.</param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
public async Task<LCIMMessage> Send(LCIMMessage message,
|
public async Task<LCIMMessage> Send(LCIMMessage message,
|
||||||
LCIMMessageSendOptions options = null) {
|
LCIMMessageSendOptions options = null) {
|
||||||
|
@ -456,7 +458,7 @@ namespace LeanCloud.Realtime {
|
||||||
public async Task<ReadOnlyCollection<LCIMMessage>> QueryMessages(LCIMMessageQueryEndpoint start = null,
|
public async Task<ReadOnlyCollection<LCIMMessage>> QueryMessages(LCIMMessageQueryEndpoint start = null,
|
||||||
LCIMMessageQueryEndpoint end = null,
|
LCIMMessageQueryEndpoint end = null,
|
||||||
LCIMMessageQueryDirection direction = LCIMMessageQueryDirection.NewToOld,
|
LCIMMessageQueryDirection direction = LCIMMessageQueryDirection.NewToOld,
|
||||||
int limit = 100,
|
int limit = 20,
|
||||||
int messageType = 0) {
|
int messageType = 0) {
|
||||||
return await Client.MessageController.QueryMessages(Id, start, end, direction, limit, messageType);
|
return await Client.MessageController.QueryMessages(Id, start, end, direction, limit, messageType);
|
||||||
}
|
}
|
||||||
|
|
|
@ -289,7 +289,7 @@ namespace LeanCloud.Realtime {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Retrieves the conversation
|
/// Retrieves the conversation.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="convId"></param>
|
/// <param name="convId"></param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
|
|
Loading…
Reference in New Issue