Package-level declarations

Types

Link copied to clipboard

A discriminated union representing any value that can be represented in CBOR (Concise Binary Object Representation) format, as used by Ditto's data store and attachment APIs.

Link copied to clipboard

A discriminated union representing any value that can be expressed in JSON format, as used by Ditto's presence and peer metadata APIs.

Functions

Link copied to clipboard
@JvmName(name = "dittoAttachment_toDittoCbor")
fun DittoAttachment.toDittoCbor(): DittoCborSerializable
@JvmName(name = "array_Serializable_toDittoCbor")
fun Array<DittoCborSerializable>.toDittoCbor(): DittoCborSerializable.ArrayValue
@JvmName(name = "byteToDittoCbor")
fun Byte.toDittoCbor(): DittoCborSerializable
@JvmName(name = "byteArrayToDittoCbor")
fun ByteArray.toDittoCbor(): DittoCborSerializable.ByteString
@JvmName(name = "charToDittoCbor")
fun Char.toDittoCbor(): DittoCborSerializable.Utf8String
@JvmName(name = "doubleToDittoCbor")
fun Double.toDittoCbor(): DittoCborSerializable.DoubleValue
@JvmName(name = "enumToDittoCbor")
fun Enum<*>.toDittoCbor(): DittoCborSerializable.Utf8String
@JvmName(name = "floatToDittoCbor")
fun Float.toDittoCbor(): DittoCborSerializable.FloatValue
@JvmName(name = "intToDittoCbor")
fun Int.toDittoCbor(): DittoCborSerializable
@JvmName(name = "longToDittoCbor")
fun Long.toDittoCbor(): DittoCborSerializable
@JvmName(name = "shortToDittoCbor")
fun Short.toDittoCbor(): DittoCborSerializable
@JvmName(name = "stringToDittoCbor")
fun String.toDittoCbor(): DittoCborSerializable.Utf8String
@JvmName(name = "ubyteArrayToDittoCbor")
fun UByteArray.toDittoCbor(): DittoCborSerializable.ByteString
@JvmName(name = "list_Serializable_toDittoCbor")
fun List<DittoCborSerializable>.toDittoCbor(): DittoCborSerializable.ArrayValue
@JvmName(name = "map_Serializable_Serializable_toDittoCbor")
fun Map<DittoCborSerializable, DittoCborSerializable>.toDittoCbor(): DittoCborSerializable.Dictionary
@JvmName(name = "map_String_Serializable_toDittoCbor")
fun Map<String, DittoCborSerializable>.toDittoCbor(): DittoCborSerializable.Dictionary
@JvmName(name = "map_String_String_toDittoCbor")
fun Map<String, String>.toDittoCbor(): DittoCborSerializable.Dictionary
Link copied to clipboard

Converts any array to a CBOR representation. Values must be one of the following types: String, Byte, Short, Int, Long, UInt, ULong, Float, Double, Boolean, Char, Enum, UByte, ByteArray, UByteArray, null, or a List, Array, Set, or Map of such types.

Converts any list to a CBOR representation. Values must be one of the following types: String, Byte, Short, Int, Long, UInt, ULong, Float, Double, Boolean, Char, Enum, UByte, ByteArray, UByteArray, null, or a List, Array, Set, or Map of such types.

Converts a map with String keys to a CBOR representation. Values must be one of the following types: String, Byte, Short, Int, Long, UInt, ULong, Float, Double, Boolean, Char, Enum, UByte, ByteArray, UByteArray, null, or a List, Array, Set, or Map of such types.

Converts any set to a CBOR representation. Values must be one of the following types: String, Byte, Short, Int, Long, UInt, ULong, Float, Double, Boolean, Char, Enum, UByte, ByteArray, UByteArray, null, or a List, Array, Set, or Map of such types.

Link copied to clipboard
Link copied to clipboard

Converts any array to a JSON representation. Values must be one of the following types: Boolean, Int, Long, Float, Double, Short, Byte, Char, String, Enum, UByte, UInt, null, or a List, Array, Set, or Map of such types.

Converts any list to a JSON representation. Values must be one of the following types: Boolean, Int, Long, Float, Double, Short, Byte, Char, String, Enum, UByte, UInt, null, or a List, Array, Set, or Map of such types.

Converts any map to a JSON representation. Keys must be Strings and values must be one of the following types: Boolean, Int, Long, Float, Double, Short, Byte, Char, String, Enum, UByte, UInt, null, or a List, Array, Set, or Map of such types.

Converts any set to a JSON representation. Values must be one of the following types: Boolean, Int, Long, Float, Double, Short, Byte, Char, String, Enum, UByte, UInt, null, or a List, Array, Set, or Map of such types.