mirror of
https://github.com/sochix/TLSharp.git
synced 2025-12-06 08:02:00 +01:00
40 lines
861 B
C#
40 lines
861 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.IO;
|
|
using TeleSharp.TL;
|
|
using TLSharp.Core.Utils;
|
|
|
|
namespace TLSharp.Core.Requests
|
|
{
|
|
public class PingRequest : TeleSharp.TL.TLMethod
|
|
{
|
|
public PingRequest()
|
|
{
|
|
}
|
|
|
|
public override void SerializeBody(BinaryWriter writer)
|
|
{
|
|
writer.Write(Constructor);
|
|
writer.Write(Helpers.GenerateRandomLong());
|
|
}
|
|
|
|
public override void DeserializeBody(BinaryReader reader)
|
|
{
|
|
throw new NotImplementedException();
|
|
}
|
|
|
|
public override void deserializeResponse(BinaryReader stream)
|
|
{
|
|
throw new NotImplementedException();
|
|
}
|
|
|
|
public override int Constructor
|
|
{
|
|
get
|
|
{
|
|
return 0x7abe77ec;
|
|
}
|
|
}
|
|
}
|
|
}
|