ResultViewModel2

Constructors

Link copied to clipboard
constructor()

Types

Link copied to clipboard
object Companion
Link copied to clipboard
data class EpisodeIndexer(val dubStatus: DubStatus, val season: Int)
Link copied to clipboard
data class ExternalApp(val packageString: String, val name: Int, val action: Int)
Link copied to clipboard
data class LoadResponseFromSearch(var name: String, var url: String, var apiName: String, var type: TvType, var posterUrl: String?, var year: Int? = null, var plot: String? = null, var rating: Int? = null, var tags: List<String>? = null, var duration: Int? = null, var trailers: MutableList<TrailerData> = mutableListOf(), var recommendations: List<SearchResponse>? = null, var actors: List<ActorData>? = null, var comingSoon: Boolean = false, var syncData: MutableMap<String, String> = mutableMapOf(), var posterHeaders: Map<String, String>? = null, var backgroundPosterUrl: String? = null, var contentRating: String? = null, val id: Int?) : LoadResponse

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val page: LiveData<Resource<ResultData>?>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun changeSeason(season: Int)
Link copied to clipboard
fun clear()
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun load(activity: Activity?, url: String, apiName: String, showFillers: Boolean, dubStatus: DubStatus, autostart: AutoResume?, loadTrailers: Boolean = true): Job
Link copied to clipboard
fun loadSmall(activity: Activity?, searchResponse: SearchResponse): Job
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun toggleFavoriteStatus(context: Context?, statusChangedCallback: (newStatus: Boolean?) -> Unit? = null)

Toggles the favorite status of an item.

Link copied to clipboard
fun toggleSubscriptionStatus(context: Context?, statusChangedCallback: (newStatus: Boolean?) -> Unit? = null)

Toggles the subscription status of an item.

Link copied to clipboard
fun updateWatchStatus(status: WatchType, context: Context?, loadResponse: LoadResponse? = null, statusChangedCallback: (statusChanged: Boolean) -> Unit? = null)