From b3d70f87452c4f17a9b2974f3ebe5206fc1130a6 Mon Sep 17 00:00:00 2001 From: Yahor Berdnikau Date: Thu, 22 Feb 2018 21:16:41 +0100 Subject: [PATCH] Convert Playlist domain enum to kotlin. Signed-off-by: Yahor Berdnikau --- .../moire/ultrasonic/domain/PlayerState.java | 35 ------------------- .../moire/ultrasonic/domain/PlayerState.kt | 12 +++++++ 2 files changed, 12 insertions(+), 35 deletions(-) delete mode 100644 ultrasonic/src/main/java/org/moire/ultrasonic/domain/PlayerState.java create mode 100644 ultrasonic/src/main/kotlin/org/moire/ultrasonic/domain/PlayerState.kt diff --git a/ultrasonic/src/main/java/org/moire/ultrasonic/domain/PlayerState.java b/ultrasonic/src/main/java/org/moire/ultrasonic/domain/PlayerState.java deleted file mode 100644 index 81f8179e..00000000 --- a/ultrasonic/src/main/java/org/moire/ultrasonic/domain/PlayerState.java +++ /dev/null @@ -1,35 +0,0 @@ -/* - This file is part of Subsonic. - - Subsonic is free software: you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation, either version 3 of the License, or - (at your option) any later version. - - Subsonic is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License - along with Subsonic. If not, see . - - Copyright 2009 (C) Sindre Mehus - */ -package org.moire.ultrasonic.domain; - -/** - * @author Sindre Mehus - * @version $Id$ - */ -public enum PlayerState -{ - IDLE, - DOWNLOADING, - PREPARING, - PREPARED, - STARTED, - STOPPED, - PAUSED, - COMPLETED -} diff --git a/ultrasonic/src/main/kotlin/org/moire/ultrasonic/domain/PlayerState.kt b/ultrasonic/src/main/kotlin/org/moire/ultrasonic/domain/PlayerState.kt new file mode 100644 index 00000000..7ae5dd66 --- /dev/null +++ b/ultrasonic/src/main/kotlin/org/moire/ultrasonic/domain/PlayerState.kt @@ -0,0 +1,12 @@ +package org.moire.ultrasonic.domain + +enum class PlayerState { + IDLE, + DOWNLOADING, + PREPARING, + PREPARED, + STARTED, + STOPPED, + PAUSED, + COMPLETED +}