Skip to main content
summaryrefslogtreecommitdiffstats
blob: 508f2e98937ad9aaae407523e45bb864e6047abc (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
/****************************************************************************
 * 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.presence.im;

import org.eclipse.ecf.core.identity.ID;

public class TypingMessageEvent implements ITypingMessageEvent {

	private static final long serialVersionUID = 6612754945575950442L;

	protected ID fromID;

	protected ITypingMessage typingMessage;

	public TypingMessageEvent(ID fromID, ITypingMessage message) {
		this.fromID = fromID;
		this.typingMessage = message;
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see org.eclipse.ecf.presence.im.ITypingMessageEvent#getTypingMessage()
	 */
	public ITypingMessage getTypingMessage() {
		return typingMessage;
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see org.eclipse.ecf.presence.im.IIMMessageEvent#getFromID()
	 */
	public ID getFromID() {
		return fromID;
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see java.lang.Object#toString()
	 */
	public String toString() {
		StringBuffer buf = new StringBuffer("TypingMessage["); //$NON-NLS-1$
		buf.append("fromID=").append(getFromID()); //$NON-NLS-1$
		buf.append(";typingMessage=").append(getTypingMessage()).append("]"); //$NON-NLS-1$ //$NON-NLS-2$
		return buf.toString();
	}

}

Back to the top