ArcGIS Runtime SDK for iOS: AGSOrderBy.h Source File
ArcGIS Runtime SDK for iOS  100.15
AGSOrderBy.h
Go to the documentation of this file.
1 /*
2  COPYRIGHT 2022 ESRI
3 
4  All rights reserved under the copyright laws of the United States
5  and applicable international laws, treaties, and conventions.
6 
7  This material is licensed for use under the Esri Master License
8  Agreement (MLA), and is bound by the terms of that agreement.
9  You may redistribute and use this code without modification,
10  provided you adhere to the terms of the MLA and include this
11  copyright notice.
12 
13  See use restrictions at http://www.esri.com/legal/pdfs/mla_e204_e300/english
14 
15  For additional information, contact:
16  Environmental Systems Research Institute, Inc.
17  Attn: Contracts and Legal Services Department
18  380 New York Street
19  Redlands, California, 92373
20  USA
21 
22  email: contracts@esri.com
23  */
24  //Required for Globals API doc
26 
27 #import <Foundation/Foundation.h>
28 #import <ArcGIS/AGSObject.h>
29 
30 
31 
36 typedef NS_ENUM(NSInteger, AGSSortOrder) {
39 };
40 
47 @interface AGSOrderBy : AGSObject
48 
49 #pragma mark -
50 #pragma mark initializers
51 
52 -(instancetype)init;
53 
60 -(instancetype)initWithFieldName:(NSString *)fieldName sortOrder:(AGSSortOrder)sortOrder;
61 
68 +(instancetype)orderByWithFieldName:(NSString *)fieldName sortOrder:(AGSSortOrder)sortOrder;
69 
70 #pragma mark -
71 #pragma mark properties
72 
76 @property (nonatomic, copy, readwrite) NSString *fieldName;
77 
81 @property (nonatomic, assign, readwrite) AGSSortOrder sortOrder;
82 
83 #pragma mark -
84 #pragma mark methods
85 
86 @end
87 
88 
AGSSortOrder
Definition: AGSOrderBy.h:36
@ AGSSortOrderDescending
Definition: AGSOrderBy.h:38
@ AGSSortOrderAscending
Definition: AGSOrderBy.h:37
Definition: AGSObject.h:28
An object that is used to specify the sort order of query results.
Definition: AGSOrderBy.h:48
AGSSortOrder sortOrder
Definition: AGSOrderBy.h:81
NSString * fieldName
Definition: AGSOrderBy.h:76
instancetype init()