Пример #1
0
 public APIRequestTask AccessMissionRewardLogicAPI(int missionId)
 {
     GameWebAPI.MissionRewardLogic request = new GameWebAPI.MissionRewardLogic
     {
         SetSendData = delegate(GameWebAPI.ReqDataUS_MissionRewardLogic param)
         {
             param.missionId = new int[]
             {
                 missionId
             };
         },
         OnReceived = delegate(GameWebAPI.RespDataMS_MissionRewardLogic response)
         {
             this.MissionRewardLogicData = response;
         }
     };
     return(new APIRequestTask(request, true));
 }
Пример #2
0
 public APIRequestTask AccessMissionRewardLogicAPI(List <MissionItem> missionItem)
 {
     int[] missionIds = new int[missionItem.Count];
     for (int i = 0; i < missionItem.Count; i++)
     {
         missionIds[i] = missionItem[i].missionId;
     }
     GameWebAPI.MissionRewardLogic request = new GameWebAPI.MissionRewardLogic
     {
         SetSendData = delegate(GameWebAPI.ReqDataUS_MissionRewardLogic param)
         {
             param.missionId = missionIds;
         },
         OnReceived = delegate(GameWebAPI.RespDataMS_MissionRewardLogic response)
         {
             this.MissionRewardLogicData = response;
         }
     };
     return(new APIRequestTask(request, true));
 }