Skip to content

Commit

Permalink
Merge pull request #117 from rees46/feat/category-field-count
Browse files Browse the repository at this point in the history
feat: Added category count field
  • Loading branch information
TorinAsakura authored Nov 20, 2024
2 parents c4871ce + 56dfcb0 commit c645e16
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Binary file not shown.
2 changes: 2 additions & 0 deletions REES46/Classes/Model/SearchResponse.swift
Original file line number Diff line number Diff line change
Expand Up @@ -266,13 +266,15 @@ public struct Category {
public var url: String?
public var alias: String?
public var parentId: String?
public var count: Int?

init(json: [String: Any]) {
id = json["id"] as? String ?? ""
name = json["name"] as? String ?? ""
url = json["url"] as? String
alias = json["alias"] as? String
parentId = json["parent"] as? String
count = json["count"] as? Int
}
}

Expand Down

0 comments on commit c645e16

Please sign in to comment.