package com.gh.gamecenter.minigame.wechat

import com.gh.gamecenter.entity.SubjectSettingEntity
import com.gh.gamecenter.feature.entity.GameEntity
import com.gh.gamecenter.subject.ISubjectListRepository
import io.reactivex.Observable
import io.reactivex.Single

class WGameSubjectCPMListRepository(
    private val dataSource: WGameSubjectCPMRemoteDataSource = WGameSubjectCPMRemoteDataSource()
) : ISubjectListRepository {

    override fun getColumn(
        column_id: String?,
        page: Int,
        sort: String?,
        order: String?,
        ad: String?,
        columnCollectionId: String?,
        minimumSize: Int,
        onlyFee: Boolean
    ): Single<MutableList<GameEntity>> {
        return dataSource.getEditorRecommendCPMList(page = page, minimumSize = minimumSize, onlyFee = onlyFee)
    }

    override fun getColumnSettings(column_id: String?): Observable<SubjectSettingEntity> {
        return Observable.just(SubjectSettingEntity())
    }

}