-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update to the async wait api and add new get scientist api
- Loading branch information
Showing
14 changed files
with
512 additions
and
387 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import Foundation | ||
|
||
/// An enumeration representing the maximum number of publications to fetch. | ||
public enum FetchQuantity { | ||
/// Fetch all available publications. | ||
case all | ||
/// Fetch a specific number of publications. | ||
case specific(Int) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import Foundation | ||
|
||
/// Sorting criteria for publications. | ||
public enum SortBy: String, Codable, Hashable, Equatable, CaseIterable, CustomStringConvertible { | ||
/// Sort by number of citations. | ||
case cited = "cited" | ||
/// Sort by publication date. | ||
case pubdate = "pubdate" | ||
|
||
public var description: String { | ||
return self.rawValue | ||
} | ||
} |
Oops, something went wrong.