public static void RequestTakeSevenDayReward(SevenDayRewardDataEx data)
 {
     if (data == null || data.Data == null || data.Info == null)
     {
         global::Debug.LogError(new object[]
         {
             "Data error"
         });
         return;
     }
     if (data.Data.TakeReward)
     {
         global::Debug.LogError(new object[]
         {
             "Reward taken."
         });
         return;
     }
     if (!data.IsComplete())
     {
         global::Debug.LogError(new object[]
         {
             "SevenDayReward has not Complete."
         });
         return;
     }
     MC2S_TakeSevenDayReward mC2S_TakeSevenDayReward = new MC2S_TakeSevenDayReward();
     mC2S_TakeSevenDayReward.ID = data.Data.ID;
     Globals.Instance.CliSession.Send(722, mC2S_TakeSevenDayReward);
 }
 private int GetSortWeight(SevenDayRewardDataEx data)
 {
     int result = 1000;
     if (data.IsComplete())
     {
         if (data.Data.TakeReward)
         {
             result = 0;
         }
         else
         {
             result = 1000000;
         }
     }
     return result;
 }