#include <stdio.h>
#include "MMServer.h"

////////////////////////////////////////////////////
MMServer::MMServer(const ModemMessage *pMM)
{
	Assert(pMM);
	Assert(pMM->getType()==tGetMessageType());
	const char* pcEnd = pcRead(pMM->getBuffer());
	Assert(pcEnd==pMM->getBuffer()+pMM->getBufferSize());
}

MMServer::MMServer(int number, Boolean value) :
	MMNumberedBoolean(number,value) {}

void MMServer::toString(char* str)
{
	sprintf(str,"tMMServer: number=%d, value=%d",getNumber(),getValue());
}
