Skip to content

Commit

Permalink
Merge pull request #185 from ably/rename-ResultOrder-to-OrderBy
Browse files Browse the repository at this point in the history
Rename `ResultOrder` enum to `OrderBy`
  • Loading branch information
lawrence-forooghian authored Dec 9, 2024
2 parents d48dba5 + e2040e3 commit 2ffb663
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Sources/AblyChat/Messages.swift
Original file line number Diff line number Diff line change
Expand Up @@ -30,20 +30,20 @@ public struct SendMessageParams: Sendable {
}

public struct QueryOptions: Sendable {
public enum ResultOrder: Sendable {
public enum OrderBy: Sendable {
case oldestFirst
case newestFirst
}

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
Expand Down

0 comments on commit 2ffb663

Please sign in to comment.