CBielstein / APRSsharp

APRS# - Modern APRS software for the amateur radio community
MIT License
12 stars 5 forks source link

Move default parameters to CLI instead of server connection #101

Closed CBielstein closed 2 years ago

CBielstein commented 2 years ago

Description

As discussed in #100, a bug was introduced in #98 wherein the default filter input (CLI pushing enter without entering a value) resulted in no packets sent by the server.

This was due to Console.ReadLine() returning an empty string when nothing was entered rather than null as was incorrectly expected.

This change addresses this by moving all "default parameters" logic to the CLI client and out of the server logic. This is consistent with a separation of concerns between the client handling user input and the server library handling server interaction.

This also allows sidestepping the issue of differentiating between a user not supplying a filter (thus wanting the default) or a user supplying explicitly NO filter (not wanting a default or anything else, e.g. the full feed for a server).

This resolves #100.

Changes

Validation