package io.delphiplatform.api.util;

import io.delphiplatform.api.v3.rdb.entity.spotify.SpotifyChartTrackEntity;
import io.delphiplatform.api.v3.rdb.entity.spotify.SpotifyTrackId;

public class EntityUtils {

    public static SpotifyTrackId convert(SpotifyChartTrackEntity entity) {
        SpotifyTrackId spotifyTrackId = new SpotifyTrackId();
        spotifyTrackId.setSpotifyTrackId(entity.getSpotifyTrackId());
        spotifyTrackId.setSpotifyCountryId(entity.getSpotifyCountryId());

        return spotifyTrackId;
    }
}
