package com.kurento.kmf.media;

import java.io.IOException;

import org.apache.commons.lang.NotImplementedException;

public class MixerEndPoint extends EndPoint {

	private static final long serialVersionUID = 1L;

	MixerEndPoint(com.kurento.kms.api.MediaObject mixerPort) {
		super(mixerPort);
	}

	/* SYNC */

	public Mixer getMixer() throws IOException {
		// TODO: Implement using getParent method
		throw new NotImplementedException();
	}

	/* ASYNC */

	public void getMixer(final Continuation<Mixer> cont) throws IOException {
		// TODO: Implement using getParent method
		throw new NotImplementedException();
	}
}

@@ -58,65 +58,8 @@
 n;%0A%0A
-import org.apache.commons.lang.NotImplementedException;%0A%0A
 publ
@@ -204,19 +204,23 @@
 ct mixer
-Por
+EndPoin
 t) %7B%0A%09%09s
@@ -233,11 +233,15 @@
 ixer
-Por
+EndPoin
 t);%0A
@@ -309,266 +309,536 @@
 %7B%0A%09%09
-// TODO: Implement using getParent method%0A%09%09throw new NotImplementedException();%0A%09%7D%0A%0A%09/* ASYNC */%0A%0A%09public void getMixer(final Continuation%3CMixer%3E cont) throws IOException %7B%0A%09%09// TODO: Implement using getParent method%0A%09%09throw new NotImplementedException(
+MediaObject parent = getParent();%0A%09%09if (parent instanceof Mixer) %7B%0A%09%09%09return (Mixer) parent;%0A%09%09%7D%0A%09%09return null;%0A%09%7D%0A%0A%09/* ASYNC */%0A%0A%09public void getMixer(final Continuation%3CMixer%3E cont) throws IOException %7B%0A%09%09getParent(new Continuation%3CMediaObject%3E() %7B%0A%09%09%09@Override%0A%09%09%09public void onSuccess(MediaObject result) %7B%0A%09%09%09%09if (result instanceof Mixer) %7B%0A%09%09%09%09%09cont.onSuccess((Mixer) result);%0A%09%09%09%09%7D else %7B%0A%09%09%09%09%09cont.onSuccess(null);%0A%09%09%09%09%7D%0A%09%09%09%7D%0A%0A%09%09%09@Override%0A%09%09%09public void onError(Throwable cause) %7B%0A%09%09%09%09cont.onError(cause);%0A%09%09%09%7D%0A%09%09%7D
 );%0A%09%7D%0A
+%0A
 %7D%0A

Implement MixerEndPoint