Skip to content

Commit b79be02

Browse files
committed
Marked some DTO methods as being auxiliary methods to improve code generation
1 parent f931b4c commit b79be02

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

src/main/java/com/github/m0nk3y2k4/thetvdb/internal/api/impl/model/data/ImageDTO.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
2626
import com.github.m0nk3y2k4.thetvdb.api.model.data.Image;
2727
import com.github.m0nk3y2k4.thetvdb.internal.api.impl.annotation.WithHiddenImplementation;
28+
import org.immutables.value.Value.Auxiliary;
2829
import org.immutables.value.Value.Immutable;
2930

3031
/**
@@ -62,6 +63,7 @@ public Integer getRatingCount() {
6263
* @see #getRatingAverage()
6364
* @see #getRatingCount()
6465
*/
66+
@Auxiliary
6567
abstract Map<String, Object> getRatingsInfo();
6668

6769
@Override

src/main/java/com/github/m0nk3y2k4/thetvdb/internal/api/impl/model/data/MovieDTO.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@
3737
import com.github.m0nk3y2k4.thetvdb.api.model.data.Movie;
3838
import com.github.m0nk3y2k4.thetvdb.internal.api.impl.annotation.WithHiddenImplementation;
3939
import com.github.m0nk3y2k4.thetvdb.internal.util.APIUtil;
40+
import org.immutables.value.Value.Auxiliary;
4041
import org.immutables.value.Value.Immutable;
4142

4243
/**
@@ -103,6 +104,7 @@ public List<People> getWriters() {
103104
*
104105
* @return People from the JSON mapped by their corresponding category
105106
*/
107+
@Auxiliary
106108
abstract Map<PeopleCategory, List<People>> getPeople();
107109

108110
/**

0 commit comments

Comments
 (0)