commit | author | age
|
a0a843
|
1 |
// |
H |
2 |
// TWTRDictUtil.h |
|
3 |
// |
|
4 |
// Created by Jacob Harding on 5/29/14. |
|
5 |
// Copyright (c) 2014 Twitter. All rights reserved. |
|
6 |
// |
|
7 |
|
|
8 |
#import <Foundation/Foundation.h> |
|
9 |
#import <UIKit/UIKit.h> |
|
10 |
|
|
11 |
NS_ASSUME_NONNULL_BEGIN |
|
12 |
|
|
13 |
@interface TWTRDictUtil : NSObject |
|
14 |
|
|
15 |
+ (CGFloat)CGFloatForKey:(NSString *)key fromDict:(NSDictionary *)dict; |
|
16 |
+ (double)doubleForKey:(NSString *)key fromDict:(NSDictionary *)dict; |
|
17 |
+ (BOOL)boolForKey:(NSString *)key fromDict:(NSDictionary *)dict; |
|
18 |
+ (NSInteger)intForKey:(NSString *)key fromDict:(NSDictionary *)dict; |
|
19 |
+ (long long)longlongForKey:(NSString *)key fromDict:(NSDictionary *)dict; |
|
20 |
+ (NSUInteger)unsignedIntegerForKey:(NSString *)key fromDict:(NSDictionary *)dict; |
|
21 |
+ (NSString *)stringFromNumberForKey:(NSString *)key fromDict:(NSDictionary *)dict; |
|
22 |
+ (id)objectForKey:(NSString *)key fromDict:(NSDictionary *)dict; |
|
23 |
+ (NSString *)stringForKey:(NSString *)key fromDict:(NSDictionary *)dict; |
|
24 |
+ (NSDate *)dateForKey:(NSString *)key fromDict:(NSDictionary *)dict; |
|
25 |
+ (NSDictionary *)dictForKey:(NSString *)key fromDict:(NSDictionary *)dict; |
|
26 |
+ (NSArray *)arrayForKey:(NSString *)key fromDict:(NSDictionary *)dict; |
|
27 |
|
|
28 |
@end |
|
29 |
|
|
30 |
@interface TWTRArrayUtil : NSObject |
|
31 |
|
|
32 |
/** |
|
33 |
* Returns a CGFloat at the given index. This method does not check bounds. |
|
34 |
*/ |
|
35 |
+ (CGFloat)CGFloatAtIndex:(NSInteger)index; |
|
36 |
|
|
37 |
@end |
|
38 |
|
|
39 |
NS_ASSUME_NONNULL_END |