Skip to content

Commit a2f54ca

Browse files
authored
[freeboxos] Fix enabling/disabling of Mac OS file sharing (openhab#17203)
Fix openhab#17200 Signed-off-by: Laurent Garnier <[email protected]>
1 parent 1499928 commit a2f54ca

File tree

1 file changed

+1
-15
lines changed
  • bundles/org.openhab.binding.freeboxos/src/main/java/org/openhab/binding/freeboxos/internal/api/rest

1 file changed

+1
-15
lines changed

bundles/org.openhab.binding.freeboxos/src/main/java/org/openhab/binding/freeboxos/internal/api/rest/AfpManager.java

+1-15
Original file line numberDiff line numberDiff line change
@@ -31,22 +31,8 @@ public class AfpManager extends ConfigurableRest<AfpManager.Afp, AfpManager.Conf
3131
protected static class ConfigResponse extends Response<Afp> {
3232
}
3333

34-
protected static record Afp(boolean enabled, boolean guestAllow, ServerType serverType, @Nullable String loginName,
34+
protected static record Afp(boolean enabled, boolean guestAllow, String serverType, @Nullable String loginName,
3535
@Nullable String loginPassword) {
36-
private enum ServerType {
37-
POWERBOOK,
38-
POWERMAC,
39-
MACMINI,
40-
IMAC,
41-
MACBOOK,
42-
MACBOOKPRO,
43-
MACBOOKAIR,
44-
MACPRO,
45-
APPLETV,
46-
AIRPORT,
47-
XSERVE,
48-
UNKNOWN
49-
}
5036
}
5137

5238
public AfpManager(FreeboxOsSession session, UriBuilder uriBuilder) throws FreeboxException {

0 commit comments

Comments
 (0)