createThread

expect fun createThread(contextId: String, users: List<UserWithPubKey>, managers: List<UserWithPubKey>, publicMeta: ByteArray, privateMeta: ByteArray, policies: ContainerPolicy? = null): String

Creates a new Thread in given Context.

Return

ID of the created Thread

Parameters

contextId

ID of the Context to create the Thread in

users

list of UserWithPubKey which indicates who will have access to the created Thread

managers

list of UserWithPubKey which indicates who will have access (and management rights) to the created Thread

publicMeta

public (unencrypted) metadata

privateMeta

private (encrypted) metadata

policies

additional container access policies

Throws

thrown when instance is closed

thrown when method encounters an exception

thrown when method encounters an unknown exception

actual fun createThread(contextId: String, users: List<UserWithPubKey>, managers: List<UserWithPubKey>, publicMeta: ByteArray, privateMeta: ByteArray, policies: ContainerPolicy?): String

Creates a new Thread in given Context.

Return

ID of the created Thread

Parameters

contextId

ID of the Context to create the Thread in

users

list of UserWithPubKey which indicates who will have access to the created Thread

managers

list of UserWithPubKey which indicates who will have access (and management rights) to the created Thread

publicMeta

public (unencrypted) metadata

privateMeta

private (encrypted) metadata

policies

additional container access policies

Throws

thrown when instance is closed

thrown when method encounters an exception

thrown when method encounters an unknown exception

actual external fun createThread(contextId: String, users: List<UserWithPubKey>, managers: List<UserWithPubKey>, publicMeta: ByteArray, privateMeta: ByteArray, policies: ContainerPolicy?): String

Creates a new Thread in given Context.

Return

ID of the created Thread

Parameters

contextId

ID of the Context to create the Thread in

users

list of UserWithPubKey which indicates who will have access to the created Thread

managers

list of UserWithPubKey which indicates who will have access (and management rights) to the created Thread

publicMeta

public (unencrypted) metadata

privateMeta

private (encrypted) metadata

policies

additional container access policies

Throws

thrown when instance is closed

thrown when method encounters an exception

thrown when method encounters an unknown exception