Skip to content

Commit

Permalink
Adding GetComment request
Browse files Browse the repository at this point in the history
  • Loading branch information
fishcharlie committed Jul 7, 2023
1 parent fa84823 commit 4afa083
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions Sources/Lemmy-Swift-Client/Lemmy API/Requests/GetComment.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
import Foundation

public struct GetCommentRequest: APIRequest {
public typealias Response = CommentResponse

public static let httpMethod: HTTPMethod = .get
public static let path: String = "/comment"

public let auth: String?
public let id: Int

public init(
auth: String? = nil,
id: Int
) {
self.auth = auth
self.id = id
}
}

0 comments on commit 4afa083

Please sign in to comment.