Skip to content

Commit

Permalink
Merge pull request #39 from niscy-eudiw/main
Browse files Browse the repository at this point in the history
Update RequestItem struct to use optional fields
  • Loading branch information
phisakel authored Nov 19, 2024
2 parents 12f22d0 + 890efe1 commit a7f1300
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions Sources/MdocDataTransfer18013/RequestItem.swift
Original file line number Diff line number Diff line change
Expand Up @@ -16,18 +16,18 @@ limitations under the License.
import Foundation

public struct RequestItem: Sendable {
public init(elementIdentifier: String, intentToRetail: Bool, isOptional: Bool) {
public init(elementIdentifier: String, intentToRetail: Bool? = nil, isOptional: Bool? = nil) {
self.elementIdentifier = elementIdentifier
self.intentToRetail = intentToRetail
self.isOptional = isOptional
}
public init(elementIdentifier: String) {
self.elementIdentifier = elementIdentifier
self.intentToRetail = false
self.isOptional = false
self.intentToRetail = nil
self.isOptional = nil
}

let elementIdentifier: String
let intentToRetail: Bool
let isOptional: Bool
public let elementIdentifier: String
public let intentToRetail: Bool?
public let isOptional: Bool?
}

0 comments on commit a7f1300

Please sign in to comment.