mirror of
https://github.com/qaiu/netdisk-fast-download.git
synced 2026-06-11 16:07:27 +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:
@@ -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