ScatterMessage

data class ScatterMessage(val shm: ShmCompat?, val fromFingerprint: UUID?, val toFingerprint: UUID?, val application: String, val extension: String, val mime: String, val filename: String, val sendDate: Date, val receiveDate: Date, val fileDescriptor: ParcelFileDescriptor?, val isFile: Boolean, val id: ParcelUuid, val forwardMeshtastic: ForwardMeshtastic? = null) : Parcelable

Represents a messages sent or received via Scatterbrain.

Constructors

Link copied to clipboard
constructor(shm: ShmCompat?, fromFingerprint: UUID?, toFingerprint: UUID?, application: String, extension: String, mime: String, filename: String, sendDate: Date, receiveDate: Date, fileDescriptor: ParcelFileDescriptor?, isFile: Boolean, id: ParcelUuid, forwardMeshtastic: ForwardMeshtastic? = null)

Types

Link copied to clipboard
open class Builder

Builder class used to construct a ScatterMessage

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

name of application this message belongs to

Link copied to clipboard
Link copied to clipboard

file extension of this message. Autogenerated if message is not a file

Link copied to clipboard
Link copied to clipboard

name of file on disk, null if not a file message

Link copied to clipboard

Allow forwarding this message to meshtastic routers, if small

Link copied to clipboard

identity fingerprint of sender, null if anonymous

Link copied to clipboard

a unique id referring to this message, valid within the local router only

Link copied to clipboard

if this message contains a file descriptor, if false message contains inline bytes

Link copied to clipboard

mime type for this message

Link copied to clipboard

timestamp when this message was received by Scatterbrain

Link copied to clipboard

timestamp when this message was created

Link copied to clipboard

contents of message, null if message is a file

Link copied to clipboard

identity fingerprint of recipient. Currently unused

Functions

Link copied to clipboard
open override fun describeContents(): Int
Link copied to clipboard
open override fun writeToParcel(parcel: Parcel, i: Int)