package com.github.libretube import com.github.libretube.obj.Channel import retrofit2.http.GET import retrofit2.http.Path import retrofit2.http.Query import com.github.libretube.obj.StreamItem import com.github.libretube.obj.Streams import com.github.libretube.obj.SearchResult interface PipedApi { @GET("trending") suspend fun getTrending(@Query("region") region: String): List @GET("streams/{videoId}") suspend fun getStreams(@Path("videoId") videoId: String): Streams @GET("search") suspend fun getSearchResults( @Query("q") searchQuery: String, @Query("filter") filter: String ): SearchResult @GET("suggestions") suspend fun getSuggestions(@Query("query") query: String): List @GET("channel/{channelId}") suspend fun getChannel(@Path("channelId") channelId: String): Channel }