Preparing your design workspace

Loading the problem and your saved attempt…

Design a Profile Catalogue and Playback Model

Model a streaming catalogue and independent profile playback lifecycles,then add series and episodes.

Design Netflix-like catalogue browsing and playback using object-oriented principles.

For this exercise,assume known profile IDs and a read-only catalogue of movies. A client browses or looks up titles and starts,pauses,resumes,stops or reads playback for a profile. One profile has at most one active session,including a paused one.

A start when none exists creates a playing session; any start while one exists is rejected unchanged,even for the same title. Pause/resume with a session are idempotent; without one they fail. Stop removes an active session or succeeds unchanged when none exists. Unknown profiles or titles reject without mutation.

Each profile remains independent even when several select the same movie. Queries return read-only observations.

Design the objects,contracts and an interaction trace. No implementation code is required. For this exercise,assume sequential in-memory simulated playback; actual media delivery,accounts,billing,recommendations,watch progress,persistence and distributed infrastructure are outside scope.

For the follow-up,assume the immutable catalogue also contains series with explicitly ordered existing episode IDs. A series itself is not playable; starting it rejects unchanged. A selected episode uses the same playback lifecycle as a movie.

Explain how the model supports that distinction and how you test it,without adding auto-play or completion timing.