public class ChatProvider extends Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
ChatProvider.Listener |
| Constructor and Description |
|---|
ChatProvider(android.content.Context context,
android.database.sqlite.SQLiteOpenHelper dbHelper,
ChatProvider.Listener listener) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
close(tigase.jaxmpp.core.client.SessionObject sessionObject,
long chatId) |
long |
createChat(tigase.jaxmpp.core.client.SessionObject sessionObject,
tigase.jaxmpp.core.client.JID fromJid,
String threadId) |
long |
createMuc(tigase.jaxmpp.core.client.SessionObject sessionObject,
tigase.jaxmpp.core.client.JID fromJid,
String nickname,
String password) |
Object[] |
getChat(tigase.jaxmpp.core.client.SessionObject sessionObject,
tigase.jaxmpp.core.client.JID jid,
String threadId)
Get parameters needed to create proper Chat instance from DB
|
List<Object[]> |
getChats(tigase.jaxmpp.core.client.SessionObject sessionObject)
Get parameters needed to create proper Chat instances from DB
|
List<Object[]> |
getRooms(tigase.jaxmpp.core.client.SessionObject sessionObject) |
boolean |
isChatOpenFor(tigase.jaxmpp.core.client.SessionObject sessionObject,
tigase.jaxmpp.core.client.BareJID jid) |
void |
resetRoomState(int state) |
void |
updateRoomState(tigase.jaxmpp.core.client.SessionObject sessionObject,
tigase.jaxmpp.core.client.BareJID room,
int state) |
public ChatProvider(android.content.Context context,
android.database.sqlite.SQLiteOpenHelper dbHelper,
ChatProvider.Listener listener)
public boolean close(tigase.jaxmpp.core.client.SessionObject sessionObject,
long chatId)
public long createChat(tigase.jaxmpp.core.client.SessionObject sessionObject,
tigase.jaxmpp.core.client.JID fromJid,
String threadId)
throws tigase.jaxmpp.core.client.exceptions.JaxmppException
tigase.jaxmpp.core.client.exceptions.JaxmppExceptionpublic long createMuc(tigase.jaxmpp.core.client.SessionObject sessionObject,
tigase.jaxmpp.core.client.JID fromJid,
String nickname,
String password)
public Object[] getChat(tigase.jaxmpp.core.client.SessionObject sessionObject, tigase.jaxmpp.core.client.JID jid, String threadId)
sessionObject - jid - threadId - public List<Object[]> getChats(tigase.jaxmpp.core.client.SessionObject sessionObject)
sessionObject - public boolean isChatOpenFor(tigase.jaxmpp.core.client.SessionObject sessionObject,
tigase.jaxmpp.core.client.BareJID jid)
public void updateRoomState(tigase.jaxmpp.core.client.SessionObject sessionObject,
tigase.jaxmpp.core.client.BareJID room,
int state)
public void resetRoomState(int state)
Copyright © 2006–2017 Tigase. All rights reserved.