NetworkDeviceLink

@Serializable
data class NetworkDeviceLink(val shortCode: String = "", val url: String = "", val description: String? = null, val type: String = TYPE_INTERNAL, val targets: List<String>? = null, val hwModels: List<Int>? = null, val marketplace: String? = null, val regions: List<String>? = null)(source)

A single resolved device link from the Meshtastic API.

Parameters

shortCode

msh.to short code, e.g. rokland-t-deck-plus.

url

the user-facing https://msh.to/<shortCode> link (the retailer destination is intentionally not exposed).

description

human-readable label.

type

authoritative classification: TYPE_INTERNAL, TYPE_VENDOR, or TYPE_MARKETPLACE.

targets

device platformioTargets this link is attached to; null = untriaged, empty = device-agnostic.

hwModels

hwModel ints derived from targets server-side (parallel list).

marketplace

retailer key (e.g. rokland) for marketplace links, else null.

regions

ISO 3166-1 alpha-2 shipping regions; null = worldwide (no region filter).

Constructors

Link copied to clipboard
constructor(shortCode: String = "", url: String = "", description: String? = null, type: String = TYPE_INTERNAL, targets: List<String>? = null, hwModels: List<Int>? = null, marketplace: String? = null, regions: List<String>? = null)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val url: String

Functions

Link copied to clipboard

Pure mapping to the cached domain model. Callers are expected to drop TYPE_INTERNAL links (GitHub, YouTube, …), which never belong to a device's purchase section.