ProfileOperation

public enum ProfileOperation

A value representing an operation on the user profile.

Cases

  • An operation that clears the profile.

    Declaration

    Swift

    case clear
  • An operation that sets the profile.

    The value is the new value of the whole profile as a JSON dictionary.

    Declaration

    Swift

    case set(value: [String : Any])
  • An operation that sets the value of a key of the profile.

    The path is the path of the key to update, using the foo/bar/.../key notation. When the path does not contain any / (slash) character, it corresponds to the name of a key at the top-level of the profile.

    The value if the new value for the key at the given path. When the value is either nil or NSNull(), it clears the value of the key. When a key is cleared, it does not appear in the profile anymore.

    Declaration

    Swift

    case update(path: String, value: Any?)