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 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
val dubSubSelections: <Error class: unknown class><List<Pair<UiText?, DubStatus>>>
Link copied to clipboard
Link copied to clipboard
val episodes: <Error class: unknown class><Resource<List<ResultEpisode>>?>
Link copied to clipboard
val episodesCountText: <Error class: unknown class><UiText?>
Link copied to clipboard
val episodeSynopsis: <Error class: unknown class><String?>
Link copied to clipboard
val favoriteStatus: <Error class: unknown class><Boolean?>
Link copied to clipboard
val loadedLinks: <Error class: unknown class><LinkProgress?>
Link copied to clipboard
val movie: <Error class: unknown class><Resource<Pair<UiText, ResultEpisode>>?>
Link copied to clipboard
val page: <Error class: unknown class><Resource<ResultData>?>
Link copied to clipboard
val rangeSelections: <Error class: unknown class><List<Pair<UiText?, EpisodeRange>>>
Link copied to clipboard
val recommendations: <Error class: unknown class><List<SearchResponse>>
Link copied to clipboard
val resumeWatching: <Error class: unknown class><ResumeWatchingStatus?>
Link copied to clipboard
val seasonSelections: <Error class: unknown class><List<Pair<UiText?, Int>>>
Link copied to clipboard
val selectedDubStatus: <Error class: unknown class><UiText?>
Link copied to clipboard
val selectedDubStatusIndex: <Error class: unknown class><Int>
Link copied to clipboard
val selectedRange: <Error class: unknown class><UiText?>
Link copied to clipboard
val selectedRangeIndex: <Error class: unknown class><Int>
Link copied to clipboard
val selectedSeason: <Error class: unknown class><UiText?>
Link copied to clipboard
val selectedSeasonIndex: <Error class: unknown class><Int>
Link copied to clipboard
val selectPopup: <Error class: unknown class><SelectPopup?>
Link copied to clipboard
val subscribeStatus: <Error class: unknown class><Boolean?>
Link copied to clipboard
val trailers: <Error class: unknown class><List<ExtractedTrailerData>>
Link copied to clipboard
val watchStatus: <Error class: unknown class><WatchType>

Functions

Link copied to clipboard
open fun addCloseable(closeable: AutoCloseable)
fun addCloseable(key: String, closeable: AutoCloseable)
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
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(searchResponse: SearchResponse): Job
Link copied to clipboard
fun postPopup(text: UiText, options: List<UiText>, callback: suspend (Int?) -> Unit)
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)