Telegram.MTProto.Components.UpdatesProcessor.ProcessUpdatesDifference C# (CSharp) Method

ProcessUpdatesDifference() private method

private ProcessUpdatesDifference ( List new_messages, List other_updates, List chats, List users, Updates_stateConstructor state ) : void
new_messages List
other_updates List
chats List
users List
state Updates_stateConstructor
return void
        private void ProcessUpdatesDifference(List<Message> new_messages, List<Update> other_updates, List<Chat> chats, List<User> users, Updates_stateConstructor state) {
            ProcessUsers(users);
            ProcessChats(chats);
            ProcessNewMessages(new_messages);
            ProcessUpdates(other_updates);

            lock(this) {
                logger.debug("saving new updates state: pts {0}, qts {1}, seq {2}, date {3}", state.pts, state.qts, state.seq, state.date);

                pts = state.pts;
                qts = state.qts;
                date = state.date;
                seq = state.seq;
                // TODO: unread count
            }
        }