Пример #1
0
        private static CheckUserExistenceWithAckMessage CreateCheckUserExistenceWithAckMessage(ref MessagePackReader reader, int arrayLength)
        {
            var userId = ReadString(ref reader, "userId");
            var ackId  = ReadInt32(ref reader, "ackId");

            var result = new CheckUserExistenceWithAckMessage(userId, ackId);

            result.ReadExtensionMembers(ref reader);
            return(result);
        }
Пример #2
0
 private static void WriteCheckUserExistenceWithAckMessage(ref MessagePackWriter writer, CheckUserExistenceWithAckMessage message)
 {
     writer.WriteArrayHeader(4);
     writer.Write(ServiceProtocolConstants.CheckUserExistenceWithAckMessageType);
     writer.Write(message.UserId);
     writer.Write(message.AckId);
     message.WriteExtensionMembers(ref writer);
 }