mirror of
https://github.com/tcgdex/java-sdk.git
synced 2025-06-22 15:49:18 +00:00
Rename package and cleanup
This commit is contained in:
31
src/main/java/com/github/tcgdex/SeriesInfo.java
Normal file
31
src/main/java/com/github/tcgdex/SeriesInfo.java
Normal 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;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user