-
Notifications
You must be signed in to change notification settings - Fork 61
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #98 from UweTrottmann/tv-aggregate-credits
TvService: support aggregate credits
- Loading branch information
Showing
6 changed files
with
123 additions
and
7 deletions.
There are no files selected for viewing
16 changes: 16 additions & 0 deletions
16
src/main/java/com/uwetrottmann/tmdb2/entities/BaseTvCredit.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
package com.uwetrottmann.tmdb2.entities; | ||
|
||
public class BaseTvCredit { | ||
|
||
public Integer id; | ||
|
||
public Boolean adult; | ||
public Integer gender; | ||
public String known_for_department; | ||
public String name; | ||
public String original_name; | ||
public Double popularity; | ||
public String profile_path; | ||
public Integer total_episode_count; | ||
|
||
} |
16 changes: 16 additions & 0 deletions
16
src/main/java/com/uwetrottmann/tmdb2/entities/TvCastCredit.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
package com.uwetrottmann.tmdb2.entities; | ||
|
||
import java.util.List; | ||
|
||
public class TvCastCredit extends BaseTvCredit { | ||
|
||
public List<Role> roles; | ||
public Integer order; | ||
|
||
public static class Role { | ||
public String credit_id; | ||
public String character; | ||
public Integer episode_count; | ||
} | ||
|
||
} |
12 changes: 12 additions & 0 deletions
12
src/main/java/com/uwetrottmann/tmdb2/entities/TvCredits.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
package com.uwetrottmann.tmdb2.entities; | ||
|
||
import java.util.List; | ||
|
||
public class TvCredits { | ||
|
||
public Integer id; | ||
|
||
public List<TvCastCredit> cast; | ||
public List<TvCrewCredit> crew; | ||
|
||
} |
17 changes: 17 additions & 0 deletions
17
src/main/java/com/uwetrottmann/tmdb2/entities/TvCrewCredit.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
package com.uwetrottmann.tmdb2.entities; | ||
|
||
import java.util.List; | ||
|
||
public class TvCrewCredit extends BaseTvCredit { | ||
|
||
public List<Job> jobs; | ||
public String department; | ||
|
||
public static class Job { | ||
public String credit_id; | ||
public String job; | ||
public Integer episode_count; | ||
} | ||
|
||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters