Overview

Summary

ContactDonateImprint


Appendix E-18: WATCH HISTORY (UI prompt)


WatchHistoryProfileModuleAmazonPrimeVideo

Properties (8)

PropertyTypeEntityReferenceModule
(1) CompletedAtSTRINGWatchHistory
(2) EpisodeLONGWatchHistoryEpisodeEpisodeModule
(3) LastPositionSecondsLONGWatchHistory
(4) ProfileLONGWatchHistoryProfileProfileModule
(5) ProgressPercentSTRINGWatchHistory
(6) SeasonLONGWatchHistorySeasonSeasonModule
(7) StartedAtSTRINGWatchHistory
(8) TitleLONGWatchHistoryTitleTitleModule


Module Interfaces (9)

Remote MethodLocal MethodModuleHTTP-MethodReferences
(1) /watchhistory/{id}findWatchHistoryById(id)ProfileModuleGETWatchHistory
(2) /watchhistoryinsertWatchHistory(watchhistory)ProfileModulePOSTWatchHistory
(3) /watchhistory/{id}updateWatchHistoryById(watchhistory)ProfileModulePUTWatchHistory
(4) /watchhistoryfindAllWatchHistory()ProfileModuleGETWatchHistory
(5) /watchhistory/profile/{id}findAllWatchHistoryOfProfile(id)ProfileModuleGETProfile WatchHistory
(6) /watchhistory/episode/{id}findAllWatchHistoryOfEpisode(id)ProfileModuleGETEpisode WatchHistory
(7) /watchhistory/{id}deleteWatchHistoryById(id)ProfileModuleDELETEWatchHistory
(8) /watchhistory/title/{id}findAllWatchHistoryOfTitle(id)ProfileModuleGETTitle WatchHistory
(9) /watchhistory/season/{id}findAllWatchHistoryOfSeason(id)ProfileModuleGETSeason WatchHistory





Example:

final WatchHistory watchhistory = (WatchHistory) invokeModule(PROFILE_MODULE + "/watchhistory/" + id, WatchHistory.class);
if (watchhistory != null) {
    final Episode episode1 = (Episode) invokeModule(EPISODE_MODULE + "/episode/" + watchhistory.getEpisode().getId(), Episode.class);
    if (episode1 != null) {
        final Season season2 = (Season) invokeModule(SEASON_MODULE + "/season/" + episode1.getSeason().getId(), Season.class);
        if (season2 != null) {
            final Title title3 = (Title) invokeModule(TITLE_MODULE + "/title/" + season2.getTitle().getId(), Title.class);
            if (title3 != null) {
                final Country productioncountry4 = (Country) invokeModule(TITLE_MODULE + "/country/" + title3.getProductionCountry().getId(), Country.class);
                if (productioncountry4 != null) {
                }
                final Language originallanguage5 = (Language) invokeModule(LANGUAGE_MODULE + "/language/" + title3.getOriginalLanguage().getId(), Language.class);
                if (originallanguage5 != null) {
                }
            }
        }
        final Title title6 = (Title) invokeModule(TITLE_MODULE + "/title/" + episode1.getTitle().getId(), Title.class);
        if (title6 != null) {
            final Country productioncountry7 = (Country) invokeModule(TITLE_MODULE + "/country/" + title6.getProductionCountry().getId(), Country.class);
            if (productioncountry7 != null) {
            }
            final Language originallanguage8 = (Language) invokeModule(LANGUAGE_MODULE + "/language/" + title6.getOriginalLanguage().getId(), Language.class);
            if (originallanguage8 != null) {
            }
        }
    }
    final Profile profile9 = (Profile) invokeModule(PROFILE_MODULE + "/profile/" + watchhistory.getProfile().getId(), Profile.class);
    if (profile9 != null) {
        final User user10 = (User) invokeModule(USER_MODULE + "/user/" + profile9.getUser().getId(), User.class);
        if (user10 != null) {
            final Country country11 = (Country) invokeModule(TITLE_MODULE + "/country/" + user10.getCountry().getId(), Country.class);
            if (country11 != null) {
            }
        }
    }
    final Season season12 = (Season) invokeModule(SEASON_MODULE + "/season/" + watchhistory.getSeason().getId(), Season.class);
    if (season12 != null) {
        final Title title13 = (Title) invokeModule(TITLE_MODULE + "/title/" + season12.getTitle().getId(), Title.class);
        if (title13 != null) {
            final Country productioncountry14 = (Country) invokeModule(TITLE_MODULE + "/country/" + title13.getProductionCountry().getId(), Country.class);
            if (productioncountry14 != null) {
            }
            final Language originallanguage15 = (Language) invokeModule(LANGUAGE_MODULE + "/language/" + title13.getOriginalLanguage().getId(), Language.class);
            if (originallanguage15 != null) {
            }
        }
    }
    final Title title16 = (Title) invokeModule(TITLE_MODULE + "/title/" + watchhistory.getTitle().getId(), Title.class);
    if (title16 != null) {
        final Country productioncountry17 = (Country) invokeModule(TITLE_MODULE + "/country/" + title16.getProductionCountry().getId(), Country.class);
        if (productioncountry17 != null) {
        }
        final Language originallanguage18 = (Language) invokeModule(LANGUAGE_MODULE + "/language/" + title16.getOriginalLanguage().getId(), Language.class);
        if (originallanguage18 != null) {
        }
    }
}
return watchhistory;


Overview

Summary

ContactDonateImprint