25 lines
530 B
Swift
25 lines
530 B
Swift
import Foundation
|
|
|
|
public enum ArticleContentStatus {
|
|
case failed
|
|
case processing
|
|
case succeeded
|
|
case unknown
|
|
}
|
|
|
|
public struct ArticleContent {
|
|
public let htmlContent: String
|
|
public let highlightsJSONString: String
|
|
public let contentStatus: ArticleContentStatus
|
|
|
|
public init(
|
|
htmlContent: String,
|
|
highlightsJSONString: String,
|
|
contentStatus: ArticleContentStatus
|
|
) {
|
|
self.htmlContent = htmlContent
|
|
self.highlightsJSONString = highlightsJSONString
|
|
self.contentStatus = contentStatus
|
|
}
|
|
}
|