|
|
@@ -0,0 +1,219 @@
|
|
|
+package com.yingyangfly.baselib.bean;
|
|
|
+
|
|
|
+import android.text.TextUtils;
|
|
|
+
|
|
|
+import java.io.Serializable;
|
|
|
+
|
|
|
+/**
|
|
|
+ * 游戏详情
|
|
|
+ */
|
|
|
+public class GameBean implements Serializable {
|
|
|
+
|
|
|
+ private String desn;
|
|
|
+ private String gameBackgroundImage;
|
|
|
+ private String gameCode;
|
|
|
+ private String gameCoverImage;
|
|
|
+ private String gameDifficulty;
|
|
|
+ private String gameDifficultyRate;
|
|
|
+ private String gameDuration;
|
|
|
+ private String gameId;
|
|
|
+ private String gameLevel;
|
|
|
+ private String gameMaxScore;
|
|
|
+ private String gameName;
|
|
|
+ private String gameTotalScore;
|
|
|
+ private String gameTotalTime;
|
|
|
+ private String gameType;
|
|
|
+ private String gameUrl;
|
|
|
+ private String gameVideoUrl;
|
|
|
+ private String patientId;
|
|
|
+ private String playClass;
|
|
|
+ private String totalNum;
|
|
|
+ private String gameInbetweenImage;
|
|
|
+ private String gameShortDesn;
|
|
|
+
|
|
|
+ public String getDesn() {
|
|
|
+ return desn;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setDesn(String desn) {
|
|
|
+ this.desn = desn;
|
|
|
+ }
|
|
|
+
|
|
|
+ public String getGameBackgroundImage() {
|
|
|
+ return gameBackgroundImage;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setGameBackgroundImage(String gameBackgroundImage) {
|
|
|
+ this.gameBackgroundImage = gameBackgroundImage;
|
|
|
+ }
|
|
|
+
|
|
|
+ public String getGameCode() {
|
|
|
+ return gameCode;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setGameCode(String gameCode) {
|
|
|
+ this.gameCode = gameCode;
|
|
|
+ }
|
|
|
+
|
|
|
+ public String getGameCoverImage() {
|
|
|
+ return gameCoverImage;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setGameCoverImage(String gameCoverImage) {
|
|
|
+ this.gameCoverImage = gameCoverImage;
|
|
|
+ }
|
|
|
+
|
|
|
+ public String getGameDifficulty() {
|
|
|
+ if (TextUtils.isEmpty(gameDifficulty)) {
|
|
|
+ return "";
|
|
|
+ }
|
|
|
+ return gameDifficulty;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setGameDifficulty(String gameDifficulty) {
|
|
|
+ this.gameDifficulty = gameDifficulty;
|
|
|
+ }
|
|
|
+
|
|
|
+ public String getGameDifficultyRate() {
|
|
|
+ return gameDifficultyRate;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setGameDifficultyRate(String gameDifficultyRate) {
|
|
|
+ this.gameDifficultyRate = gameDifficultyRate;
|
|
|
+ }
|
|
|
+
|
|
|
+ public String getGameDuration() {
|
|
|
+ if (!TextUtils.isEmpty(gameDuration)) {
|
|
|
+ long date = Long.parseLong(gameDuration);
|
|
|
+ Long time = date / 1000;
|
|
|
+ return String.valueOf(time);
|
|
|
+ }
|
|
|
+ return gameDuration;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setGameDuration(String gameDuration) {
|
|
|
+ this.gameDuration = gameDuration;
|
|
|
+ }
|
|
|
+
|
|
|
+ public String getGameId() {
|
|
|
+ return gameId;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setGameId(String gameId) {
|
|
|
+ this.gameId = gameId;
|
|
|
+ }
|
|
|
+
|
|
|
+ public String getGameLevel() {
|
|
|
+ return gameLevel;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setGameLevel(String gameLevel) {
|
|
|
+ this.gameLevel = gameLevel;
|
|
|
+ }
|
|
|
+
|
|
|
+ public String getGameMaxScore() {
|
|
|
+ return gameMaxScore;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setGameMaxScore(String gameMaxScore) {
|
|
|
+ this.gameMaxScore = gameMaxScore;
|
|
|
+ }
|
|
|
+
|
|
|
+ public String getGameName() {
|
|
|
+ return gameName;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setGameName(String gameName) {
|
|
|
+ this.gameName = gameName;
|
|
|
+ }
|
|
|
+
|
|
|
+ public String getGameTotalScore() {
|
|
|
+ return gameTotalScore;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setGameTotalScore(String gameTotalScore) {
|
|
|
+ this.gameTotalScore = gameTotalScore;
|
|
|
+ }
|
|
|
+
|
|
|
+ public String getGameTotalTime() {
|
|
|
+ return gameTotalTime;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setGameTotalTime(String gameTotalTime) {
|
|
|
+ this.gameTotalTime = gameTotalTime;
|
|
|
+ }
|
|
|
+
|
|
|
+ public String getGameType() {
|
|
|
+ return gameType;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setGameType(String gameType) {
|
|
|
+ this.gameType = gameType;
|
|
|
+ }
|
|
|
+
|
|
|
+ public String getGameUrl() {
|
|
|
+ return gameUrl;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setGameUrl(String gameUrl) {
|
|
|
+ this.gameUrl = gameUrl;
|
|
|
+ }
|
|
|
+
|
|
|
+ public String getGameVideoUrl() {
|
|
|
+ return gameVideoUrl;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setGameVideoUrl(String gameVideoUrl) {
|
|
|
+ this.gameVideoUrl = gameVideoUrl;
|
|
|
+ }
|
|
|
+
|
|
|
+ public String getPatientId() {
|
|
|
+ return patientId;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setPatientId(String patientId) {
|
|
|
+ this.patientId = patientId;
|
|
|
+ }
|
|
|
+
|
|
|
+ public String getPlayClass() {
|
|
|
+ return playClass;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setPlayClass(String playClass) {
|
|
|
+ this.playClass = playClass;
|
|
|
+ }
|
|
|
+
|
|
|
+ public String getTotalNum() {
|
|
|
+ return totalNum;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setTotalNum(String totalNum) {
|
|
|
+ this.totalNum = totalNum;
|
|
|
+ }
|
|
|
+
|
|
|
+ public String getGameInbetweenImage() {
|
|
|
+ return gameInbetweenImage;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setGameInbetweenImage(String gameInbetweenImage) {
|
|
|
+ this.gameInbetweenImage = gameInbetweenImage;
|
|
|
+ }
|
|
|
+
|
|
|
+ public String getGameShortDesn() {
|
|
|
+ return gameShortDesn;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setGameShortDesn(String gameShortDesn) {
|
|
|
+ this.gameShortDesn = gameShortDesn;
|
|
|
+ }
|
|
|
+
|
|
|
+ public String gameDifficultyInfo() {
|
|
|
+ if (TextUtils.equals("A", gameDifficulty)) {
|
|
|
+ return "简单";
|
|
|
+ } else if (TextUtils.equals("B", gameDifficulty)) {
|
|
|
+ return "中等";
|
|
|
+ } else {
|
|
|
+ return "困难";
|
|
|
+ }
|
|
|
+ }
|
|
|
+}
|