Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Note {
- var userId: Int
- var createdAtDate: NSDate
- var content: String?
- init(userId: Int, createdAtDate: NSDate) {
- self.userId = userId
- self.createdAtDate = createdAtDate
- }
- }
- public class User {
- var id: Int
- var firstName: String
- var lastName: String
- var email: String
- var avatar: UIImage?
- init(id: Int, firstName: String, lastName: String, email: String) {
- self.id = id
- self.firstName = firstName
- self.lastName = lastName
- self.email = email
- }
- }
- {
- "status": "success",
- "data": [
- {
- "user_id": 2,
- "note": "This is a testrnrnThis is only a test.rnrnbeep boop",
- "created_at": "2015-07-29 04:39:25"
- }
- ]
- }
- {
- "status": "success",
- "data": {
- "id": 2,
- "email": "dev@example.com",
- "first_name": "John",
- "last_name": "Appleseed",
- "avatar": "avt.png"
- }
- }
- func tableView(tableView: UITableView, titleForFooterInSection section: Int) -> String? {
- let note = notes[section]
- APIClient.getUserDetails(id: id, success: { (data) -> Void in
- }) { (error) -> Void in
- }
- return ""
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement