
org.jasig.irclog.events.NoticeEvent Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ConfluenceIrcLogger Show documentation
Show all versions of ConfluenceIrcLogger Show documentation
Logs IRC conversations into Confluence.
The newest version!
/**
* Licensed to Jasig under one or more contributor license
* agreements. See the NOTICE file distributed with this work
* for additional information regarding copyright ownership.
* Jasig licenses this file to you under the Apache License,
* Version 2.0 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a
* copy of the License at:
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on
* an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.jasig.irclog.events;
import org.jasig.irclog.IrcBot;
import org.jibble.pircbot.PircBot;
/**
* @see PircBot#onNotice(String, String, String, String, String)
*
* @author Eric Dalquist [email protected]
* @version $Revision$
*/
public class NoticeEvent extends TargetedEvent {
private static final long serialVersionUID = 1L;
protected final String sourceNick;
protected final String sourceLogin;
protected final String sourceHostname;
protected final String notice;
public NoticeEvent(final IrcBot source, final String sourceNick, final String sourceLogin, final String sourceHostname, final String target, final String notice) {
super(source, target);
this.sourceNick = sourceNick;
this.sourceLogin = sourceLogin;
this.sourceHostname = sourceHostname;
this.notice = notice;
}
/**
* @return the notice
*/
public String getNotice() {
return this.notice;
}
/**
* @return the sourceHostname
*/
public String getSourceHostname() {
return this.sourceHostname;
}
/**
* @return the sourceLogin
*/
public String getSourceLogin() {
return this.sourceLogin;
}
/**
* @return the sourceNick
*/
public String getSourceNick() {
return this.sourceNick;
}
@Override
public String toString() {
return "NoticeEvent [ircbot=" + this.source + "date=" + this.date + "target=" + this.target + "sourceNick=" +
this.sourceNick + ", sourceLogin=" + this.sourceLogin + ", sourceHostname=" + this.sourceHostname +
", notice=" + this.notice + "]";
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy