mirror of
https://github.com/sochix/TLSharp.git
synced 2025-12-06 08:02:00 +01:00
readonly
This commit is contained in:
parent
cc5a3d6bb9
commit
7005e11219
|
|
@ -10,7 +10,7 @@ namespace TLSharp.Core.MTProto.Crypto
|
||||||
{
|
{
|
||||||
private int validSince;
|
private int validSince;
|
||||||
private int validUntil;
|
private int validUntil;
|
||||||
private ulong salt;
|
private readonly ulong salt;
|
||||||
|
|
||||||
public Salt(int validSince, int validUntil, ulong salt)
|
public Salt(int validSince, int validUntil, ulong salt)
|
||||||
{
|
{
|
||||||
|
|
@ -61,8 +61,8 @@ namespace TLSharp.Core.MTProto.Crypto
|
||||||
|
|
||||||
public class GetFutureSaltsResponse
|
public class GetFutureSaltsResponse
|
||||||
{
|
{
|
||||||
private ulong requestId;
|
private readonly ulong requestId;
|
||||||
private int now;
|
private readonly int now;
|
||||||
private SaltCollection salts;
|
private SaltCollection salts;
|
||||||
|
|
||||||
public GetFutureSaltsResponse(ulong requestId, int now)
|
public GetFutureSaltsResponse(ulong requestId, int now)
|
||||||
|
|
|
||||||
|
|
@ -6,8 +6,8 @@ namespace TLSharp.Core.Network
|
||||||
{
|
{
|
||||||
public class MtProtoPlainSender
|
public class MtProtoPlainSender
|
||||||
{
|
{
|
||||||
private int sequence = 0;
|
private readonly int sequence = 0;
|
||||||
private int timeOffset;
|
private readonly int timeOffset;
|
||||||
private long lastMessageId;
|
private long lastMessageId;
|
||||||
private Random random;
|
private Random random;
|
||||||
private TcpTransport _transport;
|
private TcpTransport _transport;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue