| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061 |
- /*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
- #import <Foundation/Foundation.h>
- #import "GoogleDataTransport/GDTCORLibrary/Public/GoogleDataTransport/GDTCORTargets.h"
- NS_ASSUME_NONNULL_BEGIN
- /** This class enables the finding of events by matching events with the properties of this class.
- */
- @interface GDTCORStorageEventSelector : NSObject
- /** The target to find events for. Required. */
- @property(readonly, nonatomic) GDTCORTarget selectedTarget;
- /** Finds a specific event. */
- @property(nullable, readonly, nonatomic) NSSet<NSString *> *selectedEventIDs;
- /** Finds all events of a mappingID. */
- @property(nullable, readonly, nonatomic) NSSet<NSString *> *selectedMappingIDs;
- /** Finds all events matching the qosTiers in this list. */
- @property(nullable, readonly, nonatomic) NSSet<NSNumber *> *selectedQosTiers;
- /** Initializes an event selector that will find all events for the given target.
- *
- * @param target The selected target.
- * @return An immutable event selector instance.
- */
- + (instancetype)eventSelectorForTarget:(GDTCORTarget)target;
- /** Instantiates an event selector.
- *
- * @param target The selected target.
- * @param eventIDs Optional param to find an event matching this eventID.
- * @param mappingIDs Optional param to find events matching this mappingID.
- * @param qosTiers Optional param to find events matching the given QoS tiers.
- * @return An immutable event selector instance.
- */
- - (instancetype)initWithTarget:(GDTCORTarget)target
- eventIDs:(nullable NSSet<NSString *> *)eventIDs
- mappingIDs:(nullable NSSet<NSString *> *)mappingIDs
- qosTiers:(nullable NSSet<NSNumber *> *)qosTiers;
- @end
- NS_ASSUME_NONNULL_END
|