A WIP iOS app for Mastodon and Pleroma.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

JSONResponse.swift 421B

123456789101112131415161718
  1. //
  2. // JSONResponse.swift
  3. // TuskerUITests
  4. //
  5. // Created by Shadowfacts on 12/31/19.
  6. // Copyright © 2019 Shadowfacts. All rights reserved.
  7. //
  8. import Foundation
  9. import Ambassador
  10. extension JSONResponse {
  11. init(statusCode: Int = 200, statusMessage: String = "OK", result: Any) {
  12. self.init(statusCode: statusCode, statusMessage: statusMessage, handler: { (_) in
  13. return result
  14. })
  15. }
  16. }