Fixed bug where @Expose was missing

@Expose is required for storing fields in the database.
This commit is contained in:
Tastybento 2018-04-16 11:06:20 -07:00
parent b6dc87bfc9
commit 5c3fbc465b

View File

@ -8,6 +8,8 @@ import java.util.HashSet;
import java.util.Map; import java.util.Map;
import java.util.Set; import java.util.Set;
import com.google.gson.annotations.Expose;
import us.tastybento.bskyblock.database.objects.DataObject; import us.tastybento.bskyblock.database.objects.DataObject;
/** /**
@ -17,12 +19,16 @@ import us.tastybento.bskyblock.database.objects.DataObject;
*/ */
public class PlayerData implements DataObject { public class PlayerData implements DataObject {
@Expose
private String uniqueId = ""; private String uniqueId = "";
/** /**
* Challenge map, where key = unique challenge name and Value = number of times completed * Challenge map, where key = unique challenge name and Value = number of times completed
*/ */
@Expose
private Map<String, Integer> challengeStatus = new HashMap<>(); private Map<String, Integer> challengeStatus = new HashMap<>();
@Expose
private Map<String, Long> challengesTimestamp = new HashMap<>(); private Map<String, Long> challengesTimestamp = new HashMap<>();
@Expose
private Set<String> levelsDone = new HashSet<>(); private Set<String> levelsDone = new HashSet<>();
// Required for bean instantiation // Required for bean instantiation