public static LogonQueueUpdateRequest DeserializeLengthDelimited(Stream stream)
        {
            LogonQueueUpdateRequest logonQueueUpdateRequest = new LogonQueueUpdateRequest();

            LogonQueueUpdateRequest.DeserializeLengthDelimited(stream, logonQueueUpdateRequest);
            return(logonQueueUpdateRequest);
        }
        public static LogonQueueUpdateRequest DeserializeLengthDelimited(Stream stream, LogonQueueUpdateRequest instance)
        {
            long position = (long)ProtocolParser.ReadUInt32(stream);

            position += stream.Position;
            return(LogonQueueUpdateRequest.Deserialize(stream, instance, position));
        }
        public static LogonQueueUpdateRequest DeserializeLengthDelimited(Stream stream, LogonQueueUpdateRequest instance)
        {
            long num = (long)((ulong)ProtocolParser.ReadUInt32(stream));

            num += stream.get_Position();
            return(LogonQueueUpdateRequest.Deserialize(stream, instance, num));
        }
 public static void Serialize(Stream stream, LogonQueueUpdateRequest instance)
 {
     stream.WriteByte(8);
     ProtocolParser.WriteUInt32(stream, instance.Position);
     stream.WriteByte(16);
     ProtocolParser.WriteUInt64(stream, instance.EstimatedTime);
     stream.WriteByte(24);
     ProtocolParser.WriteUInt64(stream, instance.EtaDeviationInSec);
 }
 public static LogonQueueUpdateRequest Deserialize(Stream stream, LogonQueueUpdateRequest instance, long limit)
 {
     while (limit < 0L || stream.get_Position() < limit)
     {
         int num = stream.ReadByte();
         if (num == -1)
         {
             if (limit >= 0L)
             {
                 throw new EndOfStreamException();
             }
             return(instance);
         }
         else
         {
             int num2 = num;
             if (num2 != 8)
             {
                 if (num2 != 16)
                 {
                     if (num2 != 24)
                     {
                         Key  key   = ProtocolParser.ReadKey((byte)num, stream);
                         uint field = key.Field;
                         if (field == 0u)
                         {
                             throw new ProtocolBufferException("Invalid field id: 0, something went wrong in the stream");
                         }
                         ProtocolParser.SkipKey(stream, key);
                     }
                     else
                     {
                         instance.EtaDeviationInSec = ProtocolParser.ReadUInt64(stream);
                     }
                 }
                 else
                 {
                     instance.EstimatedTime = ProtocolParser.ReadUInt64(stream);
                 }
             }
             else
             {
                 instance.Position = ProtocolParser.ReadUInt32(stream);
             }
         }
     }
     if (stream.get_Position() == limit)
     {
         return(instance);
     }
     throw new ProtocolBufferException("Read past max limit");
 }
 public static LogonQueueUpdateRequest Deserialize(Stream stream, LogonQueueUpdateRequest instance, long limit)
 {
     while (true)
     {
         if (limit < (long)0 || stream.Position < limit)
         {
             int num = stream.ReadByte();
             if (num == -1)
             {
                 if (limit >= (long)0)
                 {
                     throw new EndOfStreamException();
                 }
                 break;
             }
             else if (num == 8)
             {
                 instance.Position = ProtocolParser.ReadUInt32(stream);
             }
             else if (num == 16)
             {
                 instance.EstimatedTime = ProtocolParser.ReadUInt64(stream);
             }
             else if (num == 24)
             {
                 instance.EtaDeviationInSec = ProtocolParser.ReadUInt64(stream);
             }
             else
             {
                 Key key = ProtocolParser.ReadKey((byte)num, stream);
                 if (key.Field == 0)
                 {
                     throw new ProtocolBufferException("Invalid field id: 0, something went wrong in the stream");
                 }
                 ProtocolParser.SkipKey(stream, key);
             }
         }
         else
         {
             if (stream.Position != limit)
             {
                 throw new ProtocolBufferException("Read past max limit");
             }
             break;
         }
     }
     return(instance);
 }
        public override bool Equals(object obj)
        {
            LogonQueueUpdateRequest logonQueueUpdateRequest = obj as LogonQueueUpdateRequest;

            if (logonQueueUpdateRequest == null)
            {
                return(false);
            }
            if (!this.Position.Equals(logonQueueUpdateRequest.Position))
            {
                return(false);
            }
            if (!this.EstimatedTime.Equals(logonQueueUpdateRequest.EstimatedTime))
            {
                return(false);
            }
            if (!this.EtaDeviationInSec.Equals(logonQueueUpdateRequest.EtaDeviationInSec))
            {
                return(false);
            }
            return(true);
        }
 public static LogonQueueUpdateRequest Deserialize(Stream stream, LogonQueueUpdateRequest instance)
 {
     return(LogonQueueUpdateRequest.Deserialize(stream, instance, (long)-1));
 }
 public void Deserialize(Stream stream)
 {
     LogonQueueUpdateRequest.Deserialize(stream, this);
 }
        public override bool Equals(object obj)
        {
            LogonQueueUpdateRequest logonQueueUpdateRequest = obj as LogonQueueUpdateRequest;

            return(logonQueueUpdateRequest != null && this.Position.Equals(logonQueueUpdateRequest.Position) && this.EstimatedTime.Equals(logonQueueUpdateRequest.EstimatedTime) && this.EtaDeviationInSec.Equals(logonQueueUpdateRequest.EtaDeviationInSec));
        }