Skip to content

Commit

Permalink
add missing initializer
Browse files Browse the repository at this point in the history
  • Loading branch information
amine2233 committed Nov 23, 2020
1 parent 699f73a commit 5497ef0
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
Expand Up @@ -27,4 +27,15 @@ public struct Notifications: Codable {
case updatedAt = "updated_at"
case url
}

public init(id: String, lastReadAt: Date?, reason: String, repository: Repository, subject: Subject, unread: Bool, updatedAt: Date, url: URL) {
self.id = id
self.lastReadAt = lastReadAt
self.reason = reason
self.repository = repository
self.subject = subject
self.unread = unread
self.updatedAt = updatedAt
self.url = url
}
}
7 changes: 7 additions & 0 deletions Sources/GitHubModel/Subject.swift
Expand Up @@ -19,4 +19,11 @@ public struct Subject: Codable {
case type
case url
}

public init(latestCommentUrl: URL?, title: String, type: String, url: URL) {
self.latestCommentUrl = latestCommentUrl
self.title = title
self.type = type
self.url = url
}
}

0 comments on commit 5497ef0

Please sign in to comment.