 enum UserAction: String {
   case Like = "liked"
   case Skip = "skipped"
+  case Match = "matched"
 }
 
 func saveSkip(user: User) {

}

func saveLike(user: User) {
  saveAction( user, UserAction.Like)
}

private func saveAction(user: User, action: UserAction) {

  obj.setObject(user.id, forKey: "toUser")
  obj.setObject(action.rawValue, forKey: "type")
  UIApplication.sharedApplication().networkActivityIndicatorVisible = true
  obj.saveInBackgroundWithBlock( {
    success, error in
    //dispatch_async(dispatch_get_main_queue(), { () -> Void in
      UIApplication.sharedApplication().networkActivityIndicatorVisible = false
    //} )
  } )
}
