File tree Expand file tree Collapse file tree 1 file changed +16
-1
lines changed
Sources/ITunesSearchClient Expand file tree Collapse file tree 1 file changed +16
-1
lines changed Original file line number Diff line number Diff line change 1717
1818//
1919// AppInfo.swift
20- //
20+ //
2121//
2222// Created by Mykhailo Bondarenko on 12.04.2024.
2323//
@@ -41,4 +41,19 @@ public struct AppInfo {
4141 self . bundleId = result. bundleId
4242 self . currentVersionReleaseDate = result. currentVersionReleaseDate
4343 }
44+
45+ /// Initializes a new `AppInfo` instance with optional parameters.
46+ /// - Parameters:
47+ /// - version: The version of the app.
48+ /// - bundleId: The bundle ID of the app.
49+ /// - currentVersionReleaseDate: The date the current version of the app was released in ISO 8601 format (YYYY-MM-DD).
50+ public init (
51+ version: String ? = nil ,
52+ bundleId: String ? = nil ,
53+ currentVersionReleaseDate: String ? = nil
54+ ) {
55+ self . version = version
56+ self . bundleId = bundleId
57+ self . currentVersionReleaseDate = currentVersionReleaseDate
58+ }
4459}
You can’t perform that action at this time.
0 commit comments