package com.adealink.weparty.network

import com.adealink.frame.base.Rlt
import com.adealink.frame.network.data.Res
import com.adealink.frame.network.socket.annotation.Uri
import com.google.gson.annotations.SerializedName
import retrofit2.http.Body

// TODO: 修改为http接口
interface PingSocketService {

    @Uri("PING")
    suspend fun ping(@Body req: PingReq): Rlt<Res<PingRes>>

}

data class PingReq(
    @SerializedName("userOnlineStatus") val status: Map<Int, String>,
    @SerializedName("supportRtc") val supportRtc: Byte
)

data class PingRes(
    @SerializedName("interval") val interval: Long,
    @SerializedName("inRoomId") val inRoomId: Long,
)