Exemple #1
0
        protected void DonateProcess(List <Member> lists)
        {
            foreach (var item in lists)
            {
                if (_donatesFlag < int.Parse(item.donateid))
                {
                    _irc.Send(_channelName, _messageTemplate.Replace("{name}", item.name).Replace("{amount}", item.amount.ToString()).Replace("{msg}", item.msg).Replace("{paysource}", paymentServiceName));
                    //Log(item);
                    _donatesFlag = int.Parse(item.donateid);

                    Thread.Sleep(500);
                }
            }
        }
Exemple #2
0
        private void DonateProcess(List <Member> lists)
        {
            foreach (var item in lists)
            {
                if (_donatesFlag < item.DonateId)
                {
                    _irc.Send(_channelName, _messageTemplate.Replace("{name}", item.Name).Replace("{amount}", item.Amount.ToString()).Replace("{msg}", item.Msg));
                    //Log(item);
                    _donatesFlag = item.DonateId;

                    Thread.Sleep(500);
                }
            }
        }