should Fetch

abstract fun shouldFetch(data: fromDB): Boolean

method to define do we need to fetch data from API?

Return

true if fetch data and false if not

Parameters

data

data type from database

Sources

Link copied to clipboard