Skip to content

Commit

Permalink
openhab openhab#7278
Browse files Browse the repository at this point in the history
  • Loading branch information
memphi2 authored Jun 20, 2020
1 parent a7f6768 commit f74c737
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

import org.eclipse.jdt.annotation.NonNullByDefault;
import org.eclipse.smarthome.core.library.types.PlayPauseType;
import org.eclipse.smarthome.core.library.types.RewindFastforwardType;
import org.eclipse.smarthome.core.library.types.NextPreviousType;
import org.eclipse.smarthome.core.types.Command;
import org.eclipse.smarthome.core.types.RefreshType;
import org.openhab.binding.lgwebos.internal.handler.LGWebOSHandler;
Expand All @@ -40,12 +40,12 @@ public void onReceiveCommand(String channelId, LGWebOSHandler handler, Command c
handler.getSocket().play(getDefaultResponseListener());
} else if (PlayPauseType.PAUSE == command) {
handler.getSocket().pause(getDefaultResponseListener());
} else if (RewindFastforwardType.FASTFORWARD == command) {
} else if (NextPreviousType.NEXT == command) {
handler.getSocket().fastForward(getDefaultResponseListener());
} else if (RewindFastforwardType.REWIND == command) {
} else if (NextPreviousType.PREVIOUS == command) {
handler.getSocket().rewind(getDefaultResponseListener());
} else {
logger.info("Only accept PlayPauseType, RewindFastforwardType, RefreshType. Type was {}.",
logger.info("Only accept PlayPauseType, NextPreviousType, RefreshType. Type was {}.",
command.getClass());
}
}
Expand Down

0 comments on commit f74c737

Please sign in to comment.