Search in sources :

Example 6 with EntityIntentBuilder

use of com.xabber.android.data.intent.EntityIntentBuilder in project xabber-android by redsolution.

the class ContactList method createMucInviteIntent.

public static Intent createMucInviteIntent(Context context, String account, String user) {
    Intent intent = new EntityIntentBuilder(context, ContactList.class).setAccount(account).setUser(user).build();
    intent.setAction(ACTION_INCOMING_MUC_INVITE);
    return intent;
}
Also used : Intent(android.content.Intent) EntityIntentBuilder(com.xabber.android.data.intent.EntityIntentBuilder)

Example 7 with EntityIntentBuilder

use of com.xabber.android.data.intent.EntityIntentBuilder in project xabber-android by redsolution.

the class ContactList method createMucPrivateChatInviteIntent.

public static Intent createMucPrivateChatInviteIntent(Context context, String account, String user) {
    Intent intent = new EntityIntentBuilder(context, ContactList.class).setAccount(account).setUser(user).build();
    intent.setAction(ACTION_MUC_PRIVATE_CHAT_INVITE);
    return intent;
}
Also used : Intent(android.content.Intent) EntityIntentBuilder(com.xabber.android.data.intent.EntityIntentBuilder)

Example 8 with EntityIntentBuilder

use of com.xabber.android.data.intent.EntityIntentBuilder in project xabber-android by redsolution.

the class QuestionViewer method createIntent.

/**
     * @param context
     * @param account
     * @param user
     * @param showQuestion  <code>false</code> is used for shared secret.
     * @param answerRequest <code>false</code> is used to ask a question.
     * @param question      must be not <code>null</code> if showQuestion and
     *                      answerRequest are <code>true</code>.
     * @return
     */
public static Intent createIntent(Context context, String account, String user, boolean showQuestion, boolean answerRequest, String question) {
    Intent intent = new EntityIntentBuilder(context, QuestionViewer.class).setAccount(account).setUser(user).build();
    intent.putExtra(EXTRA_FIELD_SHOW_QUESTION, showQuestion);
    intent.putExtra(EXTRA_FIELD_ANSWER_REQUEST, answerRequest);
    intent.putExtra(Intent.EXTRA_TEXT, question);
    return intent;
}
Also used : Intent(android.content.Intent) EntityIntentBuilder(com.xabber.android.data.intent.EntityIntentBuilder)

Example 9 with EntityIntentBuilder

use of com.xabber.android.data.intent.EntityIntentBuilder in project xabber-android by redsolution.

the class ChatActivity method createRecentChatsIntent.

public static Intent createRecentChatsIntent(Context context) {
    Intent intent = new EntityIntentBuilder(context, ChatActivity.class).build();
    intent.setAction(ACTION_RECENT_CHATS);
    return intent;
}
Also used : Intent(android.content.Intent) EntityIntentBuilder(com.xabber.android.data.intent.EntityIntentBuilder)

Example 10 with EntityIntentBuilder

use of com.xabber.android.data.intent.EntityIntentBuilder in project xabber-android by redsolution.

the class ContactListActivity method createRoomInviteIntent.

public static Intent createRoomInviteIntent(Context context, AccountJid account, UserJid room) {
    Intent intent = new EntityIntentBuilder(context, ContactListActivity.class).setAccount(account).setUser(room).build();
    intent.setAction(ACTION_ROOM_INVITE);
    return intent;
}
Also used : Intent(android.content.Intent) EntityIntentBuilder(com.xabber.android.data.intent.EntityIntentBuilder)

Aggregations

Intent (android.content.Intent)20 EntityIntentBuilder (com.xabber.android.data.intent.EntityIntentBuilder)20 AbstractChat (com.xabber.android.data.message.AbstractChat)1