[freeboxos] Fix enabling/disabling of Mac OS file sharing (#17203)

Fix #17200

Signed-off-by: Laurent Garnier <lg.hc@free.fr>
This commit is contained in:
lolodomo 2024-08-04 09:21:22 +02:00 committed by GitHub
parent 149992859e
commit a2f54caab6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -31,22 +31,8 @@ public class AfpManager extends ConfigurableRest<AfpManager.Afp, AfpManager.Conf
protected static class ConfigResponse extends Response<Afp> { 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) { @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 { public AfpManager(FreeboxOsSession session, UriBuilder uriBuilder) throws FreeboxException {