From e2040e393f7656a412b7aa94b44948db949ada3d Mon Sep 17 00:00:00 2001 From: Lawrence Forooghian Date: Mon, 9 Dec 2024 09:22:02 -0300 Subject: [PATCH] Rename ResultOrder enum to OrderBy Per [1]. [1] https://ably.atlassian.net/wiki/spaces/CHA/pages/3587866646/CHADR-074+History+direction+param+rename --- Sources/AblyChat/Messages.swift | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Sources/AblyChat/Messages.swift b/Sources/AblyChat/Messages.swift index 2205e97..6b4965c 100644 --- a/Sources/AblyChat/Messages.swift +++ b/Sources/AblyChat/Messages.swift @@ -30,7 +30,7 @@ public struct SendMessageParams: Sendable { } public struct QueryOptions: Sendable { - public enum ResultOrder: Sendable { + public enum OrderBy: Sendable { case oldestFirst case newestFirst } @@ -38,12 +38,12 @@ public struct QueryOptions: Sendable { public var start: Date? public var end: Date? public var limit: Int? - public var orderBy: ResultOrder? + public var orderBy: OrderBy? // (CHA-M5g) The subscribers subscription point must be additionally specified (internally, by us) in the fromSerial query parameter. internal var fromSerial: String? - public init(start: Date? = nil, end: Date? = nil, limit: Int? = nil, orderBy: QueryOptions.ResultOrder? = nil) { + public init(start: Date? = nil, end: Date? = nil, limit: Int? = nil, orderBy: QueryOptions.OrderBy? = nil) { self.start = start self.end = end self.limit = limit