Exemplo n.º 1
0
        public override TLObject FromBytes(byte[] bytes, ref int position)
        {
            bytes.ThrowExceptionIfIncorrect(ref position, Signature);

            Expires        = GetObject <TLInt>(bytes, ref position);
            TermsOfService = GetObject <TLTermsOfServiceBase>(bytes, ref position);

            return(this);
        }
Exemplo n.º 2
0
        public override TLObject FromBytes(byte[] bytes, ref int position)
        {
            bytes.ThrowExceptionIfIncorrect(ref position, Signature);

            Flags           = GetObject <TLInt>(bytes, ref position);
            Type            = GetObject <TLSentCodeTypeBase>(bytes, ref position);
            PhoneCodeHash   = GetObject <TLString>(bytes, ref position);
            NextType        = GetObject <TLCodeTypeBase>(Flags, (int)SentCodeFlags.NextType, null, bytes, ref position);
            SendCallTimeout = GetObject <TLInt>(Flags, (int)SentCodeFlags.Timeout, null, bytes, ref position);
            _termsOfService = GetObject <TLTermsOfServiceBase>(Flags, (int)SentCodeFlags.TermsOfService, null, bytes, ref position);

            return(this);
        }