Search in sources :

Example 1 with AddMessagePresenterFactory

use of com.instructure.teacher.factory.AddMessagePresenterFactory in project instructure-android by instructure.

the class AddMessageFragment method getPresenterFactory.

@Override
protected PresenterFactory<AddMessagePresenter> getPresenterFactory() {
    Conversation conversation = getArguments().getParcelable(Const.CONVERSATION);
    ArrayList<BasicUser> participants = getArguments().getParcelableArrayList(KEY_PARTICIPANTS);
    ArrayList<Message> messages = getArguments().getParcelableArrayList(Const.MESSAGE);
    boolean isReply = getArguments().getBoolean(KEY_IS_REPLY, false);
    return new AddMessagePresenterFactory(conversation, participants, messages, isReply);
}
Also used : BasicUser(com.instructure.canvasapi2.models.BasicUser) Message(com.instructure.canvasapi2.models.Message) Conversation(com.instructure.canvasapi2.models.Conversation) AddMessagePresenterFactory(com.instructure.teacher.factory.AddMessagePresenterFactory)

Aggregations

BasicUser (com.instructure.canvasapi2.models.BasicUser)1 Conversation (com.instructure.canvasapi2.models.Conversation)1 Message (com.instructure.canvasapi2.models.Message)1 AddMessagePresenterFactory (com.instructure.teacher.factory.AddMessagePresenterFactory)1