Skip to content

Commit

Permalink
FIx response model & update README
Browse files Browse the repository at this point in the history
  • Loading branch information
to4iki committed Apr 27, 2018
1 parent f920154 commit bfd6393
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions OctavKit/Response/Conference.swift
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public struct Conference: Codable, CustomStringConvertible, Equatable, Hashable

public let id: String
public let title: String
public let about: String
public let about: String?
public let contact: String
public let schedules: [Schedule]
public let staffs: [Staff]
Expand All @@ -22,7 +22,7 @@ public struct Conference: Codable, CustomStringConvertible, Equatable, Hashable
public let tracks: [Track]

public var description: String {
return "Conference(id: \(id), title: \(title), about: \(about), contact: \(contact), schedules: \(schedules), " +
return "Conference(id: \(id), title: \(title), about: \(about.debugDescription), contact: \(contact), schedules: \(schedules), " +
"staffs: \(staffs), venues: \(venues), sponsors: \(sponsors), tracks: \(tracks))"
}

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ OctavKit.setup(conferenceId: "YOUR_CONFERENCE_ID")
OctavKit.setLocale(Locale.current)

// Sessions receives an instance of a type that conforms to Request.
OctavKit.sessions { result in
OctavKit.sessions { (value, error) in
switch (value, error) {
case (let value?, _):
print("success: \(value)")
Expand Down

0 comments on commit bfd6393

Please sign in to comment.