diff options
author | Jesse Morgan <jesse@jesterpm.net> | 2014-07-01 07:22:43 -0700 |
---|---|---|
committer | Jesse Morgan <jesse@jesterpm.net> | 2014-07-01 07:22:43 -0700 |
commit | f71ebc516c3fe37a3512960615b18aecff9701d9 (patch) | |
tree | ac244fe4c3a56dad82444ffcda081fd0fed77e94 /src/com/p4square/grow/model/Chapter.java | |
parent | 14f334da61fd143405dd24bc97478578b2869164 (diff) |
Adding support for moving videos between chapters.
Also moved the Playlist related tests to their own class.
Diffstat (limited to 'src/com/p4square/grow/model/Chapter.java')
-rw-r--r-- | src/com/p4square/grow/model/Chapter.java | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/com/p4square/grow/model/Chapter.java b/src/com/p4square/grow/model/Chapter.java index 4d59983..7b6e27c 100644 --- a/src/com/p4square/grow/model/Chapter.java +++ b/src/com/p4square/grow/model/Chapter.java @@ -49,6 +49,14 @@ public class Chapter implements Cloneable { } /** + * Remove the VideoRecord for a video id. + * @param videoId The id to remove. + */ + public void removeVideoRecord(String videoId) { + mVideos.remove(videoId); + } + + /** * @return true if every required video has been completed. */ @JsonIgnore |