Skip to content

Commit 4afa083

Browse files
committed
Adding GetComment request
1 parent fa84823 commit 4afa083

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
import Foundation
2+
3+
public struct GetCommentRequest: APIRequest {
4+
public typealias Response = CommentResponse
5+
6+
public static let httpMethod: HTTPMethod = .get
7+
public static let path: String = "/comment"
8+
9+
public let auth: String?
10+
public let id: Int
11+
12+
public init(
13+
auth: String? = nil,
14+
id: Int
15+
) {
16+
self.auth = auth
17+
self.id = id
18+
}
19+
}

0 commit comments

Comments
 (0)