@Test public void testRequestTurnOff() { assertEquals("invalid message", "*16*13*0##", requestTurnOff("0", Type.AMPLIFIER_GENERAL, Source.STEREO_CHANNEL).getValue()); assertEquals("invalid message", "*16*10*0##", requestTurnOff("0", Type.AMPLIFIER_GENERAL, Source.BASE_BAND).getValue()); assertEquals("invalid message", "*16*13*#0##", requestTurnOff("0", Type.AMPLIFIER_GROUP, Source.STEREO_CHANNEL).getValue()); assertEquals("invalid message", "*16*13*#9##", requestTurnOff("9", Type.AMPLIFIER_GROUP, Source.STEREO_CHANNEL).getValue()); assertEquals("invalid message", "*16*10*#0##", requestTurnOff("0", Type.AMPLIFIER_GROUP, Source.BASE_BAND).getValue()); assertEquals("invalid message", "*16*10*#9##", requestTurnOff("9", Type.AMPLIFIER_GROUP, Source.BASE_BAND).getValue()); assertEquals("invalid message", "*16*13*01##", requestTurnOff("01", Type.AMPLIFIER_P2P, Source.STEREO_CHANNEL).getValue()); assertEquals("invalid message", "*16*13*09##", requestTurnOff("09", Type.AMPLIFIER_P2P, Source.STEREO_CHANNEL).getValue()); assertEquals("invalid message", "*16*13*99##", requestTurnOff("99", Type.AMPLIFIER_P2P, Source.STEREO_CHANNEL).getValue()); assertEquals("invalid message", "*16*10*01##", requestTurnOff("01", Type.AMPLIFIER_P2P, Source.BASE_BAND).getValue()); assertEquals("invalid message", "*16*10*09##", requestTurnOff("09", Type.AMPLIFIER_P2P, Source.BASE_BAND).getValue()); assertEquals("invalid message", "*16*10*99##", requestTurnOff("99", Type.AMPLIFIER_P2P, Source.BASE_BAND).getValue()); assertEquals("invalid message", "*16*13*100##", requestTurnOff("100", Type.SOURCE_GENERAL, Source.STEREO_CHANNEL).getValue()); assertEquals("invalid message", "*16*10*100##", requestTurnOff("100", Type.SOURCE_GENERAL, Source.BASE_BAND).getValue()); assertEquals("invalid message", "*16*13*101##", requestTurnOff("101", Type.SOURCE_P2P, Source.STEREO_CHANNEL).getValue()); assertEquals("invalid message", "*16*13*109##", requestTurnOff("109", Type.SOURCE_P2P, Source.STEREO_CHANNEL).getValue()); assertEquals("invalid message", "*16*10*101##", requestTurnOff("101", Type.SOURCE_P2P, Source.BASE_BAND).getValue()); assertEquals("invalid message", "*16*10*109##", requestTurnOff("109", Type.SOURCE_P2P, Source.BASE_BAND).getValue()); }
public static SoundSystem requestTurnOff(String where, Type type, Source source) { return buildRequest(where, type, source, OFF_SOURCE_BASE_BAND, OFF_SOURCE_STEREO_CHANNEL); }
SoundSystem extends BaseOpenMessage { public static SoundSystem requestTurnOff(String where, Type type, Source source) { return buildRequest(where, type, source, OFF_SOURCE_BASE_BAND, OFF_SOURCE_STEREO_CHANNEL); } }
SoundSystem extends BaseOpenMessage { public static SoundSystem requestTurnOff(String where, Type type, Source source) { return buildRequest(where, type, source, OFF_SOURCE_BASE_BAND, OFF_SOURCE_STEREO_CHANNEL); } protected  SoundSystem(String value); }
SoundSystem extends BaseOpenMessage { public static SoundSystem requestTurnOff(String where, Type type, Source source) { return buildRequest(where, type, source, OFF_SOURCE_BASE_BAND, OFF_SOURCE_STEREO_CHANNEL); } protected  SoundSystem(String value); static SoundSystem requestTurnOn(String where, Type type, Source source); static SoundSystem requestTurnOff(String where, Type type, Source source); static Func1<OpenSession, OpenSession> handleResponse(Action0 onSuccess, Action0 onFail); static SoundSystem requestStatus(String where, Type type); static Func1<OpenSession, OpenSession> handleStatus(Action0 onStatus, Action0 offStatus); static SoundSystem requestVolumeUp(String where, Type type); static SoundSystem requestVolumeDown(String where, Type type); static SoundSystem requestStationUp(String where, Type type); static SoundSystem requestStationDown(String where, Type type); }
SoundSystem extends BaseOpenMessage { public static SoundSystem requestTurnOff(String where, Type type, Source source) { return buildRequest(where, type, source, OFF_SOURCE_BASE_BAND, OFF_SOURCE_STEREO_CHANNEL); } protected  SoundSystem(String value); static SoundSystem requestTurnOn(String where, Type type, Source source); static SoundSystem requestTurnOff(String where, Type type, Source source); static Func1<OpenSession, OpenSession> handleResponse(Action0 onSuccess, Action0 onFail); static SoundSystem requestStatus(String where, Type type); static Func1<OpenSession, OpenSession> handleStatus(Action0 onStatus, Action0 offStatus); static SoundSystem requestVolumeUp(String where, Type type); static SoundSystem requestVolumeDown(String where, Type type); static SoundSystem requestStationUp(String where, Type type); static SoundSystem requestStationDown(String where, Type type);  }