feat: 라이브 30분 연속 청취시 트래킹 API 호출 기능 추가
This commit is contained in:
19
SodaLive/Sources/UserAction/UserActionRepository.swift
Normal file
19
SodaLive/Sources/UserAction/UserActionRepository.swift
Normal file
@@ -0,0 +1,19 @@
|
||||
//
|
||||
// UserActionRepository.swift
|
||||
// SodaLive
|
||||
//
|
||||
// Created by klaus on 5/17/25.
|
||||
//
|
||||
|
||||
import Foundation
|
||||
import CombineMoya
|
||||
import Combine
|
||||
import Moya
|
||||
|
||||
final class UserActionRepository {
|
||||
private let api = MoyaProvider<UserActionApi>()
|
||||
|
||||
func trackEvent(actionType: ActionType) -> AnyPublisher<Response, MoyaError> {
|
||||
return api.requestPublisher(.trackEvent(request: UserActionRequest(actionType: actionType)))
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user