Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public class TrackPausedPayload {
public TrackPausedPayload(@NotNull final String userId,
@NotNull final String trackId,
final int position) {
Assert.isTrue(position > 0, "Position should be positive");
Assert.isTrue(position >= 0, "Position should be positive");
this.userId = userId;
this.trackId = trackId;
this.position = position;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ public TrackSeekPayload(@NotNull final String userId,
@NotNull final String trackId,
final int oldPosition,
final int newPosition) {
Assert.isTrue(oldPosition > 0, "Old position should be positive");
Assert.isTrue(newPosition > 0, "New position should be positive");
Assert.isTrue(oldPosition >= 0, "Old position should be positive");
Assert.isTrue(newPosition >= 0, "New position should be positive");
this.userId = userId;
this.trackId = trackId;
this.oldPosition = oldPosition;
Expand Down