Exemple #1
0
 private void ShowFetchBoxResult(PajkResultList <PajkFetchBoxResult> result)
 {
     if (result.Content.Count > 0)
     {
         StringBuilder b = new StringBuilder();
         b.AppendLine("获取奖励:");
         for (int i = 0; i < result.Content[0].BoxGiftList.Length; i++)
         {
             b.AppendLine(result.Content[0].BoxGiftList[i].GiftName);
         }
         MsgBox.ShowInfo(b.ToString());
     }
 }
Exemple #2
0
 private void ShowZaEggResult(PajkResultList <PajkZaEggResult> result)
 {
     if (result.Content.Count > 0)
     {
         StringBuilder b = new StringBuilder();
         b.AppendLine("获取奖励:");
         for (int i = 0; i < result.Content[0].pockets.Count; i++)
         {
             var    rewardInfo = result.Content[0].pockets[i];
             string amount     = rewardInfo.RewardAmount.ToString();
             if (rewardInfo.RewardName == "健康金")
             {
                 amount = rewardInfo.RewardAmount * 0.01 + "";
             }
             b.AppendLine(rewardInfo.RewardName + " x" + amount);
         }
         MsgBox.ShowInfo(b.ToString());
     }
 }