Skip to content

Commit aeb209d

Browse files
committed
Add another legacy device and rename properly
1 parent bc10af8 commit aeb209d

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

library/src/main/java/me/proxer/library/enums/Device.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
public enum Device {
1313
@Json(name = "")UNSPECIFIED,
1414
@Json(name = "default")DEFAULT,
15-
@Json(name = "desktop")DESKTOP,
16-
@Json(name = "mobile")MOBILE
15+
@Json(name = "mobile")MOBILE,
16+
@Json(name = "desktop")LEGACY_DESKTOP,
17+
@Json(name = "html")LEGACY_HTML
1718
}

library/src/test/java/me/proxer/library/util/ProxerUrlsTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ public void testUserWeb() {
9595

9696
@Test
9797
public void testUserWebWithDevice() {
98-
assertThat(ProxerUrls.userWeb("2", Device.DESKTOP).toString())
98+
assertThat(ProxerUrls.userWeb("2", Device.LEGACY_DESKTOP).toString())
9999
.isEqualTo("https://proxer.me/user/2?device=desktop");
100100
}
101101

0 commit comments

Comments
 (0)