FeedId
public struct FeedId : CustomStringConvertible, Codable
extension FeedId: Equatable
A feed identifier based on feedSlug
and userId
.
-
The name of the feed group, for instance user, trending, flat, timeline etc. For example: flat, timeline.
Declaration
Swift
public let feedSlug: String
-
The owner of the given feed.
Declaration
Swift
public let userId: String
-
The feed group id, e.g.
timeline123
Declaration
Swift
public var together: String { get }
-
The feed group id with the colon separator, e.g.
timeline:123
Declaration
Swift
public var togetherWithColon: String { get }
-
The feed group id with the slash separator, e.g.
timeline/123
Declaration
Swift
public var togetherWithSlash: String { get }
-
Declaration
Swift
public var description: String { get }
-
Undocumented
Declaration
Swift
public init(feedSlug: String, userId: String)
-
Undocumented
Declaration
Swift
public init?(feedSlug: String)
-
Declaration
Swift
public init(from decoder: Decoder) throws
-
Declaration
Swift
public func encode(to encoder: Encoder) throws
-
Declaration
Swift
public static func == (lhs: FeedId, rhs: FeedId) -> Bool
-
Undocumented
Declaration
Swift
public static let any: FeedId
-
Undocumented
Declaration
Swift
public static let user: FeedId?
-
Undocumented
Declaration
Swift
public static let timeline: FeedId?
-
Undocumented
Declaration
Swift
public static let notification: FeedId?
-
A user feed id with the given userId.
Declaration
Swift
public static func user(with userId: String) -> FeedId