Skip to content

Commit

Permalink
update the initializer
Browse files Browse the repository at this point in the history
  • Loading branch information
petrpavlik committed Dec 18, 2024
1 parent 01bf0e9 commit fc1e246
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions Sources/IndiePitcherSwift/dtos.swift
Original file line number Diff line number Diff line change
Expand Up @@ -297,13 +297,17 @@ public struct SendEmailToMailingList: Codable, Sendable {
/// - list: The email will be sent to contacts subscribed to this list. Pass "important" to send the email to all of your contacts.
/// - delaySeconds: Delay sending of this email by the amount of seconds you provide.
/// - delayUntilDate: Delay sending of this email by the amount of seconds you provide.
public init(subject: String, body: String, bodyFormat: EmailBodyFormat, list: String = "important", delaySeconds: TimeInterval? = nil, delayUntilDate: Date? = nil) {
/// - trackEmailOpens: Whether to track email opens. Allow you to overwrite the project's global setting.
/// - trackEmailLinkClicks: Whether to track email opens. Allow you to overwrite the project's global setting.
public init(subject: String, body: String, bodyFormat: EmailBodyFormat, list: String = "important", delaySeconds: TimeInterval? = nil, delayUntilDate: Date? = nil, trackEmailOpens: Bool? = nil, trackEmailLinkClicks: Bool? = nil) {
self.subject = subject
self.body = body
self.bodyFormat = bodyFormat
self.list = list
self.delaySeconds = delaySeconds
self.delayUntilDate = delayUntilDate
self.trackEmailOpens = trackEmailOpens
self.trackEmailLinkClicks = trackEmailLinkClicks
}

/// The subject of the email. Supports personalization.
Expand Down Expand Up @@ -331,7 +335,7 @@ public struct SendEmailToMailingList: Codable, Sendable {
var trackEmailOpens: Bool?

/// Whether to track email opens.
///
///
/// Allow you to overwrite the project's global setting.
/// - Default: `nil`- Uses the project's global setting.
var trackEmailLinkClicks: Bool?
Expand Down

0 comments on commit fc1e246

Please sign in to comment.