package Ġcom . b unk alog ic . b unk alist . ViewModel Ċ Ċ import Ġandroid . app . Application Ċ import Ġandroidx . lifecycle . Android ViewModel Ċ import Ġcom . b unk alog ic . b unk alist . Ret rofit . Callback .* Ċ Ċ class ĠViewModel AP It mdb ( app : ĠApplication ) Ġ: ĠAndroid ViewModel ( app ) Ġ Ġ{ ĊĊĠĠĠ Ġprivate Ġval Ġsearch Repository : ĠRepository AP It mdb ĊĊĠĠĠ Ġinit Ġ{ ĊĠĠĠĠĠĠĠ Ġsearch Repository Ġ= ĠRepository AP It mdb () ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġfun Ġget Guest Session ( callback : ĠOn Get Guest Session Callback ){ ĊĠĠĠĠĠĠĠ Ġsearch Repository . get Guest Session ( callback ) ĊĠĠĠ Ġ} ĊĊĊĠĠĠ Ġfun Ġget Search All ( title : ĠString , Ġcallback : ĠOn Get Search Callback ){ ĊĠĠĠĠĠĠĠ Ġsearch Repository . getAll ( title , Ġcallback ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġfun Ġget Movie ( Id : ĠInt , Ġcallback : ĠOn Get Movie Callback ){ ĊĠĠĠĠĠĠĠ Ġsearch Repository . get Movie ( Id , Ġcallback ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġfun Ġget Series And An ime ( Id : ĠInt , Ġcallback : ĠOn Get Series Callback ){ ĊĠĠĠĠĠĠĠ Ġsearch Repository . get Series ( Id , Ġcallback ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġfun Ġget Movie Recommend ations ( Id : ĠInt , Ġcallback : ĠOn Get List Movies Callback ){ ĊĠĠĠĠĠĠĠ Ġsearch Repository . get Recommend ations Movies ( Id , Ġcallback ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġfun Ġget Series And An ime Recommend ations ( Id : ĠInt , Ġcallback : ĠOn Get List Series Callback ){ ĊĠĠĠĠĠĠĠ Ġsearch Repository . get Recommend ations Series ( Id , Ġcallback ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġfun Ġget Trail ers Movies ( Id : ĠInt , Ġcallback : ĠOn Get Trail ers Callback ){ ĊĠĠĠĠĠĠĠ Ġsearch Repository . get Tr ailer Movie ( Id , Ġcallback ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġfun Ġget Trail ers Series ( Id : ĠInt , Ġcallback : ĠOn Get Trail ers Callback ){ ĊĠĠĠĠĠĠĠ Ġsearch Repository . get Tr ailer Ser ie Or An ime ( Id , Ġcallback ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġfun Ġget Gen res Movies ( callback : ĠOn Get Gen res Callback ){ ĊĠĠĠĠĠĠĠ Ġsearch Repository . get Gen res Movies ( callback ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġfun Ġget Gen res Series ( callback : ĠOn Get Gen res Callback ){ ĊĠĠĠĠĠĠĠ Ġsearch Repository . get Gen res Series ( callback ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġfun Ġget Movies List ( page : ĠInt , ĠsortBy : ĠString , Ġcallback : ĠOn Get List Movies Callback ){ ĊĠĠĠĠĠĠĠ Ġsearch Repository . get Top s Movies ( page , ĠsortBy , Ġcallback ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġfun Ġget Series List ( page : ĠInt , ĠsortBy : ĠString , Ġcallback : ĠOn Get List Series Callback ){ ĊĠĠĠĠĠĠĠ Ġsearch Repository . get Top s Series ( page , ĠsortBy , Ġcallback ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġfun Ġget People Movies ( Id : ĠInt , Ġcallback : ĠOn Get People Callback ){ ĊĠĠĠĠĠĠĠ Ġsearch Repository . get People Movies ( Id , Ġcallback ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġfun Ġget People Series ( Id : ĠInt , Ġcallback : ĠOn Get People Callback ){ ĊĠĠĠĠĠĠĠ Ġsearch Repository . get People Series ( Id , Ġcallback ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġfun Ġget People Data ( Id : ĠInt , Ġcallback : ĠOn Get People Data Callback ){ ĊĠĠĠĠĠĠĠ Ġsearch Repository . get People Data ( Id , Ġcallback ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġfun Ġget People Data Cast ( Id : ĠInt , Ġcallback : ĠOn Get People Data Cast Callback ){ ĊĠĠĠĠĠĠĠ Ġsearch Repository . get People Data Cast ( Id , Ġcallback ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġfun Ġget People Social Media ( Id : ĠInt , Ġcallback : ĠOn Get People Social Media Callback ){ ĊĠĠĠĠĠĠĠ Ġsearch Repository . get People Social Media ( Id , Ġcallback ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġfun Ġget Movies Filters ( callback : ĠOn Get Movie List Filter Callback , Ġsort _ By : ĠString , Ġpage : ĠInt , Ġwith Gen res : ĠString , Ġyear : ĠInt ){ ĊĠĠĠĠĠĠĠ Ġsearch Repository . get Movies List Filter ( callback , Ġsort _ By , Ġpage , Ġwith Gen res , Ġyear ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġfun Ġget Series Filters ( callback : ĠOn Get Series List Filter Callback , Ġsort _ By : ĠString , Ġpage : ĠInt , Ġwith Gen res : ĠString , Ġyear : ĠInt ){ ĊĠĠĠĠĠĠĠ Ġsearch Repository . get Series List Filter ( callback , Ġsort _ By , Ġpage , Ġwith Gen res , Ġyear ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġfun Ġget Top s An ime ( callback : ĠOn Get Series List Filter Callback , Ġsort _ By : ĠString , Ġpage : ĠInt , Ġwith Gen res : ĠString , Ġyear : ĠInt , Ġvote _ count : ĠInt ){ ĊĠĠĠĠĠĠĠ Ġsearch Repository . get An ime Top s ( callback , Ġsort _ By , Ġpage , Ġwith Gen res , Ġyear , Ġvote _ count ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġfun Ġget Top s Series ( callback : ĠOn Get Series List Filter Callback , Ġsort _ By : ĠString , Ġpage : ĠInt , Ġwithout Gen res : ĠString , Ġvote _ count : ĠInt ){ ĊĠĠĠĠĠĠĠ Ġsearch Repository . get Series Top s ( callback , Ġsort _ By , Ġpage , Ġwithout Gen res , Ġvote _ count ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġfun Ġpost Movie ( movie Id : ĠInt , Ġvalue Rate : ĠDouble ){ ĊĠĠĠĠĠĠĠ Ġsearch Repository . post Rate Movie ( movie Id , Ġvalue Rate ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġfun Ġpost Series And An ime ( serie Id : ĠInt , Ġvalue Rate : ĠDouble ){ ĊĠĠĠĠĠĠĠ Ġsearch Repository . post Rate Series And An ime ( serie Id , Ġvalue Rate ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġfun Ġget Net w rok Tv ( net Id : ĠInt , Ġcallback : ĠOn Get Network TV Callback ){ ĊĠĠĠĠĠĠĠ Ġsearch Repository . get Network Series Tv ( net Id , Ġcallback ) ĊĠĠĠ Ġ} ĊĊĊĠĠĠ Ġfun Ġget Movie Similar ( Id : ĠInt , Ġcallback : ĠOn Get List Movies Callback ){ ĊĠĠĠĠĠĠĠ Ġsearch Repository . get Similar Movies ( Id , Ġcallback ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġfun Ġget Series And An ime Similar ( Id : ĠInt , Ġcallback : ĠOn Get List Series Callback ){ ĊĠĠĠĠĠĠĠ Ġsearch Repository . get Similar Series ( Id , Ġcallback ) ĊĠĠĠ Ġ} ĊĊĊĊĊĊĊĊ ĊĊ Ċ }