AWFRequestQuery
Objective-C
@interface AWFRequestQuery : NSObject
Swift
class AWFRequestQuery : NSObject
AWFRequestQuery
provides a convenience wrapper for setting up request queries to be used with an AWFWeatherRequestOptions
instance.
-
The property name to perform the query against.
Declaration
Objective-C
@property (nonatomic, copy) NSString *_Nonnull propertyName;
Swift
var propertyName: String { get set }
-
The value of
propertyName
to match for the query.Declaration
Objective-C
@property (nonatomic, strong) id _Nonnull value;
Swift
var value: Any { get set }
-
Determines how this query should be joined with any query that may exist before within an
AWFWeatherRequestOptions
instance.See
AWFRequestOperatorDeclaration
Objective-C
@property (nonatomic) AWFRequestOperator requestOperator;
Swift
var requestOperator: AWFRequestOperator { get set }
-
Initializes and returns a query object for the specified property name, value and joining operation type.
Declaration
Objective-C
+ (nonnull instancetype)queryForProperty:(nonnull NSString *)propertyName withValue:(nonnull id)value usingOperator:(AWFRequestOperator)requestOperator;
Parameters
propertyName
The property name to perform the query against
value
The value of the property to match
requestOperator
The joining operation to use when this query is combined with other queries
Return Value
An initialized query object
-
Initializes and returns a query object for the specified property name, value and joining operation type.
Declaration
Objective-C
- (nonnull instancetype)initForProperty:(nonnull NSString *)propertyName withValue:(nonnull id)value usingOperator:(AWFRequestOperator)requestOperator;
Swift
init(forProperty propertyName: String, withValue value: Any, using requestOperator: AWFRequestOperator)
Parameters
propertyName
The property name to perform the query against
value
The value of the property to match
requestOperator
The joining operation to use when this query is combined with other queries
Return Value
An initialized query object
-
Returns a string representation of this query object, e.g.
property=value
.Declaration
Objective-C
- (nonnull NSString *)stringRepresentation;
Swift
func stringRepresentation() -> String