Search in sources :

Example 11 with Route

use of com.instructure.interactions.router.Route in project instructure-android by instructure.

the class MessageThreadFragment method replyAllMessage.

private void replyAllMessage() {
    Bundle args = AddMessageFragment.createBundle(true, getConversation(), getPresenter().getParticipants(), getPresenter().getMessageChainForMessage(null), null);
    RouteMatcher.route(getContext(), new Route(AddMessageFragment.class, null, args));
}
Also used : Bundle(android.os.Bundle) Route(com.instructure.interactions.router.Route)

Example 12 with Route

use of com.instructure.interactions.router.Route in project instructure-android by instructure.

the class MessageThreadFragment method addMessage.

private void addMessage(Message message, boolean isReply) {
    Bundle args = AddMessageFragment.createBundle(isReply, getConversation(), getPresenter().getParticipants(), getPresenter().getMessageChainForMessage(message), message);
    RouteMatcher.route(getContext(), new Route(AddMessageFragment.class, null, args));
}
Also used : Bundle(android.os.Bundle) Route(com.instructure.interactions.router.Route)

Aggregations

Route (com.instructure.interactions.router.Route)12 Test (org.junit.Test)8 HashMap (java.util.HashMap)7 Bundle (android.os.Bundle)3 CanvasContext (com.instructure.canvasapi2.models.CanvasContext)2 Rfc822Tokenizer (android.text.util.Rfc822Tokenizer)1 View (android.view.View)1 AdapterView (android.widget.AdapterView)1 ImageView (android.widget.ImageView)1 ScrollView (android.widget.ScrollView)1 TextView (android.widget.TextView)1 BindView (butterknife.BindView)1 RecipientEditTextView (com.android.ex.chips.RecipientEditTextView)1 User (com.instructure.canvasapi2.models.User)1 AttachmentView (com.instructure.pandautils.views.AttachmentView)1 PeopleListRecyclerAdapter (com.instructure.teacher.adapters.PeopleListRecyclerAdapter)1 RecipientAdapter (com.instructure.teacher.adapters.RecipientAdapter)1 StudentContextFragment (com.instructure.teacher.adapters.StudentContextFragment)1 AdapterToFragmentCallback (com.instructure.teacher.interfaces.AdapterToFragmentCallback)1 AddMessageView (com.instructure.teacher.viewinterface.AddMessageView)1