package comlib.provider;

import comlib.event.CivilianMessageEvent;
import comlib.message.information.CivilianMessage;
import comlib.manager.RadioConfig;
import comlib.manager.VoiceConfig;
import comlib.util.BitOutputStream;
import comlib.util.BitStreamReader;


public class CivilianMessageProvider extends MessageProvider<CivilianMessage, CivilianMessageEvent>
{
	public CivilianMessageProvider(int id)
	{
		super(id);
	}

	protected void writeMessage(RadioConfig config, BitOutputStream bos, CivilianMessage msg)
	{
		//bos.writeBits(msg.getValue(), config.getSizeOfCivilianValue());
	}

	protected void writeMessage(VoiceConfig config, StringBuilder sb, CivilianMessage msg)
	{
		//config.appendData(sb, String.valueOf(msg.getValue()));
	}

	protected CivilianMessage createMessage(RadioConfig config, int time, BitStreamReader bsr)
	{
		return null;
		// return new CivilianMessage(time, -1,
		// 		bsr.getBits(config.getSizeOfCivilianValue())
		// 		);
	}

	protected CivilianMessage createMessage(VoiceConfig config, int time, int ttl, String[] data, int next)
	{
		return null;
		// return new CivilianMessage(
		// 		time, ttl,
		// 		Integer.parseInt(data[next])
		// 		);
	}

}

package comlib.provider;

import comlib.event.information.CivilianMessageEvent;
import comlib.message.information.CivilianMessage;
import comlib.manager.RadioConfig;
import comlib.manager.VoiceConfig;
import comlib.util.BitOutputStream;
import comlib.util.BitStreamReader;


public class CivilianMessageProvider extends MessageProvider<CivilianMessage, CivilianMessageEvent>
{
	public CivilianMessageProvider(int id)
	{
		super(id);
	}

	protected void writeMessage(RadioConfig config, BitOutputStream bos, CivilianMessage msg)
	{
		//bos.writeBits(msg.getValue(), config.getSizeOfCivilianValue());
	}

	protected void writeMessage(VoiceConfig config, StringBuilder sb, CivilianMessage msg)
	{
		//config.appendData(sb, String.valueOf(msg.getValue()));
	}

	protected CivilianMessage createMessage(RadioConfig config, int time, BitStreamReader bsr)
	{
		return null;
		// return new CivilianMessage(time, -1,
		// 		bsr.getBits(config.getSizeOfCivilianValue())
		// 		);
	}

	protected CivilianMessage createMessage(VoiceConfig config, int time, int ttl, String[] data, int next)
	{
		return null;
		// return new CivilianMessage(
		// 		time, ttl,
		// 		Integer.parseInt(data[next])
		// 		);
	}

}

update Comlib