Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
Elixxir dApps SDK Kotlin
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mobile
android
Elixxir dApps SDK Kotlin
Commits
33f58f67
Commit
33f58f67
authored
2 years ago
by
Kamal Bramwell
Browse files
Options
Downloads
Patches
Plain Diff
Implemented GroupId
parent
7d9ba5fe
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
xxclient/src/main/java/io/elixxir/xxclient/groupchat/GroupChat.kt
+8
-7
8 additions, 7 deletions
.../src/main/java/io/elixxir/xxclient/groupchat/GroupChat.kt
with
8 additions
and
7 deletions
xxclient/src/main/java/io/elixxir/xxclient/groupchat/GroupChat.kt
+
8
−
7
View file @
33f58f67
...
...
@@ -7,17 +7,18 @@ import io.elixxir.xxclient.models.BindingsModel.Companion.decode
import
io.elixxir.xxclient.models.BindingsModel.Companion.decodeArray
import
io.elixxir.xxclient.models.GroupReport
import
io.elixxir.xxclient.models.GroupSendReport
import
io.elixxir.xxclient.utils.GroupId
interface
GroupChat
{
val
numGroups
:
Long
fun
getGroup
(
groupId
:
ByteArray
):
Group
fun
getGroups
():
List
<
Group
>
fun
getGroup
(
groupId
:
GroupId
):
Group
fun
getGroups
():
List
<
Group
Id
>
fun
makeGroup
(
membership
:
ByteArray
,
message
:
ByteArray
,
name
:
ByteArray
):
GroupReport
?
fun
joinGroup
(
trackedGroupId
:
ByteArray
)
fun
leaveGroup
(
groupId
:
ByteArray
)
fun
resendRequest
(
groupId
:
ByteArray
):
GroupReport
?
fun
send
(
groupId
:
ByteArray
,
message
:
ByteArray
,
tag
:
String
?):
GroupSendReport
?
fun
joinGroup
(
trackedGroupId
:
GroupId
)
fun
leaveGroup
(
groupId
:
GroupId
)
fun
resendRequest
(
groupId
:
GroupId
):
GroupReport
?
fun
send
(
groupId
:
GroupId
,
message
:
ByteArray
,
tag
:
String
?):
GroupSendReport
?
}
open
class
GroupChatAdapter
(
...
...
@@ -32,7 +33,7 @@ open class GroupChatAdapter(
)
}
override
fun
getGroups
():
List
<
Group
>
{
override
fun
getGroups
():
List
<
Group
Id
>
{
return
decodeArray
(
group
.
groups
)
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment