public virtual void Update(TLChatFullBase chatFull) { this.BotInfo = chatFull.BotInfo; this.ChatPhoto = chatFull.ChatPhoto; this.ExportedInvite = chatFull.ExportedInvite; this.Id = chatFull.Id; this.NotifySettings = chatFull.NotifySettings; }
public override void Update(TLChatFullBase chatFull) { if (chatFull is TLChatFull chat) { this.Participants = chat.Participants; } base.Update(chatFull); }
public override void Update(TLChatFullBase chatFull) { if (chatFull is TLChannelFull channel) { this.Flags = channel.Flags; this.About = channel.About; this.ParticipantsCount = channel.ParticipantsCount; this.AdminsCount = channel.AdminsCount; this.KickedCount = channel.KickedCount; this.ReadInboxMaxId = channel.ReadInboxMaxId; this.ReadOutboxMaxId = channel.ReadOutboxMaxId; this.UnreadCount = channel.UnreadCount; this.MigratedFromChatId = channel.MigratedFromChatId; this.MigratedFromMaxId = channel.MigratedFromMaxId; this.PinnedMsgId = channel.PinnedMsgId; } base.Update(chatFull); }