This repository has been archived by the owner on Aug 2, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathDOLNumberTable.h
144 lines (91 loc) · 3.33 KB
/
DOLNumberTable.h
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
//
// DOLNumberTable.h
// DOLNumbers
//
//
#import <UIKit/UIKit.h>
#import "GOVDataRequest.h"
#import "LoadingView.h"
#define kCellImageViewTag 1000
#define kCellLabelTag 1001
#define kLabelIndentedRect CGRectMake(40.0, 8.0, 240.0, 20.0)
#define kLabelRect CGRectMake(10.0, 8.0, 275.0, 20.0)
// You need to supply your own API key and secret. You can get yours at http://developer.dol.gov
#define API_KEY @""
#define API_SECRET @""
#define API_HOST @"http://api.dol.gov"
#define API_URL @"/V1"
@interface DOLNumberTable : UITableViewController<GOVDataRequestDelegate> {
NSMutableArray *blsNumbers;
NSMutableArray *blsIndexes;
NSMutableArray *etaNumbers;
NSMutableArray *etaIndexes;
NSMutableArray *holderArray;
NSMutableArray *holderArray1;
LoadingView *loadingView;
NSDictionary *etaresult;
NSMutableArray *val;
NSDictionary *cpiresult;
NSDictionary *urresult;
NSDictionary *peresult;
NSDictionary *aheresult;
NSDictionary *ppiresult;
NSDictionary *eciresult;
NSDictionary *proresult;
NSDictionary *usiresult;
NSDictionary *useresult;
int secflag;
int accesbilityflag;
int flag;
int qtrflag;
int numberOfSections;
int year;
int month;
int qtr;
int sectionFlag;
int finalDay1;
NSMutableArray *selectedArrayForBlsNumbers;
NSMutableArray *selectedArrayForEtaNumbers;
UIImage *selectedImage;
UIImage *unselectedImage;
UIImageView *imageView;
BOOL inPseudoEditMode;
UILabel *label;
UILabel *detaillabel;
UIBarButtonItem *refreshButton;
UIBarButtonItem *doneEditButton;
NSArray *arrayOfResults;
GOVDataRequest *dataRequest;
NSString *displayweek;
UIActivityIndicatorView *spinner;
int day;
}
@property (nonatomic, strong) NSMutableArray *blsNumbers;
@property (nonatomic, strong) NSMutableArray *blsIndexes;
@property (nonatomic, strong) NSMutableArray *etaNumbers;
@property (nonatomic, strong) NSMutableArray *etaIndexes;
@property (nonatomic, strong) NSMutableArray *val;
@property (nonatomic, strong) NSMutableArray *holderArray;
@property (nonatomic, strong) NSMutableArray *holderArray1;
@property (nonatomic, strong)NSString *displayweek;
@property (nonatomic, strong) NSMutableArray *selectedArrayForBlsNumbers;
@property (nonatomic, strong) NSMutableArray *selectedArrayForEtaNumbers;
@property (nonatomic, strong) UIImage *selectedImage;
@property (nonatomic, strong) UIImage *unselectedImage;
@property(nonatomic, strong)NSArray *arrayOfResults;
@property(nonatomic, strong)GOVDataRequest *dataRequest;
@property BOOL inPseudoEditMode;
-(void)populateSelectedArrayForBls;
-(void)populateSelectedArrayForEta;
-(void)ifNoValuesInETAArray;
-(void)ifNoValuesInCpiArray;
-(void)ifNoValuesInURArray;
-(void)ifNoValuesInPEArray;
-(void)ifNoValuesInAHEArray;
-(void)ifNoValuesInPPIArray;
-(void)ifNoValuesInUSIArray;
-(void)ifNoValuesInUSEArray;
-(void)ifNoValuesInECIQtrArray;
-(void)ifNoValuesInPROQtrArray;
+ (NSDate*)dateFromUnixDate:(double)unixdate ;
@end