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

Fix #17200

Signed-off-by: Laurent Garnier <lg.hc@free.fr>
Signed-off-by: Ciprian Pascu <contact@ciprianpascu.ro>
This commit is contained in:
lolodomo 2024-08-04 09:21:22 +02:00 committed by Ciprian Pascu
parent 0541462a23
commit efa5fa7d6b

View File

@ -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 {