本文整理匯總了Java中logbook.gui.logic.CreateReportLogic.storeCreateMissionReport方法的典型用法代碼示例。如果您正苦於以下問題:Java CreateReportLogic.storeCreateMissionReport方法的具體用法?Java CreateReportLogic.storeCreateMissionReport怎麽用?Java CreateReportLogic.storeCreateMissionReport使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類logbook.gui.logic.CreateReportLogic
的用法示例。
在下文中一共展示了CreateReportLogic.storeCreateMissionReport方法的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: doMissionResult
import logbook.gui.logic.CreateReportLogic; //導入方法依賴的package包/類
/**
* 遠征(帰還)を更新します
*
* @param data
*/
private static void doMissionResult(Data data) {
try {
JsonObject apidata = data.getJsonObject().getJsonObject("api_data");
MissionResultDto result = new MissionResultDto();
int clearResult = apidata.getJsonNumber("api_clear_result").intValue();
result.setClearResult(clearResult);
result.setQuestName(apidata.getString("api_quest_name"));
if (clearResult != 0) {
JsonArray material = apidata.getJsonArray("api_get_material");
result.setFuel(material.getJsonNumber(0).toString());
result.setAmmo(material.getJsonNumber(1).toString());
result.setMetal(material.getJsonNumber(2).toString());
result.setBauxite(material.getJsonNumber(3).toString());
}
CreateReportLogic.storeCreateMissionReport(result);
missionResultList.add(result);
addConsole("遠征(帰還)情報を更新しました");
} catch (Exception e) {
LoggerHolder.LOG.warn("遠征(帰還)を更新しますに失敗しました", e);
LoggerHolder.LOG.warn(data);
}
}
示例2: doMissionResult
import logbook.gui.logic.CreateReportLogic; //導入方法依賴的package包/類
/**
* 遠征(帰還)を更新します
*
* @param data
*/
private static void doMissionResult(Data data) {
try {
JsonObject apidata = data.getJsonObject().getJsonObject("api_data");
MissionResultDto result = new MissionResultDto();
int clearResult = apidata.getJsonNumber("api_clear_result").intValue();
result.setClearResult(clearResult);
result.setQuestName(apidata.getString("api_quest_name"));
if (clearResult != 0) {
JsonArray material = apidata.getJsonArray("api_get_material");
result.setFuel(material.getJsonNumber(0).toString());
result.setAmmo(material.getJsonNumber(1).toString());
result.setMetal(material.getJsonNumber(2).toString());
result.setBauxite(material.getJsonNumber(3).toString());
}
CreateReportLogic.storeCreateMissionReport(result);
missionResultList.add(result);
addConsole("遠征(帰還)情報を更新しました");
} catch (Exception e) {
LOG.warn("遠征(帰還)を更新しますに失敗しました", e);
LOG.warn(data);
}
}
示例3: doMissionResult
import logbook.gui.logic.CreateReportLogic; //導入方法依賴的package包/類
/**
* 遠征(帰還)を更新します
*
* @param data
*/
private static void doMissionResult(Data data) {
try {
JsonObject apidata = data.getJsonObject().getJsonObject("api_data");
MissionResultDto result = new MissionResultDto();
int clearResult = apidata.getJsonNumber("api_clear_result").intValue();
result.setClearResult(clearResult);
result.setQuestName(apidata.getString("api_quest_name"));
if (clearResult != 0) {
JsonArray material = apidata.getJsonArray("api_get_material");
result.setFuel(material.getJsonNumber(0).toString());
result.setAmmo(material.getJsonNumber(1).toString());
result.setMetal(material.getJsonNumber(2).toString());
result.setBauxite(material.getJsonNumber(3).toString());
}
CreateReportLogic.storeCreateMissionReport(result);
missionResultList.add(result);
addConsole("Expedition result recieved");
} catch (Exception e) {
LOG.warn("Expedition result info update failed", e);
LOG.warn(data);
}
}