Esempio n. 1
0
    def read(data: BytesIO, *args: Any) -> "PQInnerDataTempDc":
        # No flags

        pq = Bytes.read(data)

        p = Bytes.read(data)

        q = Bytes.read(data)

        nonce = Int128.read(data)

        server_nonce = Int128.read(data)

        new_nonce = Int256.read(data)

        dc = Int.read(data)

        expires_in = Int.read(data)

        return PQInnerDataTempDc(pq=pq,
                                 p=p,
                                 q=q,
                                 nonce=nonce,
                                 server_nonce=server_nonce,
                                 new_nonce=new_nonce,
                                 dc=dc,
                                 expires_in=expires_in)
Esempio n. 2
0
    def read(data: BytesIO, *args: Any) -> "PQInnerData":
        # No flags

        pq = Bytes.read(data)

        p = Bytes.read(data)

        q = Bytes.read(data)

        nonce = Int128.read(data)

        server_nonce = Int128.read(data)

        new_nonce = Int256.read(data)

        return PQInnerData(pq=pq,
                           p=p,
                           q=q,
                           nonce=nonce,
                           server_nonce=server_nonce,
                           new_nonce=new_nonce)