Skip to content
This repository has been archived by the owner on Aug 12, 2022. It is now read-only.

Commit

Permalink
Merge pull request #1 from NikitaEvidentPoint/master
Browse files Browse the repository at this point in the history
Adding several fields for OPDS2 support
  • Loading branch information
aferditamuriqi authored Feb 9, 2018
2 parents 2e50e49 + 53bba06 commit b970434
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions r2-shared-swift/BelongsTo.swift
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@


public class BelongsTo {
public init() {}

public var series = [Collection]()
public var collection = [Collection]()
}
1 change: 1 addition & 0 deletions r2-shared-swift/Metadata.swift
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ public class Metadata {
public var source: String?
public var epubType = [String]()
public var rights: String?
public var rdfType: String?
public var otherMetadata = [MetadataItem]()

// TODO: support parsing from OPF.
Expand Down
1 change: 1 addition & 0 deletions r2-shared-swift/OPDS/Feed.swift
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ public class Feed {
public var groups = [Group]()
public var publications = [Publication]()
public var navigation = [Link]()
public var context = [String]()

public init(title: String) {
self.metadata = OpdsMetadata(title: title)
Expand Down
1 change: 1 addition & 0 deletions r2-shared-swift/OPDS/OpdsMetadata.swift
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ public class OpdsMetadata {
public var currentPage: Int?
public var modified: Date?
public var position: Int?
public var rdfType: String?

init(title: String) {
self.title = title
Expand Down

0 comments on commit b970434

Please sign in to comment.