summaryrefslogtreecommitdiffstats
path: root/EssentialsUpdate/src/f00f/net/irc/martyr/replies/NamesEndReply.java
blob: a0605b5bd6441eb9421190d15a9a6c08aee91693 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
package f00f.net.irc.martyr.replies;

import f00f.net.irc.martyr.InCommand;

public class NamesEndReply extends GenericReply
{

    private String channel;
    private String comment;

    /** For use as a factory. */
    public NamesEndReply()
    {
        this( null, null );
    }

    public NamesEndReply( String channel, String comment )
    {
        this.channel = channel;
        this.comment = comment;
    }

    public String getIrcIdentifier()
    {
        return "366";
    }

    public InCommand parse( String prefix, String identifier, String params )
    {
        return new NamesEndReply( getParameter( params, 1 ), getParameter( params, 2 ) );
    }

    public String getChannel()
    {
        return channel;
    }

    public String getComment()
    {
        return comment;
    }

}