// <auto-generated/>
// ReSharper disable All

namespace MyTelegram.Schema.Help;

///<summary>
/// No changes were made to telegram's terms of service
/// See <a href="https://corefork.telegram.org/constructor/help.termsOfServiceUpdateEmpty" />
///</summary>
[TlObject(0xe3309f7f)]
public sealed class TTermsOfServiceUpdateEmpty : ITermsOfServiceUpdate,IEmpty
{
    public uint ConstructorId => 0xe3309f7f;
    ///<summary>
    /// New TOS updates will have to be queried using <a href="https://corefork.telegram.org/method/help.getTermsOfServiceUpdate">help.getTermsOfServiceUpdate</a> in <code>expires</code> seconds
    ///</summary>
    public int Expires { get; set; }

    public void ComputeFlag()
    {

    }

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

    public void Deserialize(ref ReadOnlyMemory<byte> buffer)
    {
        Expires = buffer.ReadInt32();
    }
}