-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
86 additions
and
6 deletions.
There are no files selected for viewing
51 changes: 51 additions & 0 deletions
51
...ist/src/main/java/com/yen/SpotifyPlayList/model/dto/GetRecommendationsWithFeatureDto.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,51 @@ | ||
package com.yen.SpotifyPlayList.model.dto; | ||
|
||
import com.neovisionaries.i18n.CountryCode; | ||
import lombok.Data; | ||
import lombok.ToString; | ||
|
||
/** | ||
* | ||
* { | ||
* acousticness: 0.359, | ||
* analysisUrl: "https://api.spotify.com/v1/audio-analysis/7FJC2pF6zMliU7Lvk0GBDV", | ||
* danceability: 0.337, | ||
* durationMs: 358587, | ||
* energy: 0.532, | ||
* id: "7FJC2pF6zMliU7Lvk0GBDV", | ||
* instrumentalness: 0, | ||
* key: 6, | ||
* liveness: 0.0827, | ||
* loudness: -6.296, | ||
* mode: "MAJOR", | ||
* speechiness: 0.0345, | ||
* tempo: 140.257, | ||
* timeSignature: 4, | ||
* trackHref: "https://api.spotify.com/v1/tracks/7FJC2pF6zMliU7Lvk0GBDV", | ||
* type: "AUDIO_FEATURES", | ||
* uri: "spotify:track:7FJC2pF6zMliU7Lvk0GBDV", | ||
* valence: 0.336 | ||
* }, | ||
* | ||
*/ | ||
|
||
@ToString | ||
@Data | ||
public class GetRecommendationsWithFeatureDto { | ||
|
||
private int amount = 10; | ||
private CountryCode market = CountryCode.JP; | ||
private int maxPopularity = 100; | ||
private int minPopularity = 0; | ||
private String seedArtistId; // e.g. : 0LcJLqbBmaGUft1e9Mm8HV | ||
private String seedGenres; | ||
private String seedTrack; // e.g. 01iyCAUm8EvOFqVWYJ3dVX | ||
private int targetPopularity = 50; | ||
private float danceability = 0; | ||
private float energy = 0; | ||
private float instrumentalness = 0; | ||
private float liveness = 0; | ||
private float loudness = 0; | ||
private float speechiness = 0; | ||
private float tempo = 0; | ||
} |
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