package com.radiola.data.remote

import com.radiola.data.remote.dto.LrcLibLyricsDto
import retrofit2.http.GET
import retrofit2.http.Header
import retrofit2.http.Query

interface LrcLibApi {

    @GET("api/get")
    suspend fun get(
        @Header("User-Agent") userAgent: String = "radiOLA Android (https://radiorecord.ru)",
        @Query("artist_name") artistName: String,
        @Query("track_name") trackName: String,
        @Query("duration") durationSec: Int? = null
    ): LrcLibLyricsDto

    @GET("api/search")
    suspend fun search(
        @Header("User-Agent") userAgent: String = "radiOLA Android (https://radiorecord.ru)",
        @Query("artist_name") artistName: String,
        @Query("track_name") trackName: String
    ): List<LrcLibLyricsDto>
}
