mirror of
https://github.com/qaiu/netdisk-fast-download.git
synced 2026-11-28 16:17:00 +00:00
fix: implement MyData @DataObject constructor deserialization
Implement the MyData(JsonObject) constructor to deserialize `id` and `maxSize` fields from the provided JsonObject, replacing the empty TODO.
This commit is contained in:
1 parent
d06a80dc73
commit
741d7aa8ca
1 file changed
+2
-1
@@ -24,6 +24,7 @@ public class MyData implements Serializable {
|
||||
|
||||
|
||||
public MyData(JsonObject jsonObject) {
|
||||
// TODO
|
||||
this.id = jsonObject.getString("id");
|
||||
this.maxSize = jsonObject.getString("maxSize");
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user