Overview

Summary

ContactDonateImprint


4. DEVICE MODULE (UI prompt)



Module Entities (8)

EntityAliasModuleGlobal Schema
(1) AdImpressionAdImpressionUserModuleYouTubeCom
(2) DeviceDeviceDeviceModuleYouTubeCom
(3) UserUserUserModuleYouTubeCom
(4) UserFavoriteUserFavoriteDeviceModuleYouTubeCom
(5) UserSessionUserSessionDeviceModuleYouTubeCom
(6) VideoVideoVideoModuleYouTubeCom
(7) VideoViewVideoViewDeviceModuleYouTubeCom
(8) WatchHistoryWatchHistoryVideoModuleYouTubeCom

Module Interfaces (28)

Remote MethodLocal MethodModuleHTTP-MethodReferences
(1) /userfavorite/{id}updateUserFavoriteById(userfavorite)DeviceModulePUTUserFavorite
(2) /videoviewinsertVideoView(videoview)DeviceModulePOSTVideoView
(3) /device/{id}findDeviceById(id)DeviceModuleGETDevice
(4) /device/{id}deleteDeviceById(id)DeviceModuleDELETEDevice
(5) /devicefindAllDevice()DeviceModuleGETDevice
(6) /videoview/{id}deleteVideoViewById(id)DeviceModuleDELETEVideoView
(7) /videoview/device/{id}findAllVideoViewOfDevice(id)DeviceModuleGETDevice VideoView
(8) /usersessioninsertUserSession(usersession)DeviceModulePOSTUserSession
(9) /userfavoritefindAllUserFavorite()DeviceModuleGETUserFavorite
(10) /videoview/video/{id}findAllVideoViewOfVideo(id)DeviceModuleGETVideo VideoView
(11) /usersession/user/{id}findAllUserSessionOfUser(id)DeviceModuleGETUser UserSession
(12) /videoview/session/{id}findAllVideoViewOfSession(id)DeviceModuleGETUserSession VideoView
(13) /usersession/{id}deleteUserSessionById(id)DeviceModuleDELETEUserSession
(14) /userfavorite/{id}deleteUserFavoriteById(id)DeviceModuleDELETEUserFavorite
(15) /videoview/user/{id}findAllVideoViewOfUser(id)DeviceModuleGETUser VideoView
(16) /userfavorite/user/{id}findAllUserFavoriteOfUser(id)DeviceModuleGETUser UserFavorite
(17) /usersession/device/{id}findAllUserSessionOfDevice(id)DeviceModuleGETDevice UserSession
(18) /videoviewfindAllVideoView()DeviceModuleGETVideoView
(19) /device/{id}updateDeviceById(device)DeviceModulePUTDevice
(20) /usersession/{id}findUserSessionById(id)DeviceModuleGETUserSession
(21) /userfavorite/video/{id}findAllUserFavoriteOfVideo(id)DeviceModuleGETVideo UserFavorite
(22) /userfavorite/{id}findUserFavoriteById(id)DeviceModuleGETUserFavorite
(23) /deviceinsertDevice(device)DeviceModulePOSTDevice
(24) /videoview/{id}findVideoViewById(id)DeviceModuleGETVideoView
(25) /usersession/{id}updateUserSessionById(usersession)DeviceModulePUTUserSession
(26) /userfavoriteinsertUserFavorite(userfavorite)DeviceModulePOSTUserFavorite
(27) /usersessionfindAllUserSession()DeviceModuleGETUserSession
(28) /videoview/{id}updateVideoViewById(videoview)DeviceModulePUTVideoView






4.1 DEVICE


DeviceDeviceModuleYouTubeCom

Properties (5)

PropertyTypeEntityReferenceModule
(1) BrowserSTRINGDevice
(2) CreatedAtDATEDevice
(3) NameSTRINGDevice
(4) OsSTRINGDevice
(5) TypeSTRINGDevice





Example:

final Device device = (Device) invokeModule(DEVICE_MODULE + "/device/" + id, Device.class);
if (device != null) {
}
return device;


4.2 USER FAVORITE


UserFavoriteDeviceModuleYouTubeCom

Properties (3)

PropertyTypeEntityReferenceModule
(1) CreatedAtDATEUserFavorite
(2) UserLONGUserFavoriteUserUserModule
(3) VideoLONGUserFavoriteVideoVideoModule





Example:

final UserFavorite userfavorite = (UserFavorite) invokeModule(DEVICE_MODULE + "/userfavorite/" + id, UserFavorite.class);
if (userfavorite != null) {
    final Video video1 = (Video) invokeModule(VIDEO_MODULE + "/video/" + userfavorite.getVideo().getId(), Video.class);
    if (video1 != null) {
        final Category category2 = (Category) invokeModule(AD_MODULE + "/category/" + video1.getCategory().getId(), Category.class);
        if (category2 != null) {
        }
        final Channel channel3 = (Channel) invokeModule(CHANNEL_MODULE + "/channel/" + video1.getChannel().getId(), Channel.class);
        if (channel3 != null) {
            final User owneruser4 = (User) invokeModule(USER_MODULE + "/user/" + channel3.getOwnerUser().getId(), User.class);
            if (owneruser4 != null) {
            }
        }
    }
    final User user5 = (User) invokeModule(USER_MODULE + "/user/" + userfavorite.getUser().getId(), User.class);
    if (user5 != null) {
    }
}
return userfavorite;


4.3 USER SESSION


UserSessionDeviceModuleYouTubeCom

Properties (7)

PropertyTypeEntityReferenceModule
(1) CreatedAtDATEUserSession
(2) DeviceLONGUserSessionDeviceDeviceModule
(3) ExpiresAtDATEUserSession
(4) IpAddressSTRINGUserSession
(5) RevokedAtDATEUserSession
(6) UserLONGUserSessionUserUserModule
(7) UserAgentSTRINGUserSession





Example:

final UserSession usersession = (UserSession) invokeModule(DEVICE_MODULE + "/usersession/" + id, UserSession.class);
if (usersession != null) {
    final User user1 = (User) invokeModule(USER_MODULE + "/user/" + usersession.getUser().getId(), User.class);
    if (user1 != null) {
    }
    final Device device2 = (Device) invokeModule(DEVICE_MODULE + "/device/" + usersession.getDevice().getId(), Device.class);
    if (device2 != null) {
    }
}
return usersession;


4.4 VIDEO VIEW


VideoViewDeviceModuleYouTubeCom

Properties (9)

PropertyTypeEntityReferenceModule
(1) CountrySTRINGVideoView
(2) DeviceLONGVideoViewDeviceDeviceModule
(3) IsUniqueSessionBOOLVideoView
(4) ReferrerTypeSTRINGVideoView
(5) SessionLONGVideoViewUserSessionDeviceModule
(6) UserLONGVideoViewUserUserModule
(7) VideoLONGVideoViewVideoVideoModule
(8) WatchedAtDATEVideoView
(9) WatchTimeSecondsLONGVideoView





Example:

final VideoView videoview = (VideoView) invokeModule(DEVICE_MODULE + "/videoview/" + id, VideoView.class);
if (videoview != null) {
    final Device device1 = (Device) invokeModule(DEVICE_MODULE + "/device/" + videoview.getDevice().getId(), Device.class);
    if (device1 != null) {
    }
    final Video video2 = (Video) invokeModule(VIDEO_MODULE + "/video/" + videoview.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 UserSession session6 = (UserSession) invokeModule(DEVICE_MODULE + "/usersession/" + videoview.getSession().getId(), UserSession.class);
    if (session6 != null) {
        final User user7 = (User) invokeModule(USER_MODULE + "/user/" + session6.getUser().getId(), User.class);
        if (user7 != null) {
        }
        final Device device8 = (Device) invokeModule(DEVICE_MODULE + "/device/" + session6.getDevice().getId(), Device.class);
        if (device8 != null) {
        }
    }
    final User user9 = (User) invokeModule(USER_MODULE + "/user/" + videoview.getUser().getId(), User.class);
    if (user9 != null) {
    }
}
return videoview;


Overview

Summary

ContactDonateImprint