SAPcpmsLockWipePolicy

public struct SAPcpmsLockWipePolicy
extension SAPcpmsLockWipePolicy: CustomStringConvertible, CustomDebugStringConvertible

Describes the SAPcpms Lock-Wipe policy structure

  • Parameter from the mobile services’ Lock-Wipe policy which sets the lock day number after the disconnected period

    Declaration

    Swift

    public let lockDisconnectedPeriod: Int
  • Parameter from the mobile services’ Lock-Wipe policy which sets the wipe day number after the disconnected period

    Declaration

    Swift

    public let wipeDisconnectedPeriod: Int
  • Initialize the structure

    Declaration

    Swift

    public init(lockDisconnectedPeriod: Int = 0, wipeDisconnectedPeriod: Int = 0)

    Parameters

    lockDisconnectedPeriod

    parameter from the mobile services’ Lock-Wipe policy which sets the lock day number after the disconnected period

    wipeDisconnectedPeriod

    parameter from the mobile services’ Lock-Wipe policy which sets the wipe day number after the disconnected period

  • Initialize the structure from [String: Any] dictionary. For example when the policy received from mobile services and should parse the json. Example structure, which is part of the Settings structure downloaded from mobile services: { “mobileservices”: { “settingsExchange”: { … “blockWipingPolicy”: { “blockWipeEnabled”: “true”, “blockDisconnectedPeriod”: 1, “wipeDisconnectedPeriod”: 20 } … } } } If the enabled property is false, the init returns nil.

    Throws

    ConfigurationError if the received config is invalid.

    Declaration

    Swift

    public init?(sapcpmsSettings: Any) throws

    Parameters

    sapcpmsSettings

    ‘Any’ type object which can be converted to [String: Any]

  • Initialize the structure from [String: Any] dictionary. For example when the policy received from mobile services and should parse the json. Example structure, which is part of the Settings structure downloaded from mobile services: … “blockWipingPolicy”: { “blockWipeEnabled”: “true”, “blockDisconnectedPeriod”: 1, “wipeDisconnectedPeriod”: 20 } … If the enabled property is false, the init returns nil.

    Throws

    ConfigurationError if the received config is invalid.

    Declaration

    Swift

    @available(*, deprecated, renamed: "init(sapcpmsLockWipePolicy:﹚")
    public init?(spcpmsLockWipeSettings: Any) throws

    Parameters

    spcpmsLockWipeSettings

    ‘Any’ type object which can be converted to [String: Any]

  • Initialize the structure from [String: Any] dictionary. For example when the policy received from mobile services and should parse the json. Example structure, which is part of the Settings structure downloaded from mobile services: … “blockWipingPolicy”: { “blockWipeEnabled”: “true”, “blockDisconnectedPeriod”: 1, “wipeDisconnectedPeriod”: 20 } … If the enabled property is false or sapcpmsLockWipePolicy is an empty dictionary, the init returns nil.

    Throws

    ConfigurationError if the received config is invalid.

    Declaration

    Swift

    public init?(sapcpmsLockWipePolicy: Any) throws

    Parameters

    sapcpmsLockWipePolicy

    ‘Any’ type object which can be converted to [String: Any]

  • Declaration

    Swift

    public var description: String { get }
  • Declaration

    Swift

    public var debugDescription: String { get }