public override TLObject FromStream(Stream input) { UserId = GetObject <TLInt>(input); Mutual = GetObject <TLBool>(input); return(this); }
public override TLObject FromBytes(byte[] bytes, ref int position) { bytes.ThrowExceptionIfIncorrect(ref position, Signature); Enabled = GetObject <TLBool>(bytes, ref position); return(this); }
public override void Update(TLMessageActionBase newAction) { var action = newAction as TLMessageActionToggleComments; if (action != null) { Enabled = action.Enabled; } }
public static TLMessage36 GetMessage( TLInt fromId, TLPeerBase toId, MessageStatus status, TLBool outFlag, TLBool unreadFlag, TLInt date, TLString message, TLMessageMediaBase media, TLLong randomId, TLInt replyToMsgId) { #if LAYER_40 var m = new TLMessage40 { Flags = new TLInt(0), FromId = fromId, ToId = toId, _status = status, Out = outFlag, Unread = unreadFlag, _date = date, Message = message, _media = media, RandomId = randomId, ReplyToMsgId = replyToMsgId }; if (m.FromId != null) { m.SetFromId(); } if (m._media != null) { m.SetMedia(); } if (m.ReplyToMsgId != null) { m.SetReply(); } #else var m = new TLMessage36 { FromId = fromId, ToId = toId, _status = status, Out = outFlag, Unread = unreadFlag, _date = date, Message = message, _media = media, RandomId = randomId, ReplyToMsgId = replyToMsgId }; #endif return(m); }
public override TLObject FromStream(Stream input) { Hash = GetObject <TLString>(input); Salt = GetObject <TLString>(input); IsSimple = GetObject <TLBool>(input); CloseTime = GetObject <TLInt>(input); AutolockTimeout = GetObject <TLInt>(input); Locked = GetObject <TLBool>(input); return(this); }
public override TLObject FromBytes(byte[] bytes, ref int position) { bytes.ThrowExceptionIfIncorrect(ref position, Signature); Hash = GetObject <TLString>(bytes, ref position); Salt = GetObject <TLString>(bytes, ref position); IsSimple = GetObject <TLBool>(bytes, ref position); CloseTime = GetObject <TLInt>(bytes, ref position); AutolockTimeout = GetObject <TLInt>(bytes, ref position); Locked = GetObject <TLBool>(bytes, ref position); return(this); }
public override TLObject FromBytes(byte[] bytes, ref int position) { bytes.ThrowExceptionIfIncorrect(ref position, Signature); Hash = GetObject <TLString>(bytes, ref position); Packs = GetObject <TLVector <TLStickerPack> >(bytes, ref position); Sets = GetObject <TLVector <TLStickerSetBase> >(bytes, ref position); Documents = GetObject <TLVector <TLDocumentBase> >(bytes, ref position); ShowStickersTab = new TLBool(true); RecentlyUsed = new TLVector <TLRecentlyUsedSticker>(); Date = TLUtils.DateToUniversalTimeTLInt(0, DateTime.Now); return(this); }
public override TLObject FromStream(Stream input) { Enabled = GetObject <TLBool>(input); return(this); }
public override TLObject FromStream(Stream input) { NewValue = GetObject <TLBool>(input); return(this); }
public override TLObject FromStream(Stream input) { HasPhone = GetObject <TLBool>(input); return(this); }
public override TLObject FromStream(Stream input) { Contact = GetObject <TLBool>(input); return(this); }