All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.ircclouds.irc.api.commands.SendNoticeMessage Maven / Gradle / Ivy

There is a newer version: 1.0-0014
Show newest version
package com.ircclouds.irc.api.commands;

public class SendNoticeMessage implements ICommand
{
	private static final String NOTICE = "NOTICE ";

	private String channel;
	private String msg;
	private Integer asyncRandConstant;

	public SendNoticeMessage(String aChannel, String aText)
	{
		this(aChannel, aText, null);
	}
	
	public SendNoticeMessage(String aChannel, String aText, Integer aAsyncRandConstant)
	{
		channel = aChannel;
		msg = aText;
		asyncRandConstant = aAsyncRandConstant;
	}

	@Override
	public String asString()
	{
		if (asyncRandConstant == null)
		{
			return NOTICE + channel + " :" + msg;
		}
		else
		{
			return NOTICE + channel + "," + asyncRandConstant + " :" + msg;
		}
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy