Skip to content

Commit

Permalink
[freeboxos] Fix enabling/disabling of Mac OS file sharing (openhab#17203
Browse files Browse the repository at this point in the history
)

Fix openhab#17200

Signed-off-by: Laurent Garnier <[email protected]>
  • Loading branch information
lolodomo authored Aug 4, 2024
1 parent 1499928 commit a2f54ca
Showing 1 changed file with 1 addition and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,22 +31,8 @@ public class AfpManager extends ConfigurableRest<AfpManager.Afp, AfpManager.Conf
protected static class ConfigResponse extends Response<Afp> {
}

protected static record Afp(boolean enabled, boolean guestAllow, ServerType serverType, @Nullable String loginName,
protected static record Afp(boolean enabled, boolean guestAllow, String serverType, @Nullable String loginName,
@Nullable String loginPassword) {
private enum ServerType {
POWERBOOK,
POWERMAC,
MACMINI,
IMAC,
MACBOOK,
MACBOOKPRO,
MACBOOKAIR,
MACPRO,
APPLETV,
AIRPORT,
XSERVE,
UNKNOWN
}
}

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

0 comments on commit a2f54ca

Please sign in to comment.