本文整理汇总了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);
}
}