Overview

Summary

ContactDonateImprint


Appendix E-3: STREAM EVENT (UI prompt)


StreamEventTrackModuleSpotify

Properties (8)

PropertyTypeEntityReferenceModule
(1) CountryLONGStreamEventCountryCountryModule
(2) DurationSecondsLONGStreamEvent
(3) IsCountedForRoyaltyBOOLStreamEvent
(4) PodcastEpisodeLONGStreamEventPodcastEpisodeTrackModule
(5) StartedAtDATEStreamEvent
(6) SubscriptionPlanLONGStreamEventSubscriptionPlanSubscriptionPlanModule
(7) TrackLONGStreamEventTrackTrackModule
(8) UserAccountLONGStreamEventUserAccountUserAccountModule


Module Interfaces (10)

Remote MethodLocal MethodModuleHTTP-MethodReferences
(1) /streamevent/{id}updateStreamEventById(streamevent)TrackModulePUTStreamEvent
(2) /streamevent/useraccount/{id}findAllStreamEventOfUserAccount(id)TrackModuleGETUserAccount StreamEvent
(3) /streamevent/country/{id}findAllStreamEventOfCountry(id)TrackModuleGETCountry StreamEvent
(4) /streamevent/track/{id}findAllStreamEventOfTrack(id)TrackModuleGETTrack StreamEvent
(5) /streameventfindAllStreamEvent()TrackModuleGETStreamEvent
(6) /streamevent/subscriptionplan/{id}findAllStreamEventOfSubscriptionPlan(id)TrackModuleGETSubscriptionPlan StreamEvent
(7) /streamevent/{id}findStreamEventById(id)TrackModuleGETStreamEvent
(8) /streamevent/{id}deleteStreamEventById(id)TrackModuleDELETEStreamEvent
(9) /streamevent/podcastepisode/{id}findAllStreamEventOfPodcastEpisode(id)TrackModuleGETPodcastEpisode StreamEvent
(10) /streameventinsertStreamEvent(streamevent)TrackModulePOSTStreamEvent





Example:

final StreamEvent streamevent = (StreamEvent) invokeModule(TRACK_MODULE + "/streamevent/" + id, StreamEvent.class);
if (streamevent != null) {
    final Track track1 = (Track) invokeModule(TRACK_MODULE + "/track/" + streamevent.getTrack().getId(), Track.class);
    if (track1 != null) {
        final Album album2 = (Album) invokeModule(TRACK_MODULE + "/album/" + track1.getAlbum().getId(), Album.class);
        if (album2 != null) {
            final Label label3 = (Label) invokeModule(COUNTRY_MODULE + "/label/" + album2.getLabel().getId(), Label.class);
            if (label3 != null) {
                final Country country4 = (Country) invokeModule(COUNTRY_MODULE + "/country/" + label3.getCountry().getId(), Country.class);
                if (country4 != null) {
                }
            }
        }
    }
    final PodcastEpisode podcastepisode5 = (PodcastEpisode) invokeModule(TRACK_MODULE + "/podcastepisode/" + streamevent.getPodcastEpisode().getId(), PodcastEpisode.class);
    if (podcastepisode5 != null) {
        final Podcast podcast6 = (Podcast) invokeModule(COMPANY_ENTITY_MODULE + "/podcast/" + podcastepisode5.getPodcast().getId(), Podcast.class);
        if (podcast6 != null) {
            final Country country7 = (Country) invokeModule(COUNTRY_MODULE + "/country/" + podcast6.getCountry().getId(), Country.class);
            if (country7 != null) {
            }
        }
    }
    final SubscriptionPlan subscriptionplan8 = (SubscriptionPlan) invokeModule(SUBSCRIPTION_PLAN_MODULE + "/subscriptionplan/" + streamevent.getSubscriptionPlan().getId(), SubscriptionPlan.class);
    if (subscriptionplan8 != null) {
    }
    final Country country9 = (Country) invokeModule(COUNTRY_MODULE + "/country/" + streamevent.getCountry().getId(), Country.class);
    if (country9 != null) {
    }
    final UserAccount useraccount10 = (UserAccount) invokeModule(USER_ACCOUNT_MODULE + "/useraccount/" + streamevent.getUserAccount().getId(), UserAccount.class);
    if (useraccount10 != null) {
        final Region region11 = (Region) invokeModule(USER_ACCOUNT_MODULE + "/region/" + useraccount10.getRegion().getId(), Region.class);
        if (region11 != null) {
        }
        final Country country12 = (Country) invokeModule(COUNTRY_MODULE + "/country/" + useraccount10.getCountry().getId(), Country.class);
        if (country12 != null) {
        }
    }
}
return streamevent;


Overview

Summary

ContactDonateImprint