package kr.co.vividnext.sodalive.settings.event

import io.reactivex.rxjava3.core.Flowable
import io.reactivex.rxjava3.core.Single
import kr.co.vividnext.sodalive.common.ApiResponse
import retrofit2.http.GET
import retrofit2.http.Header
import retrofit2.http.Query

interface EventApi {
    @GET("/event")
    fun getEvents(
        @Query("page") page: Int,
        @Query("size") size: Int,
        @Header("Authorization") authHeader: String
    ): Flowable<ApiResponse<GetEventResponse>>

    @GET("/event/popup")
    fun getEventPopup(@Header("Authorization") authHeader: String): Single<ApiResponse<EventItem>>
}
