ExternalUserId

@objcMembers
public class ExternalUserId : NSObject, NSCoding, NSSecureCoding, JSONConvertible

Defines the User Id Object from an External Thrid Party Source

  • Indicates whether the class supports secure coding.

    Declaration

    Swift

    public static var supportsSecureCoding: Bool { get }

Properties

  • The source of the external user ID.

    Declaration

    Swift

    public var source: String
  • The identifier of the external user ID.

    Declaration

    Swift

    public var identifier: String
  • The type of the external user ID, represented as an optional NSNumber.

    Declaration

    Swift

    public var atype: NSNumber?
  • ext

    Additional attributes related to the external user ID, represented as an optional dictionary.

    Declaration

    Swift

    public var ext: [String : Any]?

Initialization

  • Initialize ExternalUserId Class

    Declaration

    Swift

    public init(source: String, identifier: String, atype: NSNumber? = nil, ext: [String : Any]? = nil)

    Parameters

    source

    Source of the External User Id String.

    identifier

    String of the External User Id.

    atype

    (Optional) Int of the External User Id.

    ext

    (Optional) Dictionary of the External User Id.

  • Encodes the properties of the class using the given encoder.

    Declaration

    Swift

    public func encode(with coder: NSCoder)
  • Initializes an ExternalUserId instance from the given decoder.

    Declaration

    Swift

    public required init?(coder: NSCoder)
  • Converts the ExternalUserId instance to a JSON dictionary.

    Declaration

    Swift

    public func toJSONDictionary() -> [AnyHashable : Any]