feat: 메인 라이브

- 여러개로 나눠져 있던 API 하나로 병합
This commit is contained in:
Yu Sung
2025-07-22 03:03:47 +09:00
parent 5d0b23d10d
commit 33195e5c8e
6 changed files with 97 additions and 251 deletions

View File

@@ -132,4 +132,13 @@ final class LiveRepository {
func heartStatus(roomId: Int) -> AnyPublisher<Response, MoyaError> {
return api.requestPublisher(.heartStatus(roomId: roomId))
}
func getLiveMain() -> AnyPublisher<Response, MoyaError> {
return api.requestPublisher(
.getLiveMain(
isAdultContentVisible: UserDefaults.isAdultContentVisible(),
contentType: ContentType(rawValue: UserDefaults.string(forKey: .contentPreference)) ?? ContentType.ALL
)
)
}
}