Search in sources :

Example 1 with RoomRoleRepository

use of chat.rocket.core.repositories.RoomRoleRepository in project Rocket.Chat.Android by RocketChat.

the class MessageOptionsDialogFragment method getEditMessageInteractor.

private EditMessageInteractor getEditMessageInteractor(String hostname) {
    UserRepository userRepository = new RealmUserRepository(hostname);
    RoomRoleRepository roomRoleRepository = new RealmRoomRoleRepository(hostname);
    PermissionRepository permissionRepository = new RealmPermissionRepository(hostname);
    PermissionInteractor permissionInteractor = new PermissionInteractor(userRepository, roomRoleRepository, permissionRepository);
    MessageRepository messageRepository = new RealmMessageRepository(hostname);
    RoomRepository roomRepository = new RealmRoomRepository(hostname);
    PublicSettingRepository publicSettingRepository = new RealmPublicSettingRepository(hostname);
    return new EditMessageInteractor(permissionInteractor, userRepository, messageRepository, roomRepository, publicSettingRepository);
}
Also used : RealmPermissionRepository(chat.rocket.persistence.realm.repositories.RealmPermissionRepository) PermissionInteractor(chat.rocket.core.interactors.PermissionInteractor) PermissionRepository(chat.rocket.core.repositories.PermissionRepository) RealmPermissionRepository(chat.rocket.persistence.realm.repositories.RealmPermissionRepository) RealmPublicSettingRepository(chat.rocket.persistence.realm.repositories.RealmPublicSettingRepository) PublicSettingRepository(chat.rocket.core.repositories.PublicSettingRepository) RealmMessageRepository(chat.rocket.persistence.realm.repositories.RealmMessageRepository) RealmPublicSettingRepository(chat.rocket.persistence.realm.repositories.RealmPublicSettingRepository) UserRepository(chat.rocket.core.repositories.UserRepository) RealmUserRepository(chat.rocket.persistence.realm.repositories.RealmUserRepository) RealmRoomRoleRepository(chat.rocket.persistence.realm.repositories.RealmRoomRoleRepository) EditMessageInteractor(chat.rocket.core.interactors.EditMessageInteractor) RealmRoomRoleRepository(chat.rocket.persistence.realm.repositories.RealmRoomRoleRepository) RoomRoleRepository(chat.rocket.core.repositories.RoomRoleRepository) MessageRepository(chat.rocket.core.repositories.MessageRepository) RealmMessageRepository(chat.rocket.persistence.realm.repositories.RealmMessageRepository) RealmRoomRepository(chat.rocket.persistence.realm.repositories.RealmRoomRepository) RoomRepository(chat.rocket.core.repositories.RoomRepository) RealmRoomRepository(chat.rocket.persistence.realm.repositories.RealmRoomRepository) RealmUserRepository(chat.rocket.persistence.realm.repositories.RealmUserRepository)

Aggregations

EditMessageInteractor (chat.rocket.core.interactors.EditMessageInteractor)1 PermissionInteractor (chat.rocket.core.interactors.PermissionInteractor)1 MessageRepository (chat.rocket.core.repositories.MessageRepository)1 PermissionRepository (chat.rocket.core.repositories.PermissionRepository)1 PublicSettingRepository (chat.rocket.core.repositories.PublicSettingRepository)1 RoomRepository (chat.rocket.core.repositories.RoomRepository)1 RoomRoleRepository (chat.rocket.core.repositories.RoomRoleRepository)1 UserRepository (chat.rocket.core.repositories.UserRepository)1 RealmMessageRepository (chat.rocket.persistence.realm.repositories.RealmMessageRepository)1 RealmPermissionRepository (chat.rocket.persistence.realm.repositories.RealmPermissionRepository)1 RealmPublicSettingRepository (chat.rocket.persistence.realm.repositories.RealmPublicSettingRepository)1 RealmRoomRepository (chat.rocket.persistence.realm.repositories.RealmRoomRepository)1 RealmRoomRoleRepository (chat.rocket.persistence.realm.repositories.RealmRoomRoleRepository)1 RealmUserRepository (chat.rocket.persistence.realm.repositories.RealmUserRepository)1