// <auto-generated/>

namespace MyTelegram.Schema;


[TlObject(0x0949d9dc)]
public sealed class TFutureSalt : IFutureSalt
{
    public uint ConstructorId => 0x0949d9dc;
    public int ValidSince { get; set; }
    public int ValidUntil { get; set; }
    public long Salt { get; set; }

    public void ComputeFlag()
    {

    }

    public void Serialize(IBufferWriter<byte> writer)
    {
        ComputeFlag();
        writer.Write(ConstructorId);
        writer.Write(ValidSince);
        writer.Write(ValidUntil);
        writer.Write(Salt);
    }

    public void Deserialize(ref ReadOnlyMemory<byte> buffer)
    {
        ValidSince = buffer.ReadInt32();
        ValidUntil = buffer.ReadInt32();
        Salt = buffer.ReadInt64();
    }
}