NewMessage() 공개 메소드

public NewMessage ( ControlCommands command ) : void
command ControlCommands
리턴 void
예제 #1
0
	public static ControlMessage DisableAllMessage()
	{
		ControlMessage msg = new ControlMessage ();

		msg.NewMessage (ControlCommands.DISABLE_ALL);

		return msg;
	}
예제 #2
0
	public static ControlMessage DisableMessage(string unique_name)
	{
		ControlMessage msg = new ControlMessage ();

		msg.NewMessage (ControlCommands.DISABLE);
		msg.PutString (ControlAttributes.UNIQUE_NAME, unique_name);
	
		return msg;
	}
예제 #3
0
	public static ControlMessage EnableMessage(string unique_name, string call, ushort creation_delay_ms)
	{
		ControlMessage msg = new ControlMessage ();

		msg.NewMessage (ControlCommands.ENABLE);
		msg.PutString (ControlAttributes.UNIQUE_NAME, unique_name);
		msg.PutString (ControlAttributes.CALL, call);
		msg.PutU16 (ControlAttributes.CRATION_DELAY_MS, creation_delay_ms);

		return msg;
	}
예제 #4
0
	public static ControlMessage KeepaliveMessage()
	{
		ControlMessage msg = new ControlMessage();
		msg.NewMessage(ControlCommands.KEEPALIVE);
		return msg;
	}