forked from darrylhthomas/StackMob_iOS
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathStackMobQuery.h
More file actions
42 lines (33 loc) · 1.52 KB
/
Copy pathStackMobQuery.h
File metadata and controls
42 lines (33 loc) · 1.52 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
//
// StackMobQuery.h
// StackMobiOS
//
// Created by Jordan West on 10/14/11.
// Copyright (c) 2011 StackMob, Inc. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "SMGeoPoint.h"
typedef enum {
SMOrderAscending = 0,
SMOrderDescending = 1
} SMOrderDirection;
@interface StackMobQuery : NSObject
@property(nonatomic, copy) NSMutableDictionary *params;
@property(nonatomic, copy) NSMutableDictionary *headers;
+ (StackMobQuery *)query;
- (void)field:(NSString *)f mustEqualValue:(id)v;
- (void)field:(NSString *)f mustBeLessThanValue:(id)v;
- (void)field:(NSString *)f mustBeLessThanOrEqualToValue:(id)v;
- (void)field:(NSString *)f mustBeGreaterThanValue:(id)v;
- (void)field:(NSString *)f mustBeGreaterThanOrEqualToValue:(id)v;
- (void)field:(NSString *)f mustBeOneOf:(NSArray *)arr;
- (void)field:(NSString *)f centeredAt:(SMGeoPoint *)point mustBeWithinMi:(double)radiusInMi;
- (void)field:(NSString *)f centeredAt:(SMGeoPoint *)point mustBeWithinKm:(double)radiusInKm;
- (void)field:(NSString *)f mustBeWithinBoxWithLowerLeft:(SMGeoPoint *)lowerLeft andUpperRight:(SMGeoPoint *)upperRight;
- (void)field:(NSString *)f mustBeNear:(SMGeoPoint *)point;
- (void)field:(NSString *)f mustBeNear:(SMGeoPoint *)point withinMi:(double)radiusInMi;
- (void)field:(NSString *)f mustBeNear:(SMGeoPoint *)point withinKm:(double)radiusInKm;
- (void)setExpandDepth:(NSUInteger)depth;
- (void)setRangeStart:(NSUInteger)start andEnd:(NSUInteger)end;
- (void)orderByField:(NSString *)f withDirection:(SMOrderDirection)dir;
@end