Advertisement
Guest User

Untitled

a guest
Jul 30th, 2015
180
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.14 KB | None | 0 0
  1. public class Note {
  2. var userId: Int
  3. var createdAtDate: NSDate
  4. var content: String?
  5.  
  6. init(userId: Int, createdAtDate: NSDate) {
  7. self.userId = userId
  8. self.createdAtDate = createdAtDate
  9. }
  10. }
  11.  
  12. public class User {
  13. var id: Int
  14. var firstName: String
  15. var lastName: String
  16. var email: String
  17. var avatar: UIImage?
  18.  
  19. init(id: Int, firstName: String, lastName: String, email: String) {
  20. self.id = id
  21. self.firstName = firstName
  22. self.lastName = lastName
  23. self.email = email
  24. }
  25. }
  26.  
  27. {
  28. "status": "success",
  29. "data": [
  30. {
  31. "user_id": 2,
  32. "note": "This is a testrnrnThis is only a test.rnrnbeep boop",
  33. "created_at": "2015-07-29 04:39:25"
  34. }
  35. ]
  36. }
  37.  
  38. {
  39. "status": "success",
  40. "data": {
  41. "id": 2,
  42. "email": "dev@example.com",
  43. "first_name": "John",
  44. "last_name": "Appleseed",
  45. "avatar": "avt.png"
  46. }
  47. }
  48.  
  49. func tableView(tableView: UITableView, titleForFooterInSection section: Int) -> String? {
  50. let note = notes[section]
  51. APIClient.getUserDetails(id: id, success: { (data) -> Void in
  52.  
  53. }) { (error) -> Void in
  54.  
  55. }
  56.  
  57. return ""
  58. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement