Exemplo n.º 1
0
        private static CheckUserInGroupWithAckMessage CreateCheckUserInGroupWithAckMessage(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 CheckUserInGroupWithAckMessage(userId, groupName, ackId);

            if (arrayLength >= 5)
            {
                result.ReadExtensionMembers(ref reader);
            }
            return(result);
        }
Exemplo n.º 2
0
 private static void WriteCheckUserInGroupWithAckMessage(ref MessagePackWriter writer, CheckUserInGroupWithAckMessage message)
 {
     writer.WriteArrayHeader(5);
     writer.Write(ServiceProtocolConstants.CheckUserInGroupWithAckMessageType);
     writer.Write(message.UserId);
     writer.Write(message.GroupName);
     writer.Write(message.AckId);
     message.WriteExtensionMembers(ref writer);
 }