package com.github.ramonrabello.kiphy.trends

import com.github.ramonrabello.kiphy.data.model.Trending

/**
 * MVP contract for Giphy Trending API.
 */
interface TrendingContract {

    /**
     * View for Trending contract.
     */
    interface View {
        fun showProgress()
        fun hideProgress()
        fun showTrending(trending: Trending)
        fun showApikeyError()
        fun showTrendingError()
    }

    /**
     * Presenter for Trending contract.
     */
    interface Presenter {
        fun loadTrending()
        fun onTrendingClick(view:View)
    }
}
package com.github.ramonrabello.kiphy.trends

import com.github.ramonrabello.kiphy.trends.model.TrendingResponse

/**
 * MVP contract for Giphy Trending API.
 */
interface TrendingContract {

    /**
     * View for Trending contract.
     */
    interface View {
        fun showProgress()
        fun hideProgress()
        fun showTrending(trending: TrendingResponse)
        fun showApiKeyNotSetDialog()
        fun showTrendingError()
    }

    /**
     * Presenter for Trending contract.
     */
    interface Presenter {
        fun loadTrends()
    }
}
Refactor of method names for better readability.
Refactor of method names for better readability.

ramonrabello/Kiphy