TLSharp/TLSharp.Core/Network/Requests/AckRequest.cs
Andres G. Aragoneses 90f9305dd6 style: more consistent naming removing underscores
There were less places with underscores in field names than
places without them, so we now are consistent with the most
abundant occurrence.
2020-01-31 14:39:19 +08:00

51 lines
1.1 KiB
C#

using System;
using System.Collections.Generic;
using System.IO;
using TeleSharp.TL;
namespace TLSharp.Core.Network.Requests
{
public class AckRequest : TLMethod
{
private readonly List<ulong> msgs;
public AckRequest(List<ulong> msgs)
{
this.msgs = msgs;
}
public override void SerializeBody(BinaryWriter writer)
{
writer.Write(0x62d6b459); // msgs_ack
writer.Write(0x1cb5c415); // Vector
writer.Write(msgs.Count);
foreach (ulong messageId in msgs)
{
writer.Write(messageId);
}
}
public override void DeserializeBody(BinaryReader reader)
{
throw new NotImplementedException();
}
public override void DeserializeResponse(BinaryReader stream)
{
throw new NotImplementedException();
}
public override bool Confirmed => false;
public override bool Responded { get; }
public override int Constructor
{
get
{
return 0x62d6b459;
}
}
}
}