Skip to content
Snippets Groups Projects
Commit 33f58f67 authored by Kamal Bramwell's avatar Kamal Bramwell
Browse files

Implemented GroupId

parent 7d9ba5fe
No related branches found
No related tags found
No related merge requests found
......@@ -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<GroupId>
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<GroupId> {
return decodeArray(group.groups)
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment