Advertisement
Kwright03

Untitled

Nov 14th, 2018
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Swift 0.45 KB | None | 0 0
  1. func checkDeviceRegistry() -> Bool {
  2.         var found: Bool = false
  3.         Alamofire.request("http://10.51.200.249:3000/api/devices").responseJSON {
  4.             response in
  5.                 if let json = response.value as? [String: Any] {
  6.                     print(json)
  7.                     found = true
  8.                     return
  9.                 }
  10.             print("\(String(describing: response.response))")
  11.         }
  12.         return found
  13.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement