Exemplo n.º 1
0
 GuiPopupDailyRewards.E_Status ModifyStatus(GuiPopupDailyRewards.E_Status status, DateTime date, PPIDailyRewards.Day day)
 {
     if (status != GuiPopupDailyRewards.E_Status.Current)
     {
         return(status);
     }
     if (date != CloudDateTime.UtcNow.Date)
     {
         return(status);
     }
     return(GuiPopupDailyRewards.E_Status.Gained);
 }
Exemplo n.º 2
0
        GuiPopupDailyRewards.E_Status ModifyStatus(GuiPopupDailyRewards.E_Status status, PPIDailyRewards.Day day)
        {
            switch (status)
            {
            case GuiPopupDailyRewards.E_Status.Current:
                return(day.Received == true ? GuiPopupDailyRewards.E_Status.Gained : GuiPopupDailyRewards.E_Status.Idle);

            case GuiPopupDailyRewards.E_Status.Gained:
                return(day.Received == true ? GuiPopupDailyRewards.E_Status.Gained : GuiPopupDailyRewards.E_Status.Missed);

            default:
                return(status);
            }
        }