ios: add CIStatus type (#280)

This commit is contained in:
Efim Poberezkin 2022-02-08 11:20:41 +04:00 committed by GitHub
parent d11d66fa90
commit 82d02e923a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -409,6 +409,15 @@ struct CIMeta: Decodable {
var createdAt: Date
}
enum CIStatus: Decodable {
case sndNew
case sndSent
case sndErrorAuth
case sndError(agentErrorType: AgentErrorType)
case rcvNew
case rcvRead
}
func ciMetaSample(_ id: Int64, _ ts: Date, _ text: String) -> CIMeta {
CIMeta(
itemId: id,