2020-03-19 15:12:50 +08:00
|
|
|
|
using System;
|
2020-03-24 17:42:04 +08:00
|
|
|
|
using System.Threading.Tasks;
|
2020-03-19 15:12:50 +08:00
|
|
|
|
|
|
|
|
|
namespace LeanCloud.Realtime {
|
2020-04-24 15:38:10 +08:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// 系统对话
|
|
|
|
|
/// </summary>
|
2020-03-19 15:12:50 +08:00
|
|
|
|
public class LCIMServiceConversation : LCIMConversation {
|
|
|
|
|
public LCIMServiceConversation(LCIMClient client) : base(client) {
|
|
|
|
|
}
|
2020-04-24 15:38:10 +08:00
|
|
|
|
|
|
|
|
|
public async Task Subscribe() {
|
|
|
|
|
await Join();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public async Task Unsubscribe() {
|
|
|
|
|
await Quit();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public async Task<bool> CheckSubscription() {
|
|
|
|
|
return await Client.ConversationController.CheckSubscription(Id);
|
|
|
|
|
}
|
2020-03-19 15:12:50 +08:00
|
|
|
|
}
|
|
|
|
|
}
|