public function getAccountStates($tvShow, $season, $episode)
    {
        if ($tvShow instanceof Tv) {
            $tvShow = $tvShow->getId();
        }

        if ($season instanceof Season) {
            $season = $season->getSeasonNumber();
        }

        if ($episode instanceof Tv\Episode) {
            $episode = $episode->getEpisodeNumber();
        }

        return $this->getFactory()->createAccountStates(
            $this->getApi()->getAccountStates($tvShow, $season, $episode)
        );
    }
public function getAccountStates($tvShow, $season, $episode)
    {
        if ($tvShow instanceof Tv) {
            $tvShow = $tvShow->getId();
        }

        if ($season instanceof Season) {
            $season = $season->getSeasonNumber();
        }

        if ($episode instanceof Tv\Episode) {
            $episode = $episode->getEpisodeNumber();
        }

        return $this->getFactory()->createAccountStates(
            $this->getApi()->getAccountStates($tvShow, $season, $episode)
        );
    }
public function getAccountStates ( $ tvShow , $ season , $ episode ) { if ( $ tvShow instanceof Tv ) { $ tvShow = $ tvShow -> getId ( ) ; } if ( $ season instanceof Season ) { $ season = $ season -> getSeasonNumber ( ) ; } if ( $ episode instanceof Tv \ Episode ) { $ episode = $ episode -> getEpisodeNumber ( ) ; } return $ this -> getFactory ( ) -> createAccountStates ( $ this -> getApi ( ) -> getAccountStates ( $ tvShow , $ season , $ episode ) ) ; }
This method lets users get the status of whether or not the TV show has been rated
or added to their favourite or watch lists.

A valid session id is required.

@param  mixed         $tvShow
@param  mixed         $season
@param  mixed         $episode
@return AccountStates
This method lets users get the status of whether or not the TV show has been rated or added to their favourite or watch lists .