Search in sources :

Example 16 with EntityIntentBuilder

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

the class ContactListActivity method createMucPrivateChatInviteIntent.

public static Intent createMucPrivateChatInviteIntent(Context context, AccountJid account, UserJid user) {
    Intent intent = new EntityIntentBuilder(context, ContactListActivity.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 17 with EntityIntentBuilder

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

the class ContactListActivity method createContactSubscriptionIntent.

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

Example 18 with EntityIntentBuilder

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

the class QuestionActivity method createCancelIntent.

/**
 * @param context
 * @param account
 * @param user
 * @return Intent to cancel negotiation.
 */
public static Intent createCancelIntent(Context context, AccountJid account, UserJid user) {
    Intent intent = new EntityIntentBuilder(context, QuestionActivity.class).setAccount(account).setUser(user).build();
    intent.putExtra(EXTRA_FIELD_CANCEL, true);
    return intent;
}
Also used : Intent(android.content.Intent) EntityIntentBuilder(com.xabber.android.data.intent.EntityIntentBuilder)

Example 19 with EntityIntentBuilder

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

the class QuestionViewer method createCancelIntent.

/**
     * @param context
     * @param account
     * @param user
     * @return Intent to cancel negotiation.
     */
public static Intent createCancelIntent(Context context, String account, String user) {
    Intent intent = new EntityIntentBuilder(context, QuestionViewer.class).setAccount(account).setUser(user).build();
    intent.putExtra(EXTRA_FIELD_CANCEL, true);
    return intent;
}
Also used : Intent(android.content.Intent) EntityIntentBuilder(com.xabber.android.data.intent.EntityIntentBuilder)

Example 20 with EntityIntentBuilder

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

the class AccountInfoEditor method createIntent.

public static Intent createIntent(Context context, String account, String vCard) {
    Intent intent = new EntityIntentBuilder(context, AccountInfoEditor.class).setAccount(account).build();
    intent.putExtra(ARG_VCARD, vCard);
    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