forked from barros-felipe/Atlas-Android
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Participant.java
35 lines (30 loc) · 853 Bytes
/
Participant.java
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
package com.layer.atlas.provider;
import android.net.Uri;
/**
* Participant allows Atlas classes to display information about users, like Message senders,
* Conversation participants, TypingIndicator users, etc.
*/
public interface Participant extends Comparable<Participant> {
/**
* Returns the unique identifier for this Participant.
*
* @return The unique identifier for this Participant.
*/
String getId();
/**
* Returns the name of this Participant.
*
* @return The name of this Participant.
*/
String getName();
/**
* Returns the URL for an avatar image for this Participant.
*
* @return the URL for an avatar image for this Participant.
*/
Uri getAvatarUrl();
/**
* Allows sorting Participants.
*/
int compareTo(Participant another);
}