From 655e6650051a9c08675d15e05ac3b7d9be98e714 Mon Sep 17 00:00:00 2001 From: hank <hank.zhang@proficientcity.com> Date: Wed, 18 Apr 2018 15:28:32 +0800 Subject: [PATCH] 添加V3.6.7 --- frameworks/TwitterCore.framework/PrivateHeaders/TWTRDictUtil.h | 100 ++++++++++++++++++++++++++++++++++++++------------ 1 files changed, 76 insertions(+), 24 deletions(-) diff --git a/frameworks/TwitterCore.framework/PrivateHeaders/TWTRDictUtil.h b/frameworks/TwitterCore.framework/PrivateHeaders/TWTRDictUtil.h index c2864b4..24c5a69 100644 --- a/frameworks/TwitterCore.framework/PrivateHeaders/TWTRDictUtil.h +++ b/frameworks/TwitterCore.framework/PrivateHeaders/TWTRDictUtil.h @@ -1,9 +1,23 @@ -// -// TWTRDictUtil.h -// -// Created by Jacob Harding on 5/29/14. -// Copyright (c) 2014 Twitter. All rights reserved. -// +/* + * Copyright (C) 2017 Twitter, Inc. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ + +/** + This header is private to the Twitter Core SDK and not exposed for public SDK consumption + */ #import <Foundation/Foundation.h> #import <UIKit/UIKit.h> @@ -12,27 +26,65 @@ @interface TWTRDictUtil : NSObject -+ (CGFloat)CGFloatForKey:(NSString *)key fromDict:(NSDictionary *)dict; -+ (double)doubleForKey:(NSString *)key fromDict:(NSDictionary *)dict; -+ (BOOL)boolForKey:(NSString *)key fromDict:(NSDictionary *)dict; -+ (NSInteger)intForKey:(NSString *)key fromDict:(NSDictionary *)dict; -+ (long long)longlongForKey:(NSString *)key fromDict:(NSDictionary *)dict; -+ (NSUInteger)unsignedIntegerForKey:(NSString *)key fromDict:(NSDictionary *)dict; -+ (NSString *)stringFromNumberForKey:(NSString *)key fromDict:(NSDictionary *)dict; -+ (id)objectForKey:(NSString *)key fromDict:(NSDictionary *)dict; -+ (NSString *)stringForKey:(NSString *)key fromDict:(NSDictionary *)dict; -+ (NSDate *)dateForKey:(NSString *)key fromDict:(NSDictionary *)dict; -+ (NSDictionary *)dictForKey:(NSString *)key fromDict:(NSDictionary *)dict; -+ (NSArray *)arrayForKey:(NSString *)key fromDict:(NSDictionary *)dict; - -@end - -@interface TWTRArrayUtil : NSObject +/** + * Returns an array for the specified key. Returns nil if the value does not exist for the key or the return type is not an array. + */ ++ (NSArray *)twtr_arrayForKey:(NSString *)key inDict:(NSDictionary *)dict; /** - * Returns a CGFloat at the given index. This method does not check bounds. + * Returns a CGFloat for the specified key. */ -+ (CGFloat)CGFloatAtIndex:(NSInteger)index; ++ (CGFloat)twtr_CGFloatForKey:(NSString *)key inDict:(NSDictionary *)dict; + +/** + * Returns a double for the specified key. + */ ++ (double)twtr_doubleForKey:(NSString *)key inDict:(NSDictionary *)dict; + +/** + * Returns a bool for the specified key. + */ ++ (BOOL)twtr_boolForKey:(NSString *)key inDict:(NSDictionary *)dict; + +/** + * Returns an int for the specified key. + */ ++ (NSInteger)twtr_intForKey:(NSString *)key inDict:(NSDictionary *)dict; + +/** + * Returns a long long for the specified key. + */ ++ (long long)twtr_longlongForKey:(NSString *)key inDict:(NSDictionary *)dict; + +/** + * Returns an unsigned integer for the specified key. + */ ++ (NSUInteger)twtr_unsignedIntegerForKey:(NSString *)key inDict:(NSDictionary *)dict; + +/** + * Returns a string from a number for the specified key. Returns nil if the value does not exist for the key or the return type is not a string. + */ ++ (NSString *)twtr_stringFromNumberForKey:(NSString *)key inDict:(NSDictionary *)dict; + +/** + * Returns a generic object for the specified key. Returns nil if the value does not exist. + */ ++ (id)twtr_objectForKey:(NSString *)key inDict:(NSDictionary *)dict; + +/** + * Returns a string for the specified key. Returns nil if the value does not exist for the key or the return type is not a string. + */ ++ (NSString *)twtr_stringForKey:(NSString *)key inDict:(NSDictionary *)dict; + +/** + * Returns a date for the specified key. Returns nil if the value does not exist for the key or the return type is not a date. + */ ++ (NSDate *)twtr_dateForKey:(NSString *)key inDict:(NSDictionary *)dict; + +/** + * Returns a dictionary for the specified key. Returns nil if the value does not exist for the key or the return type is not a dictionary. + */ ++ (NSDictionary *)twtr_dictForKey:(NSString *)key inDict:(NSDictionary *)dict; @end -- Gitblit v1.8.0