package com.cardshifter.api.incoming;

import com.cardshifter.api.messages.Message;

public class TransformerMessage extends Message {

	public static final int TRANSFORM_JSON = 0;
	public static final int TRANSFORM_BYTE = 1;
	
	private final int type;
	
	TransformerMessage() {
		this(0);
	}
	public TransformerMessage(int type) {
		super("serial");
		this.type = type;
	}
	
	public int getType() {
		return type;
	}
	
}

@@ -78,16 +78,109 @@
 ssage;%0A%0A
+/**%0A * Serialize message from JSON to byte.%0A * %3Cp%3E%0A * Primarily used for libGDX client. %0A */%0A
 public c
@@ -341,16 +341,49 @@
 type;%0A%09%0A
+%09/** Constructor. (no params) */%0A
 %09Transfo
@@ -412,16 +412,78 @@
 (0);%0A%09%7D%0A
+%09/**%0A%09 * Constructor.%0A%09 * @param type  This message type%0A%09 */%0A
 %09public 
@@ -555,18 +555,53 @@
 ype;%0A%09%7D%0A
-
 %09%0A
+%09/** @return  This message type */%0A
 %09public 

Update TransformerMessage.java