Exemplo n.º 1
0
        private static UserLeaveGroupWithAckMessage CreateUserLeaveGroupWithAckMessage(ref MessagePackReader reader, int arrayLength)
        {
            var userId    = ReadString(ref reader, "userId");
            var groupName = ReadString(ref reader, "groupName");
            var ackId     = ReadInt32(ref reader, "ackId");

            var result = new UserLeaveGroupWithAckMessage(userId, groupName, ackId);

            result.ReadExtensionMembers(ref reader);
            return(result);
        }
Exemplo n.º 2
0
 private static void WriteUserLeaveGroupWithAckMessage(ref MessagePackWriter writer, UserLeaveGroupWithAckMessage message)
 {
     writer.WriteArrayHeader(5);
     writer.Write(ServiceProtocolConstants.UserLeaveGroupWithAckMessageType);
     writer.Write(message.UserId);
     writer.Write(message.GroupName);
     writer.Write(message.AckId);
     message.WriteExtensionMembers(ref writer);
 }