본문 바로가기

Playlist/Open API

TheSport : ListResponse, Response

*/domain/content/api/response

 

TheSportListResponse.java

import com.fasterxml.jackson.annotation.JsonProperty;

import java.util.List;

public record TheSportListResponse(
        @JsonProperty("events")
        List<TheSportResponse> events
) {
}

 

 


TheSportResponse.java

import com.fasterxml.jackson.annotation.JsonProperty;

public record TheSportResponse(
    @JsonProperty("idEvent") String idEvent, // id
    @JsonProperty("strEvent") String strEvent, // 이름
    @JsonProperty("strFilename") String strFilename, // 설명
    @JsonProperty("strSport") String strSport, // 태그
    @JsonProperty("strHomeTeam") String strHomeTeam, // 태그2
    @JsonProperty("strAwayTeam") String strAwayTeam, // 태그3
    @JsonProperty("dateEvent") String dateEvent,
    @JsonProperty("strPoster") String strPoster
) {
}

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

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