Skip to content

Commit 88416aa

Browse files
authored
Merge pull request #349 from maxmind/greg/satellite-connection-type
Add SATELLITE to the ConnectionType enum
2 parents 65a169e + 1b26b88 commit 88416aa

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
CHANGELOG
22
=========
33

4+
4.1.0
5+
------------------
6+
7+
* Added `SATELLITE` to the `ConnectionType` enum.
8+
49
4.0.1 (2023-03-02)
510
------------------
611

src/main/java/com/maxmind/geoip2/model/ConnectionTypeResponse.java

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,11 @@ public class ConnectionTypeResponse extends AbstractResponse {
2020
* The enumerated values that connection-type may take.
2121
*/
2222
public enum ConnectionType {
23-
DIALUP("Dialup"), CABLE_DSL("Cable/DSL"), CORPORATE("Corporate"), CELLULAR(
24-
"Cellular");
23+
DIALUP("Dialup"),
24+
CABLE_DSL("Cable/DSL"),
25+
CORPORATE("Corporate"),
26+
CELLULAR("Cellular"),
27+
SATELLITE("Satellite");
2528

2629
private final String name;
2730

@@ -54,6 +57,8 @@ public static ConnectionType fromString(String s) {
5457
return ConnectionType.CORPORATE;
5558
case "Cellular":
5659
return ConnectionType.CELLULAR;
60+
case "Satellite":
61+
return ConnectionType.SATELLITE;
5762
default:
5863
return null;
5964
}

0 commit comments

Comments
 (0)