본문 바로가기

Playlist/Open API

TheMovie : ListResponse, Response

*/domain/content/api/response

 

TheMovieListResponse.java

import com.fasterxml.jackson.annotation.JsonProperty;

import java.util.List;

public record TheMovieListResponse(
        @JsonProperty("results")
        List<TheMovieResponse> results,

        @JsonProperty("page")
        int page,

        @JsonProperty("total_pages")
        int totalPages,

        @JsonProperty("total_results")
        int totalResults
) {
}

 

 


 

TheMovieResponse.java

import com.fasterxml.jackson.annotation.JsonProperty;

import java.util.List;

public record TheMovieResponse(
        @JsonProperty("id") Long apiId,
        @JsonProperty("title") String title,
        @JsonProperty("overview") String description,
        @JsonProperty("poster_path") String thumbnailUrl,
        @JsonProperty("genre_ids") List<Integer> genreIds
) {
}

'Playlist > Open API' 카테고리의 다른 글

TvSeries : ListResponse, Response  (0) 2025.12.17
Tag : ListResponse, Response  (0) 2025.12.17
TheSportMapper  (0) 2025.12.17
TmdbMapper  (0) 2025.12.17
TheSportHandler  (0) 2025.12.17