SiteIdentifier

@objc(GFYSiteIdentifier)
public class SiteIdentifier : NSObject, Codable

Unique site identifier

This is a 5-character, case-sensitive, alphanumeric string provided to you by Granify.

  • The underlying String site identifier

    Declaration

    Swift

    @objc
    public let identifier: String
  • Creates a SiteIdentifier instance

    Returns nil if identifier is not a 5-character alphanumeric string.

    Declaration

    Swift

    @objc
    public init?(identifier: String)

    Parameters

    identifier

    The Granify site identifier string

  • Encodes an instance of SiteIdentifier

    Declaration

    Swift

    public func encode(to encoder: Encoder) throws
  • Retrieves String representation of SiteIdentifier

    Declaration

    Swift

    public override var description: String { get }