UpdateContactRequest

data class UpdateContactRequest(account: String, address: JsonAddress, name: String?, color: String?, inboxPosition: Int?) : SignaldRequestBodyV1<Profile>

update information about a local contact

Constructors

Link copied to clipboard
fun UpdateContactRequest(account: String, address: JsonAddress, name: String? = null, color: String? = null, inboxPosition: Int? = null)

Functions

Link copied to clipboard
fun submit(socketCommunicator: SocketCommunicator): Profile
open override fun submit(socketCommunicator: SocketCommunicator, id: String): Profile
Link copied to clipboard
suspend fun submitSuspend(socketCommunicator: SuspendSocketCommunicator): Profile
open suspend override fun submitSuspend(socketCommunicator: SuspendSocketCommunicator, id: String): Profile

Properties

Link copied to clipboard
val account: String

Example: "0cc10e61-d64c-4dbc-b51c-334f7dd45a4a"

Link copied to clipboard
val address: JsonAddress
Link copied to clipboard
val color: String? = null
Link copied to clipboard
val id: String

The id to include in the request. This is expected to be present in the response JSON.

Link copied to clipboard
val inboxPosition: Int? = null
Link copied to clipboard
val name: String? = null
Link copied to clipboard
val version: String

The version to include in the request. As this class won't be used to deserialize the response, the Required annotation is being used to force this field to be serialized