Skip to content

Commit

Permalink
Merge pull request #349 from maxmind/greg/satellite-connection-type
Browse files Browse the repository at this point in the history
Add SATELLITE to the ConnectionType enum
  • Loading branch information
shadromani authored Jul 27, 2023
2 parents 65a169e + 1b26b88 commit 88416aa
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
CHANGELOG
=========

4.1.0
------------------

* Added `SATELLITE` to the `ConnectionType` enum.

4.0.1 (2023-03-02)
------------------

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,11 @@ public class ConnectionTypeResponse extends AbstractResponse {
* The enumerated values that connection-type may take.
*/
public enum ConnectionType {
DIALUP("Dialup"), CABLE_DSL("Cable/DSL"), CORPORATE("Corporate"), CELLULAR(
"Cellular");
DIALUP("Dialup"),
CABLE_DSL("Cable/DSL"),
CORPORATE("Corporate"),
CELLULAR("Cellular"),
SATELLITE("Satellite");

private final String name;

Expand Down Expand Up @@ -54,6 +57,8 @@ public static ConnectionType fromString(String s) {
return ConnectionType.CORPORATE;
case "Cellular":
return ConnectionType.CELLULAR;
case "Satellite":
return ConnectionType.SATELLITE;
default:
return null;
}
Expand Down

0 comments on commit 88416aa

Please sign in to comment.