mirror of
https://github.com/openhab/openhab-addons.git
synced 2025-01-10 15:11:59 +01:00
[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:
parent
149992859e
commit
a2f54caab6
@ -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 {
|
||||||
|
Loading…
Reference in New Issue
Block a user