NodeDetailViewModel
class NodeDetailViewModel(savedStateHandle: SavedStateHandle, nodeManagementActions: NodeManagementActions, nodeRequestActions: NodeRequestActions, serviceRepository: ServiceRepository, getNodeDetailsUseCase: GetNodeDetailsUseCase, ensureRemoteAdminSession: EnsureRemoteAdminSessionUseCase, observeRemoteAdminSessionStatus: ObserveRemoteAdminSessionStatusUseCase, snackbarManager: SnackbarManager) : ViewModel(source)
ViewModel for the Node Details screen, coordinating data from the node database, mesh logs, and radio configuration.
Constructors
Link copied to clipboard
constructor(savedStateHandle: SavedStateHandle, nodeManagementActions: NodeManagementActions, nodeRequestActions: NodeRequestActions, serviceRepository: ServiceRepository, getNodeDetailsUseCase: GetNodeDetailsUseCase, ensureRemoteAdminSession: EnsureRemoteAdminSessionUseCase, observeRemoteAdminSessionStatus: ObserveRemoteAdminSessionStatusUseCase, snackbarManager: SnackbarManager)
Properties
Functions
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Returns the type-safe navigation route for a direct message to this node.
Link copied to clipboard
Dispatches high-level node management actions like removal, muting, or favoriting.
Link copied to clipboard
Link copied to clipboard
Ensure a remote-admin session passkey is fresh, then request navigation to the remote-admin screen. Surfaces a snackbar with the appropriate guidance on EnsureSessionResult.Disconnected or EnsureSessionResult.Timeout.
Link copied to clipboard
Re-fetch device metadata (firmware/edition/role) for destNum. Refreshes the session passkey as a side effect.
Link copied to clipboard