Ejemplo n.º 1
0
    public static void Release(OfferwallsLog log)
    {
        try
        {
            Offerwall Wall = TableHelper.SelectRows <Offerwall>(TableHelper.MakeDictionary("DisplayName", log.NetworkName))[0];

            //Credit
            OfferwallCrediter Crediter = new OfferwallCrediter(new Member(log.Username), Wall);
            Crediter.CreditMember(log.SentBalanceMoney, Wall);

            //Update log
            log.Status = OfferwallsLogStatus.CreditedByOfferwallPointsUnlocked;
            log.Save();
        }
        catch (Exception ex)
        {
            ErrorLogger.Log(ex);
        }
    }
Ejemplo n.º 2
0
 public static bool OfferwallShouldBeLocked(Money money, Member member, Offerwall Wall)
 {
     money = OfferwallCrediter.CalculatedAndConversion(money, member, Wall);
     return(PointsLockingManager.ShouldBeLocked(money, Wall.CreditAs, member, Wall.RequiresConversion));
 }