public class DialogUtils
extends java.lang.Object
QBChatDialog
Constructor and Description |
---|
DialogUtils() |
Modifier and Type | Method and Description |
---|---|
static QBChatDialog |
buildDialog(QBUser... users)
Creates dialog with type according to number of users.
|
static QBChatDialog |
buildDialog(java.lang.String name,
QBDialogType type,
java.util.List<java.lang.Integer> occupantIds)
Creates dialog with parameters.
|
static QBChatDialog |
buildPrivateDialog(int participantId)
Creates private dialog.
|
static java.lang.String |
createChatNameFromUserList(QBUser... users) |
static java.util.List<java.lang.Integer> |
getUserIds(java.util.List<QBUser> users) |
static java.util.List<java.lang.Integer> |
getUserIds(QBUser... users) |
QBChatDialog |
newDialog(java.util.List<QBUser> users) |
public static java.util.List<java.lang.Integer> getUserIds(java.util.List<QBUser> users)
public static java.util.List<java.lang.Integer> getUserIds(QBUser... users)
public static java.lang.String createChatNameFromUserList(QBUser... users)
public QBChatDialog newDialog(java.util.List<QBUser> users)
public static QBChatDialog buildDialog(java.lang.String name, QBDialogType type, java.util.List<java.lang.Integer> occupantIds)
name
- name of dialog, has to be 'null' for dialog with type QBDialogType.PRIVATE
.type
- type of a dialog, see QBDialogType
.occupantIds
- id's of occupants.public static QBChatDialog buildDialog(QBUser... users)
users
- dialog occupants.public static QBChatDialog buildPrivateDialog(int participantId)
participantId
- id of occupant.