Rename package and cleanup

This commit is contained in:
Maxopoly
2021-11-04 17:33:57 +01:00
parent 5295ec2b3b
commit bee1b6d71e
16 changed files with 355 additions and 337 deletions

View File

@ -0,0 +1,31 @@
package com.github.tcgdex;
import java.util.List;
import org.json.JSONObject;
/**
* Detailed info regarding a series, including which sets it includes
*
*/
public class SeriesInfo extends SeriesResume {
private final List<SetResume> sets;
SeriesInfo(JSONObject json) {
super(json);
this.sets = SetResume.parse(json.optJSONArray("sets"));
}
SeriesInfo(String id, String name, List<SetResume> sets) {
super(id, name);
this.sets = sets;
}
/**
* @return Resumes of the sets part of this series
*/
public List<SetResume> getSets() {
return sets;
}
}