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