Overview

Summary

ContactDonateImprint


Appendix E-12: WATCH HISTORY (UI prompt)


WatchHistoryVideoModuleYouTubeCom

Properties (8)

PropertyTypeEntityReferenceModule
(1) DeviceLONGWatchHistoryDeviceDeviceModule
(2) IsAutoplayBOOLWatchHistory
(3) ProgressPercentDOUBLEWatchHistory
(4) SessionLONGWatchHistoryUserSessionDeviceModule
(5) UserLONGWatchHistoryUserUserModule
(6) VideoLONGWatchHistoryVideoVideoModule
(7) WatchedAtDATEWatchHistory
(8) WatchTimeSecondsLONGWatchHistory


Module Interfaces (9)

Remote MethodLocal MethodModuleHTTP-MethodReferences
(1) /watchhistory/session/{id}findAllWatchHistoryOfSession(id)VideoModuleGETUserSession WatchHistory
(2) /watchhistory/video/{id}findAllWatchHistoryOfVideo(id)VideoModuleGETVideo WatchHistory
(3) /watchhistoryfindAllWatchHistory()VideoModuleGETWatchHistory
(4) /watchhistory/user/{id}findAllWatchHistoryOfUser(id)VideoModuleGETUser WatchHistory
(5) /watchhistoryinsertWatchHistory(watchhistory)VideoModulePOSTWatchHistory
(6) /watchhistory/{id}findWatchHistoryById(id)VideoModuleGETWatchHistory
(7) /watchhistory/{id}deleteWatchHistoryById(id)VideoModuleDELETEWatchHistory
(8) /watchhistory/{id}updateWatchHistoryById(watchhistory)VideoModulePUTWatchHistory
(9) /watchhistory/device/{id}findAllWatchHistoryOfDevice(id)VideoModuleGETDevice WatchHistory





Example:

final WatchHistory watchhistory = (WatchHistory) invokeModule(VIDEO_MODULE + "/watchhistory/" + id, WatchHistory.class);
if (watchhistory != null) {
    final Device device1 = (Device) invokeModule(DEVICE_MODULE + "/device/" + watchhistory.getDevice().getId(), Device.class);
    if (device1 != null) {
    }
    final Video video2 = (Video) invokeModule(VIDEO_MODULE + "/video/" + watchhistory.getVideo().getId(), Video.class);
    if (video2 != null) {
        final Category category3 = (Category) invokeModule(AD_MODULE + "/category/" + video2.getCategory().getId(), Category.class);
        if (category3 != null) {
        }
        final Channel channel4 = (Channel) invokeModule(CHANNEL_MODULE + "/channel/" + video2.getChannel().getId(), Channel.class);
        if (channel4 != null) {
            final User owneruser5 = (User) invokeModule(USER_MODULE + "/user/" + channel4.getOwnerUser().getId(), User.class);
            if (owneruser5 != null) {
            }
        }
    }
    final User user6 = (User) invokeModule(USER_MODULE + "/user/" + watchhistory.getUser().getId(), User.class);
    if (user6 != null) {
    }
    final UserSession session7 = (UserSession) invokeModule(DEVICE_MODULE + "/usersession/" + watchhistory.getSession().getId(), UserSession.class);
    if (session7 != null) {
        final User user8 = (User) invokeModule(USER_MODULE + "/user/" + session7.getUser().getId(), User.class);
        if (user8 != null) {
        }
        final Device device9 = (Device) invokeModule(DEVICE_MODULE + "/device/" + session7.getDevice().getId(), Device.class);
        if (device9 != null) {
        }
    }
}
return watchhistory;


Overview

Summary

ContactDonateImprint