Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
delba committed Aug 18, 2019
1 parent 541c385 commit 85bc095
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -143,14 +143,14 @@ extension JSONKeys {
static let id = JSONKey<Int>("id")
static let createdAt = JSONKey<NSDate?>("created_at")
static let updatedAt = JSONKey<NSDate?>("updated_at")

static let title = JSONKey<String>("title")

static let normalImageURL = JSONKey<NSURL?>(path: "images", "normal")
static let hidpiImageURL = JSONKey<NSURL?>(path: "images", "hidpi")

static let user = JSONKey<JSON>("user")
static let name = JSONKey<String>("name")
static let name = JSONKey<String>("name")
}
```

Expand All @@ -160,25 +160,25 @@ extension JSONKeys {
struct Shot {
let id: Int
let title: String

let normalImageURL: NSURL
var hidpiImageURL: NSURL?

let createdAt: NSDate
let updatedAt: NSDate

let user: User

init(_ json: JSON) {
id = json[.id]
title = json[.title]

normalImageURL = json[.normalImageURL]!
hidpiImageURL = json[.hidpiImageURL]

createdAt = json[.createdAt]!
updatedAt = json[.updatedAt]!

user = User(json[.user])
}
}
Expand All @@ -188,14 +188,14 @@ struct Shot {
struct User {
let id: Int
let name: String

let createdAt: NSDate
let updatedAt: NSDate

init(_ json: JSON) {
id = json[.id]
name = json[.name]

createdAt = json[.createdAt]!
updatedAt = json[.updatedAt]!
}
Expand Down Expand Up @@ -288,7 +288,7 @@ pod 'JASON', '~> 3.0'

## License

Copyright (c) 2015-2016 Damien (http://delba.io)
Copyright (c) 2015-2019 Damien (http://delba.io)

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down

0 comments on commit 85bc095

Please sign in to comment.