Exemplo n.º 1
0
 /**
  * 领取签到奖励
  */
 public static void receiveSignInReward(int isMore, Action <Error, ReceiveSignInResult> action)
 {
     HttpUtil.Http.Get(URLManager.receiveSignInRewardUrl(isMore)).OnSuccess(result =>
     {
         if (result != null)
         {
             ReceiveSignInResult receiveSignInResult = JsonMapper.ToObject <ReceiveSignInResult>(result);
             action(null, receiveSignInResult);
         }
     }).OnFail(result =>
     {
         action(new Error(500, null), null);
     }).Go();
 }