mirror of
https://github.com/qaiu/netdisk-fast-download.git
synced 2026-06-11 07:57:28 +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) {
|
public MyData(JsonObject jsonObject) {
|
||||||
// TODO
|
this.id = jsonObject.getString("id");
|
||||||
|
this.maxSize = jsonObject.getString("maxSize");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user