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;
}
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;
}
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;
}
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;
}
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;
}
Aggregations