コード例 #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);