mirror of
https://github.com/moparisthebest/Yaaic
synced 2024-11-26 10:52:16 -05:00
Conversation: setStatus(), getStatus() and constants Conversation.STATUS_*
This commit is contained in:
parent
1e8eaf8a7d
commit
dbb522370c
@ -37,12 +37,18 @@ public abstract class Conversation
|
||||
public static final int TYPE_QUERY = 2;
|
||||
public static final int TYPE_SERVER = 3;
|
||||
|
||||
public static final int STATUS_DEFAULT = 1;
|
||||
public static final int STATUS_SELECTED = 2;
|
||||
public static final int STATUS_MESSAGE = 3;
|
||||
public static final int STATUS_HIGHLIGHT = 4;
|
||||
|
||||
public static final int HISTORY_SIZE = 30;
|
||||
|
||||
private LinkedList<Message> buffer;
|
||||
private LinkedList<Message> history;
|
||||
private String name;
|
||||
private MessageListAdapter adapter;
|
||||
private int status = 1;
|
||||
|
||||
/**
|
||||
* Get the type of conversation (channel, query, ..)
|
||||
@ -156,4 +162,24 @@ public abstract class Conversation
|
||||
{
|
||||
return adapter;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set status of conversation
|
||||
*
|
||||
* @param status
|
||||
*/
|
||||
public void setStatus(int status)
|
||||
{
|
||||
this.status = status;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get status of conversation
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
public int getStatus()
|
||||
{
|
||||
return status;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user