csharp-sdk-upm/Realtime/Message/LCIMBinaryMessage.cs

22 lines
508 B
C#
Raw Normal View History

namespace LeanCloud.Realtime {
/// <summary>
/// 二进制消息
/// </summary>
public class LCIMBinaryMessage : LCIMMessage {
/// <summary>
/// 消息数据
/// </summary>
public byte[] Data {
get; internal set;
}
public LCIMBinaryMessage(byte[] data) {
Data = data;
}
2020-03-27 17:30:18 +08:00
internal static LCIMBinaryMessage Deserialize(byte[] bytes) {
return new LCIMBinaryMessage(bytes);
}
}
}