Skip to content

Commit

Permalink
migrated types for Track
Browse files Browse the repository at this point in the history
  • Loading branch information
yvasyliev committed Dec 29, 2023
1 parent 8a2b9de commit e5c6256
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/main/java/io/github/yvasyliev/deezer/objects/Track.java
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.net.URL;
import java.time.LocalDate;
import java.util.List;

Expand Down Expand Up @@ -65,13 +66,13 @@ public class Track extends ChartMember implements Pageable, BaseObject { //TODO:
* The url of the track on Deezer.
*/
@JsonProperty("link")
private String link;
private URL link;

/**
* The share link of the track on Deezer.
*/
@JsonProperty("share")
private String share;
private URL share;

/**
* The track's duration in seconds.
Expand Down Expand Up @@ -125,7 +126,7 @@ public class Track extends ChartMember implements Pageable, BaseObject { //TODO:
* The url of track's preview file. This file contains the first 30 seconds of the track.
*/
@JsonProperty("preview")
private String preview;
private URL preview;

/**
* Beats per minute.
Expand Down

0 comments on commit e5c6256

Please sign in to comment.