Search in sources :

Example 1 with EntityIntentBuilder

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

the class ContactList method createRoomInviteIntent.

public static Intent createRoomInviteIntent(Context context, String account, String room) {
    Intent intent = new EntityIntentBuilder(context, ContactList.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)

Example 2 with EntityIntentBuilder

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

the class ContactList method createContactSubscriptionIntent.

public static Intent createContactSubscriptionIntent(Context context, String account, String user) {
    Intent intent = new EntityIntentBuilder(context, ContactList.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 3 with EntityIntentBuilder

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

the class GroupEditor method createIntent.

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

Example 4 with EntityIntentBuilder

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

the class ChatViewer method createSpecificChatIntent.

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

Example 5 with EntityIntentBuilder

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

the class ChatViewer method createRecentChatsIntent.

public static Intent createRecentChatsIntent(Context context) {
    Intent intent = new EntityIntentBuilder(context, ChatViewer.class).build();
    intent.setAction(ACTION_RECENT_CHATS);
    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