mirror of
https://github.com/Ranchero-Software/NetNewsWire.git
synced 2025-02-02 20:16:54 +01:00
Remove unneeded extension breaks.
This commit is contained in:
parent
d962fc5e1e
commit
c491fd2b88
@ -258,10 +258,7 @@ public protocol FeedlyAPICallerDelegate: AnyObject {
|
|||||||
throw URLError(.cannotDecodeContentData)
|
throw URLError(.cannotDecodeContentData)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
extension FeedlyAPICaller {
|
|
||||||
|
|
||||||
@discardableResult
|
@discardableResult
|
||||||
@MainActor public func addFeed(with feedID: FeedlyFeedResourceID, title: String? = nil, toCollectionWith collectionID: String) async throws -> [FeedlyFeed] {
|
@MainActor public func addFeed(with feedID: FeedlyFeedResourceID, title: String? = nil, toCollectionWith collectionID: String) async throws -> [FeedlyFeed] {
|
||||||
|
|
||||||
@ -294,10 +291,7 @@ extension FeedlyAPICaller {
|
|||||||
|
|
||||||
return collectionFeeds
|
return collectionFeeds
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
extension FeedlyAPICaller {
|
|
||||||
|
|
||||||
/// https://tools.ietf.org/html/rfc6749#section-4.1
|
/// https://tools.ietf.org/html/rfc6749#section-4.1
|
||||||
|
|
||||||
/// Provides the URL request that allows users to consent to the client having access to their information. Typically loaded by a web view.
|
/// Provides the URL request that allows users to consent to the client having access to their information. Typically loaded by a web view.
|
||||||
@ -338,10 +332,7 @@ extension FeedlyAPICaller {
|
|||||||
|
|
||||||
return tokenResponse
|
return tokenResponse
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
extension FeedlyAPICaller {
|
|
||||||
|
|
||||||
/// Access tokens expire. Perform a request for a fresh access token given the long life refresh token received when authorization was granted.
|
/// Access tokens expire. Perform a request for a fresh access token given the long life refresh token received when authorization was granted.
|
||||||
///
|
///
|
||||||
/// [Documentation](https://tools.ietf.org/html/rfc6749#section-6)
|
/// [Documentation](https://tools.ietf.org/html/rfc6749#section-6)
|
||||||
@ -362,10 +353,7 @@ extension FeedlyAPICaller {
|
|||||||
|
|
||||||
return tokenResponse
|
return tokenResponse
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
extension FeedlyAPICaller {
|
|
||||||
|
|
||||||
public func getCollections() async throws -> Set<FeedlyCollection> {
|
public func getCollections() async throws -> Set<FeedlyCollection> {
|
||||||
|
|
||||||
guard !isSuspended else { throw TransportError.suspended }
|
guard !isSuspended else { throw TransportError.suspended }
|
||||||
@ -379,10 +367,7 @@ extension FeedlyAPICaller {
|
|||||||
|
|
||||||
return Set(collections)
|
return Set(collections)
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
extension FeedlyAPICaller {
|
|
||||||
|
|
||||||
@MainActor public func getStreamContents(for resource: FeedlyResourceID, continuation: String?, newerThan: Date?, unreadOnly: Bool?) async throws -> FeedlyStream {
|
@MainActor public func getStreamContents(for resource: FeedlyResourceID, continuation: String?, newerThan: Date?, unreadOnly: Bool?) async throws -> FeedlyStream {
|
||||||
|
|
||||||
guard !isSuspended else { throw TransportError.suspended }
|
guard !isSuspended else { throw TransportError.suspended }
|
||||||
@ -432,10 +417,7 @@ extension FeedlyAPICaller {
|
|||||||
|
|
||||||
return collections
|
return collections
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
extension FeedlyAPICaller {
|
|
||||||
|
|
||||||
@MainActor public func getStreamIDs(for resource: FeedlyResourceID, continuation: String? = nil, newerThan: Date?, unreadOnly: Bool?) async throws -> FeedlyStreamIDs {
|
@MainActor public func getStreamIDs(for resource: FeedlyResourceID, continuation: String? = nil, newerThan: Date?, unreadOnly: Bool?) async throws -> FeedlyStreamIDs {
|
||||||
|
|
||||||
guard !isSuspended else { throw TransportError.suspended }
|
guard !isSuspended else { throw TransportError.suspended }
|
||||||
@ -485,10 +467,7 @@ extension FeedlyAPICaller {
|
|||||||
|
|
||||||
return collections
|
return collections
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
extension FeedlyAPICaller {
|
|
||||||
|
|
||||||
@MainActor public func getEntries(for ids: Set<String>) async throws -> [FeedlyEntry] {
|
@MainActor public func getEntries(for ids: Set<String>) async throws -> [FeedlyEntry] {
|
||||||
|
|
||||||
guard !isSuspended else { throw TransportError.suspended }
|
guard !isSuspended else { throw TransportError.suspended }
|
||||||
@ -505,10 +484,7 @@ extension FeedlyAPICaller {
|
|||||||
|
|
||||||
return entries
|
return entries
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
extension FeedlyAPICaller {
|
|
||||||
|
|
||||||
private struct MarkerEntriesBody: Encodable {
|
private struct MarkerEntriesBody: Encodable {
|
||||||
let type = "entries"
|
let type = "entries"
|
||||||
var action: String
|
var action: String
|
||||||
@ -533,10 +509,7 @@ extension FeedlyAPICaller {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
extension FeedlyAPICaller {
|
|
||||||
|
|
||||||
public func getFeeds(for query: String, count: Int, localeIdentifier: String) async throws -> FeedlyFeedsSearchResponse {
|
public func getFeeds(for query: String, count: Int, localeIdentifier: String) async throws -> FeedlyFeedsSearchResponse {
|
||||||
|
|
||||||
guard !isSuspended else { throw TransportError.suspended }
|
guard !isSuspended else { throw TransportError.suspended }
|
||||||
@ -563,9 +536,6 @@ extension FeedlyAPICaller {
|
|||||||
|
|
||||||
return searchResponse
|
return searchResponse
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
extension FeedlyAPICaller {
|
|
||||||
|
|
||||||
public func logout() async throws {
|
public func logout() async throws {
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user