pierr3 / TrackAudio

A next generation Audio-For-VATSIM ATC Client for macOS, Linux and Windows
Other
38 stars 8 forks source link

Provide an `isAvailable` property in response to `kGetStationState` requests #150

Closed neilenns closed 1 month ago

neilenns commented 2 months ago

Right now if you send a kGetStationState message you only get a response back if the callsign is actually in TrackAudio. This makes it impossible for clients to know when a requested station isn't in TrackAudio.

To address this, add an isAvailable property. If the station is there, include it set to true in addition to all the other properties. If the station isn't there send back a kStationStateUpdate message that includes the callsign and isAvailable set to false.