Пример #1
0
        public override void Update(TLMessageActionBase newAction)
        {
            var action = newAction as TLMessageActionChatAddUser41;

            if (action != null)
            {
                Users = action.Users;
            }
        }
Пример #2
0
        public override void Update(TLMessageActionBase newAction)
        {
            var action = newAction as TLMessageActionChatDeleteUser;

            if (action != null)
            {
                UserId = action.UserId;
            }
        }
Пример #3
0
        public override void Update(TLMessageActionBase newAction)
        {
            var action = newAction as TLMessageActionChatEditTitle;

            if (action != null)
            {
                Title = action.Title;
            }
        }
Пример #4
0
        public override void Update(TLMessageActionBase newAction)
        {
            var action = newAction as TLMessageActionChannelJoined;

            if (action != null)
            {
                InviterId = action.InviterId;
            }
        }
Пример #5
0
        public override void Update(TLMessageActionBase newAction)
        {
            var action = newAction as TLMessageActionToggleComments;

            if (action != null)
            {
                Enabled = action.Enabled;
            }
        }
Пример #6
0
        public override void Update(TLMessageActionBase newAction)
        {
            var action = newAction as TLMessageActionChatCreate;

            if (action != null)
            {
                Title = action.Title;
                Users = action.Users;
            }
        }
Пример #7
0
        public override void Update(TLMessageActionBase action)
        {
            var actionGameScore = action as TLMessageActionGameScore;

            if (actionGameScore != null)
            {
                GameId = actionGameScore.GameId;
                Score  = actionGameScore.Score;
            }
        }
Пример #8
0
        public override void Update(TLMessageActionBase action)
        {
            var actionPaymentSent = action as TLMessageActionPaymentSent;

            if (actionPaymentSent != null)
            {
                Currency    = actionPaymentSent.Currency;
                TotalAmount = actionPaymentSent.TotalAmount;
            }
        }
Пример #9
0
        public override void Update(TLMessageActionBase action)
        {
            var actionPhoneCall = action as TLMessageActionPhoneCall;

            if (actionPhoneCall != null)
            {
                CallId   = actionPhoneCall.CallId;
                Reason   = actionPhoneCall.Reason;
                Duration = actionPhoneCall.Duration;
            }
        }
Пример #10
0
        public override void Update(TLMessageActionBase action)
        {
            var actionPaymentSentMe = action as TLMessageActionPaymentSentMe;

            if (actionPaymentSentMe != null)
            {
                Currency         = actionPaymentSentMe.Currency;
                TotalAmount      = actionPaymentSentMe.TotalAmount;
                Payload          = actionPaymentSentMe.Payload;
                Info             = actionPaymentSentMe.Info;
                ShippingOptionId = actionPaymentSentMe.ShippingOptionId;
                Charge           = actionPaymentSentMe.Charge;
            }
        }
Пример #11
0
        public override void Update(TLMessageActionBase newAction)
        {
            var action = newAction as TLMessageActionChatEditPhoto;

            if (action != null)
            {
                if (Photo != null)
                {
                    Photo.Update(action.Photo);
                }
                else
                {
                    Photo = action.Photo;
                }
            }
        }
Пример #12
0
 public override void Update(TLMessageActionBase newAction)
 {
 }
Пример #13
0
 public abstract void Update(TLMessageActionBase newAction);