ASM
public struct ASM : Encodable
The ASM
class is used to specify an unsubscribe group to associate the
email with.
-
The ID of the unsubscribe group to use.
Declaration
Swift
public let id: Int
-
A list of IDs that should be shown on the
Manage Subscription
page for this email.Declaration
Swift
public let groupsToDisplay: [Int]?
-
Initializes the struct with a group ID and a list of group IDs to display on the manage subscription page for the email.
Declaration
Swift
public init(groupID: Int, groupsToDisplay: [Int]? = nil)
Parameters
groupID
The ID of the unsubscribe group to use.
groupsToDisplay
An array of integers representing the IDs of other unsubscribe groups to display on the subscription page.
-
Validates that there are no more than 25 groups to display.
Declaration
Swift
public func validate() throws