using LeanCloud; using LeanCloud.Realtime.Internal; using LeanCloud.Storage.Internal; using System; using System.Collections.Generic; using System.Linq; using System.Reflection; using System.Text; using System.Threading.Tasks; namespace LeanCloud.Realtime { /// /// /// public interface IAVIMNotice { /// /// /// /// /// AVIMNotice Restore(IDictionary estimatedData); } /// /// 从服务端接受到的通知 /// 通知泛指消息,对话信息变更(例如加人和被踢等),服务器的 ACK,消息回执等 /// public class AVIMNotice : EventArgs { /// /// Initializes a new instance of the class. /// public AVIMNotice() { } /// /// The name of the command. /// public readonly string CommandName; public readonly IDictionary RawData; public AVIMNotice(IDictionary estimatedData) { this.RawData = estimatedData; this.CommandName = estimatedData["cmd"].ToString(); } public static bool IsValidLeanCloudProtocol(IDictionary estimatedData) { if (estimatedData == null) return false; if (estimatedData.Count == 0) return false; return true; } } }