Skip to content

Commit 85d0083

Browse files
committed
feat: Add excludesTasksWithNoEvents to OCKEventQuery
1 parent 83f4d2d commit 85d0083

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

CareKitStore/CareKitStore/Structs/Queries/OCKEventQuery.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,9 @@ public struct OCKEventQuery: Equatable {
4545
/// The tags of tasks to match events against.
4646
public var taskTags: [String] = []
4747

48+
/// Determines if tasks with no events should be included in the query results or not. False be default.
49+
public var excludesTasksWithNoEvents = false
50+
4851
/// Initialize a new `OCKEventQuery` by specifying the start and end dates.
4952
///
5053
/// - Parameters:
@@ -68,6 +71,7 @@ public struct OCKEventQuery: Equatable {
6871
taskQuery.ids = taskIDs
6972
taskQuery.groupIdentifiers = taskGroupIdentifiers
7073
taskQuery.tags = taskTags
74+
taskQuery.excludesTasksWithNoEvents = excludesTasksWithNoEvents
7175
return taskQuery
7276
}
7377

0 commit comments

Comments
 (0)