SAPcpmsLogSettings

extension SAPcpmsLogSettings
  • 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”: { … “logSettings”: { “featureEnabled”: “true”, “logEnabled”: “true”, “logEntryExpiry”: “7”, “logLevel”: “NONE”, “logMaxFileNum”: “0”, “logMaxFileSize”: “0” } … } } } If the featureEnabled 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: String] 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: … “logSettings”: { “featureEnabled”: “true”, “logEnabled”: “true”, “logEntryExpiry”: “7”, “logLevel”: “NONE”, “logMaxFileNum”: “0”, “logMaxFileSize”: “0” }, … If the featureEnabled property is false, the init returns nil.

    Throws

    ConfigurationError if the received config is invalid.

    Declaration

    Swift

    public init?(sapcpmsLogSettings: Any) throws

    Parameters

    sapcpmsLogSettings

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