mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
29 lines
609 B
Swift
29 lines
609 B
Swift
import Foundation
|
|
|
|
public struct Highlight: Identifiable, Hashable {
|
|
public let id: String
|
|
public let shortId: String
|
|
public let quote: String
|
|
public let prefix: String?
|
|
public let suffix: String?
|
|
public let patch: String
|
|
public let annotation: String?
|
|
|
|
public init(
|
|
id: String,
|
|
shortId: String,
|
|
quote: String,
|
|
prefix: String?,
|
|
suffix: String?,
|
|
patch: String,
|
|
annotation: String?
|
|
) {
|
|
self.id = id
|
|
self.shortId = shortId
|
|
self.quote = quote
|
|
self.prefix = prefix
|
|
self.suffix = suffix
|
|
self.patch = patch
|
|
self.annotation = annotation
|
|
}
|
|
}
|