src/main/java/org/intellimate/izou/sdk/frameworks/permanentSoundOutput/events/UnMuteEvent.java
public static Optional<UnMuteEvent> createUnMuteEvent(Identification source, Identification target) {
        if (target == null || target.equals(source))
            return Optional.empty();
        try {
            UnMuteEvent unmuteRequest = new UnMuteEvent(source);
            unmuteRequest.addResource(new SelectorResource(source, target));
            return Optional.of(unmuteRequest);
        } catch (IllegalArgumentException e) {
            return Optional.empty();
        }
    }
public static Optional<UnMuteEvent> createUnMuteEvent(Identification source, Identification target) {
        if (target == null || target.equals(source))
            return Optional.empty();
        try {
            UnMuteEvent unmuteRequest = new UnMuteEvent(source);
            unmuteRequest.addResource(new SelectorResource(source, target));
            return Optional.of(unmuteRequest);
        } catch (IllegalArgumentException e) {
            return Optional.empty();
        }
    }
public static Optional < UnMuteEvent > createUnMuteEvent ( Identification source , Identification target ) { if ( target == null || target . equals ( source ) ) return Optional . empty ( ) ; try { UnMuteEvent unmuteRequest = new UnMuteEvent ( source ) ; unmuteRequest . addResource ( new SelectorResource ( source , target ) ) ; return Optional . of ( unmuteRequest ) ; } catch ( IllegalArgumentException e ) { return Optional . empty ( ) ; } }
creates a new StopEvent
@param source the caller
@param target the target who should start playing
@return the optional StartMusicRequest
creates a new StopEvent