Skip to content

Commit

Permalink
Add model fields (#12)
Browse files Browse the repository at this point in the history
  • Loading branch information
noahsmartin authored Dec 22, 2024
1 parent 065491f commit 528352b
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Sources/Models/DistributionReleaseInfo.swift
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,13 @@ public final class DistributionReleaseInfo: NSObject, Decodable {
public let version: String
public let appId: String
public let downloadUrl: String
public let iconUrl: String?
public let appName: String
private let createdDate: String
public let loginRequiredForDownload: Bool

public var created: Date? {
let formatter = ISO8601DateFormatter()
return formatter.date(from: createdDate)
}
}

0 comments on commit 528352b

Please sign in to comment.