Supplements: 'SerializedName'

This commit is contained in:
huangyuhui
2016-05-14 20:24:42 +08:00
parent ce721c2e09
commit 61a8ab5199
25 changed files with 215 additions and 18 deletions

View File

@@ -17,12 +17,17 @@
*/
package org.jackhuang.hellominecraft.svrmgr.util.version;
import com.google.gson.annotations.SerializedName;
/**
*
* @author huangyuhui
*/
public class MinecraftRemoteLatestVersion {
public String snapshot, release;
@SerializedName("snapshot")
public String snapshot;
@SerializedName("release")
public String release;
}

View File

@@ -17,12 +17,21 @@
*/
package org.jackhuang.hellominecraft.svrmgr.util.version;
import com.google.gson.annotations.SerializedName;
/**
*
* @author huangyuhui
*/
public class MinecraftRemoteVersion {
public String id, time, releaseTime, type;
@SerializedName("id")
public String id;
@SerializedName("time")
public String time;
@SerializedName("releaseTime")
public String releaseTime;
@SerializedName("type")
public String type;
}

View File

@@ -17,6 +17,7 @@
*/
package org.jackhuang.hellominecraft.svrmgr.util.version;
import com.google.gson.annotations.SerializedName;
import java.util.ArrayList;
/**
@@ -25,7 +26,9 @@ import java.util.ArrayList;
*/
public class MinecraftRemoteVersions {
@SerializedName("versions")
public ArrayList<MinecraftRemoteVersion> versions;
@SerializedName("latest")
public MinecraftRemoteLatestVersion latest;
}