diff --git a/Realtime/Realtime/Conversation/LCIMChatRoom.cs b/Realtime/Realtime/Conversation/LCIMChatRoom.cs
index 5b77f92..0ecccf1 100644
--- a/Realtime/Realtime/Conversation/LCIMChatRoom.cs
+++ b/Realtime/Realtime/Conversation/LCIMChatRoom.cs
@@ -32,5 +32,9 @@ namespace LeanCloud.Realtime {
public override Task Read() {
return Task.CompletedTask;
}
+
+ public override Task FetchReciptTimestamps() {
+ return Task.CompletedTask;
+ }
}
}
diff --git a/Realtime/Realtime/Conversation/LCIMConversation.cs b/Realtime/Realtime/Conversation/LCIMConversation.cs
index c2553d5..f74ace8 100644
--- a/Realtime/Realtime/Conversation/LCIMConversation.cs
+++ b/Realtime/Realtime/Conversation/LCIMConversation.cs
@@ -467,7 +467,7 @@ namespace LeanCloud.Realtime {
/// Fetches receipt timestamp.
///
///
- public async Task FetchReciptTimestamps() {
+ public virtual async Task FetchReciptTimestamps() {
await Client.ConversationController.FetchReciptTimestamp(Id);
}
diff --git a/Realtime/Realtime/Conversation/LCIMServiceConversation.cs b/Realtime/Realtime/Conversation/LCIMServiceConversation.cs
index b2159a6..d55a16f 100644
--- a/Realtime/Realtime/Conversation/LCIMServiceConversation.cs
+++ b/Realtime/Realtime/Conversation/LCIMServiceConversation.cs
@@ -17,5 +17,9 @@ namespace LeanCloud.Realtime {
public async Task CheckSubscription() {
return await Client.ConversationController.CheckSubscription(Id);
}
+
+ public override Task FetchReciptTimestamps() {
+ return Task.CompletedTask;
+ }
}
}
diff --git a/Realtime/Realtime/Message/LCIMMessage.cs b/Realtime/Realtime/Message/LCIMMessage.cs
index 4652845..85bdf01 100644
--- a/Realtime/Realtime/Message/LCIMMessage.cs
+++ b/Realtime/Realtime/Message/LCIMMessage.cs
@@ -120,8 +120,8 @@ namespace LeanCloud.Realtime {
///
/// Indicates whether this message is transient.
///
- public bool IsTransient {
- get; internal set;
+ internal bool IsTransient {
+ get; set;
}
internal LCIMMessage() {
diff --git a/Storage/Storage/LCQuery.cs b/Storage/Storage/LCQuery.cs
index 928bc1e..c9396f7 100644
--- a/Storage/Storage/LCQuery.cs
+++ b/Storage/Storage/LCQuery.cs
@@ -346,12 +346,13 @@ namespace LeanCloud.Storage {
return (int)ret["count"];
}
- public Task Get(string objectId) {
+ public async Task Get(string objectId) {
if (string.IsNullOrEmpty(objectId)) {
throw new ArgumentNullException(nameof(objectId));
}
- WhereEqualTo("objectId", objectId);
- return First();
+ string path = $"classes/{ClassName}/{objectId}";
+ Dictionary response = await LCApplication.HttpClient.Get>(path);
+ return DecodeLCObject(response);
}
public async Task> Find() {
@@ -361,9 +362,7 @@ namespace LeanCloud.Storage {
List