package de.ifcore.metis.client;

import javax.inject.Inject;
import javax.inject.Named;

import de.ifcore.metis.client.message.MessageClient;
import de.ifcore.metis.client.pixel.PixelClient;

@Named
public class MetisClient
{
	private final MetisEndpoint endpoint;

	@Inject
	public MetisClient(MetisEndpoint endpoint)
	{
		this.endpoint = endpoint;
	}

	public void orderPixels(int count)
	{
		PixelClient client = new PixelClient(endpoint);
		client.order(count);
	}

	public void submitText()
	{
		MessageClient client = new MessageClient(endpoint);
		client.submitText();
	}
}

@@ -26,16 +26,40 @@
 lient;%0A%0A
+import java.util.List;%0A%0A
 import j
@@ -78,16 +78,16 @@
 Inject;%0A
-
 import j
@@ -159,16 +159,59 @@
 Client;%0A
+import de.ifcore.metis.client.pixel.Pixel;%0A
 import d
@@ -422,20 +422,27 @@
 %09public 
-void
+List%3CPixel%3E
  orderPi
@@ -506,26 +506,33 @@
 (endpoint);%0A
-
 %09%09
+return 
 client.order

return pixel-list