Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: 1c1c623e9782231981e9783c89d434a5fe208958 (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
/****************************************************************************
 * 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.history;

import java.util.Date;

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

/**
 * A single chat line from history.
 */
public interface IHistoryLine extends IAdaptable {

	/**
	 * Get ID of sender for this history line.  ID returned will not be <code>null</code>.
	 * 
	 * @return ID of sender for this history line.  Will not be <code>null</code>.
	 */
	public ID getSenderID();
	
	/**
	 * Get ID of sender for this history line.  ID returned will not be <code>null</code>.
	 * 
	 * @return ID of sender for this history line.  Will not be <code>null</code>.
	 */
	public ID getReceiverID();
	
	/**
	 * Get the Date this history line was sent or received.  
	 * 
	 * @return Date associated with this history line.  Will not be <code>null</code>.
	 */
	public Date getDate();
	/**
	 * Get the actual text of the line.
	 * 
	 * @return String text of the message.
	 */
	public String getText();
	
}

Back to the top