All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.contentchef.callback.common.ContentChef.kt Maven / Gradle / Ivy

There is a newer version: 1.3.0
Show newest version
package io.contentchef.callback.common

import io.contentchef.common.request.OnlineContentRequestData
import io.contentchef.common.request.PreviewContentRequestData
import io.contentchef.common.request.SearchOnlineRequestData
import io.contentchef.common.request.SearchPreviewRequestData

/**
 * Exposes methods used to retrieve contents from ContentChef's backend
 */
interface ContentChef {

    /**
     * Using the [PreviewChannel] you can retrieve contents which are in in both stage and live state and even contents that are not visible in the current date
     * [previewApiKey] is the api key required for the [PreviewChannel]
     * [publishingChannel] chosen publishingChannel
     */
    fun getPreviewChannel(previewApiKey: String, publishingChannel: String): PreviewChannel

    /**
     * Using the [OnlineChannel] you can retrieve contents which are in live state and which are actually visible
     * [onlineApiKey] is the api key required for the [OnlineChannel]
     * [publishingChannel] chosen publishingChannel
     */
    fun getOnlineChannel(onlineApiKey: String, publishingChannel: String): OnlineChannel

}

typealias PreviewChannel = Channel
typealias OnlineChannel = Channel




© 2015 - 2025 Weber Informatics LLC | Privacy Policy