mirror of
https://github.com/meshtastic/Meshtastic-Android.git
synced 2026-05-24 06:40:37 -04:00
refactor: remove getPacketId() from public interface
- Remove getPacketId() from MessageSender interface (SDK owns packet IDs) - Remove requestId parameter from requestTraceroute/requestNeighborInfo - Make getPacketId() private in SdkRadioController (still used internally for delivery tracking correlation) - Replace radioController.getPacketId() in map with local Random.nextInt() for waypoint ID generation (only needs uniqueness, not SDK correlation) - Remove messageSender dependency from CommonNodeRequestActions Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
@@ -140,11 +140,11 @@ class FakeRadioController :
|
||||
|
||||
override suspend fun requestUserInfo(destNum: Int) {}
|
||||
|
||||
override suspend fun requestTraceroute(requestId: Int, destNum: Int) {}
|
||||
override suspend fun requestTraceroute(destNum: Int) {}
|
||||
|
||||
override suspend fun requestTelemetry(destNum: Int, type: TelemetryType) {}
|
||||
|
||||
override suspend fun requestNeighborInfo(requestId: Int, destNum: Int) {}
|
||||
override suspend fun requestNeighborInfo(destNum: Int) {}
|
||||
|
||||
override suspend fun requestStoreForwardHistory(since: Int?, serverNodeNum: Int?): Boolean {
|
||||
lastStoreForwardHistoryRequest = since to serverNodeNum
|
||||
@@ -162,8 +162,6 @@ class FakeRadioController :
|
||||
block(edit)
|
||||
}
|
||||
|
||||
override fun getPacketId(): Int = 1
|
||||
|
||||
override fun startProvideLocation() {
|
||||
startProvideLocationCalled = true
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user