Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
AloqaIM-Android
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
AloqaIM-Android
Commits
d4f5bd10
Commit
d4f5bd10
authored
Sep 17, 2017
by
Filipe de Lima Brito
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add RoomListContract.kt
parent
6a561bd2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
107 additions
and
0 deletions
+107
-0
RoomListContract.kt
...rocket/android/fragment/chatroom/list/RoomListContract.kt
+107
-0
No files found.
app/src/main/java/chat/rocket/android/fragment/chatroom/list/RoomListContract.kt
0 → 100644
View file @
d4f5bd10
package
chat.rocket.android.fragment.chatroom.list
import
chat.rocket.core.models.Message
import
chat.rocket.core.models.User
interface
RoomListContract
{
interface
View
{
/**
* Shows a pinned message list of a room.
*
* @param dataSet The pinned message data set to show.
*/
fun
showPinnedMessages
(
dataSet
:
ArrayList
<
Message
>)
/**
* Shows a favorite message list of a room.
*
* @param dataSet The favorite message data set to show.
*/
fun
showFavoriteMessages
(
dataSet
:
ArrayList
<
Message
>)
/**
* Shows a file list of a room.
*
* @param dataSet The file data set to show.
*/
fun
showFileList
(
dataSet
:
ArrayList
<
String
>)
/**
* Shows a list of members of a room.
*
* @param dataSet The member data set to show.
*/
fun
showMemberList
(
dataSet
:
ArrayList
<
User
>)
/**
* Shows a message (e.g. An error or successful message after a request).
*
* @param message The message to show.
*/
fun
showMessage
(
message
:
String
)
}
interface
Presenter
{
/**
* Requests the pinned messages of a room.
*
* @param roomId The room ID to process the request.
* @param roomType The room type to process the request.
* @param hostname The server hostname to process the request.
* @param token The token to process the request.
* @param userId The user ID to process the request.
*/
fun
requestPinnedMessages
(
roomId
:
String
,
roomType
:
String
,
hostname
:
String
,
token
:
String
,
userId
:
String
)
/**
* Requests the favorite messages of a room.
*
* @param roomId The room ID to process the request.
* @param roomType The room type to process the request.
* @param hostname The server hostname to process the request.
* @param token The token to process the request.
* @param userId The user ID to process the request.
*/
fun
requestFavoriteMessages
(
roomId
:
String
,
roomType
:
String
,
hostname
:
String
,
token
:
String
,
userId
:
String
)
/**
* Requests the file list of a room.
*
* @param roomId The room ID to process the request.
* @param roomType The room type to process the request.
* @param hostname The server hostname to process the request.
* @param token The token to process the request.
* @param userId The user ID to process the request.
*/
fun
requestFileList
(
roomId
:
String
,
roomType
:
String
,
hostname
:
String
,
token
:
String
,
userId
:
String
)
/**
* Requests the member list of a room.
*
* @param roomId The room ID to process the request.
* @param roomType The room type to process the request.
* @param hostname The server hostname to process the request.
* @param token The token to process the request.
* @param userId The user ID to process the request.
*/
fun
requestMemberList
(
roomId
:
String
,
roomType
:
String
,
hostname
:
String
,
token
:
String
,
userId
:
String
)
}
}
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment