Exemple #1
0
 public override void OnPostProcessed(OnProcessedHandler args)
 {
     if (args.free_doPostSendUpgradeRequestOnHighPercent)
     {
         NiceApiLibrary.EMail.SendUpgradeRequestOnHighPercent(args.free_User, args.emailLog);
     }
 }
Exemple #2
0
        public override void OnProcessed(Data_AppUserFile user, OnProcessedHandler args)
        {
            if (args.updateCounters)
            {
                free.free_MsgQueued--;
                free.free_MsgSent++;
            }

            if (user.AccountStatus == Data_AppUserFile.eUserStatus.verified_welcome_queued)
            {
                free.free_WelcomeCounter--;
                if (free.free_WelcomeCounter == 0)
                {
                    user.AccountStatus = Data_AppUserFile.eUserStatus.free_account;
                }
            }

            if (user.AccountStatus == Data_AppUserFile.eUserStatus.free_account)
            {
                if (
                    (user.FreeAccount.free_MsgSent == 160) ||   // 80%
                    (user.FreeAccount.free_MsgSent == 180) ||   // 90%
                    (user.FreeAccount.free_MsgSent == 200))
                {
                    args.free_doPostSendUpgradeRequestOnHighPercent = true;
                    args.free_User = user;
                }
            }
        }
Exemple #3
0
        public static void PostProcess(Object args)
        {
            OnProcessedHandler args2 = CastArgsOrThrow(args);

            if (args2.checker != null)
            {
                args2.checker.OnPostProcessed(args2);
            }
        }
Exemple #4
0
        public static void OnProcessed(Data_AppUserFile user, Object args)
        {
            OnProcessedHandler args2 = CastArgsOrThrow(args);

            args2.checker = user.GetCheckerBase();
            if (args2.checker != null)
            {
                args2.checker.OnProcessed(user, args2);
            }
        }
Exemple #5
0
 public override void OnPostProcessed(OnProcessedHandler args)
 {
 }
Exemple #6
0
 public override void OnProcessed(Data_AppUserFile user, OnProcessedHandler args)
 {
 }
Exemple #7
0
 public abstract void OnPostProcessed(OnProcessedHandler args);
Exemple #8
0
 public abstract void OnProcessed(Data_AppUserFile user, OnProcessedHandler args);