mirror of
https://github.com/sochix/TLSharp.git
synced 2025-12-06 08:02:00 +01:00
41 lines
1 KiB
C#
41 lines
1 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.IO;
|
|
using TeleSharp.TL;
|
|
|
|
namespace TLSharp.Core.Requests
|
|
{
|
|
public class AckRequest : TLMethod
|
|
{
|
|
private readonly List<ulong> _msgs;
|
|
|
|
public AckRequest(List<ulong> msgs)
|
|
{
|
|
_msgs = msgs;
|
|
}
|
|
|
|
public override bool Confirmed => false;
|
|
public override bool Responded { get; }
|
|
|
|
public override int Constructor => 0x62d6b459;
|
|
|
|
public override void SerializeBody(BinaryWriter writer)
|
|
{
|
|
writer.Write(0x62d6b459); // msgs_ack
|
|
writer.Write(0x1cb5c415); // Vector
|
|
writer.Write(_msgs.Count);
|
|
foreach (var messageId in _msgs)
|
|
writer.Write(messageId);
|
|
}
|
|
|
|
public override void DeserializeBody(BinaryReader reader)
|
|
{
|
|
throw new NotImplementedException();
|
|
}
|
|
|
|
public override void deserializeResponse(BinaryReader stream)
|
|
{
|
|
throw new NotImplementedException();
|
|
}
|
|
}
|
|
} |