blob: 1d0407e8cb00ce70c004b192b77f864e80e2429b (
plain) (
blame)
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
|
/****************************************************************************
* Copyright (c) 2004 Composent, Inc. and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* Composent, Inc. - initial API and implementation
*****************************************************************************/
package org.eclipse.ecf.internal.provider.xmpp.events;
import org.eclipse.ecf.core.util.Event;
import org.jivesoftware.smack.XMPPConnection;
import org.jivesoftware.smack.packet.Message;
public class InvitationReceivedEvent implements Event {
private static final long serialVersionUID = 916275866023754310L;
XMPPConnection connection;
String room;
String inviter;
String reason;
String password;
Message message;
public InvitationReceivedEvent(XMPPConnection conn, String room, String inviter, String reason, String password, Message message) {
super();
this.connection = conn;
this.room = room;
this.inviter = inviter;
this.reason = reason;
this.password = password;
this.message = message;
}
public XMPPConnection getConnection() {
return connection;
}
public String getInviter() {
return inviter;
}
public Message getMessage() {
return message;
}
public String getPassword() {
return password;
}
public String getReason() {
return reason;
}
public String getRoom() {
return room;
}
public String toString() {
StringBuffer buf = new StringBuffer("InvitationReceivedEvent[");
buf.append("conn="+getConnection()).append(";room="+getRoom());
buf.append(";inviter="+getInviter()).append(";reason="+reason);
buf.append(";pw="+password).append(";msg="+getMessage()).append("]");
return buf.toString();
}
}
|