@ Override public Optional < ? extends ResourceModel > generateResource ( ResourceModel resourceModel , Optional < EventModel > event ) { switch ( resourceModel . getResourceID ( ) ) { case BroadcasterAvailablePlaylists . RESOURCE_ID : return createBroadcasterAvailablePlaylists ( ) ; case BroadcasterPlaylist . RESOURCE_ID : return createBroadcasterPlaylist ( resourceModel ) ; default : return MusicResourceGenerator . super . generateResource ( resourceModel , event ) ; } }
generates the resources