-
Notifications
You must be signed in to change notification settings - Fork 33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Extend the possible connectivity values #140
Comments
Currently, we have two possible connectivity statuses: "SMS" and "Data". If we're confident that these are the only two possible statuses, then "CONNECTIVITY_DATA_SMS" seems appropriate. However, I lean towards passing multiple statuses in the same response, such as "CONNECTED_DATA" and "CONNECTED_SMS", which would accommodate any future requirements if a third status is introduced. |
AdditionallyWhat about also "UNKNOWN" as a possible value? Wdyt? I have added an issue about this topic #148 |
@akoshunyadi , personally I recommend that we go with an array as response.
|
further thoughts - thanks @gmuratk for the discussion. -- same structure will help in returning different connectiviity-types in the future IMS_DATA for example. |
May I ask how to understand these two enumeration values? |
@chinaunicomyangfan yes, that's correct |
I would propose that So we could have the following response when the device is not reachable:
or the following (example) when the device is reachable:
It would then be straightforward to extend |
I like @eric-murray proposal. Looks clean. |
Hi all, btw we've got some feedback from prospects and they would prefer for the API response to be the way you have all suggested which is an |
Problem description
Currently we have 3 different values for GET /connectivity
- CONNECTED_DATA
- CONNECTED_SMS
- NOT_CONNECTED
DATA was meant to be returned when data connectivity is given, regardless of the SMS connectivity. But in some cases a finer differentiation is needed.
Possible evolution
CONNECTIVITY_DATA should be returned if only data connectivity is given but no SMS.
either a new value CONNECTIVITY_DATA_SMS should be introduced
or more than 1 value should be returned
The same applies for the connectivity events.
Alternative solution
Additional context
The text was updated successfully, but these errors were encountered: