Пример #1
0
        // Token: 0x0600006A RID: 106 RVA: 0x00004534 File Offset: 0x00002734
        public override void Apply(User user, RealmData realmData)
        {
            if (realmData.TryFindTransaction(transaction.id, transaction.sender.id) == null)
            {
                realmData.transactions.Add(transaction);
            }

            if (user == transaction.receiver)
            {
                transaction.OnStartReceiver(realmData);
            }
        }
Пример #2
0
        public override void Apply(User user, RealmData realmData)
        {
            // If the transaction is with itself, the transaction may already be there
            if (realmData.TryFindTransaction(transaction.id, transaction.sender.id) == null)
            {
                realmData.transactions.Add(transaction);
            }

            if (user == transaction.receiver)
            {
                transaction.OnStartReceiver(realmData);
            }
        }