Browse files

Now publishing separate release folders for headers and headers+AF

  • Loading branch information...
1 parent 5050935 commit e4ccf1aa5a11327b15ca5ff111531c93ea13978c @joeldev committed Mar 24, 2013
Showing with 1,844 additions and 1 deletion.
  1. +13 −0 Release/ADNKit+AFNetworking/ADNKit-OSX.h
  2. +14 −0 Release/ADNKit+AFNetworking/ADNKit-iOS.h
  3. +79 −0 Release/ADNKit+AFNetworking/ADNKit.h
  4. 0 Release/{ADNKit → ADNKit+AFNetworking}/AFHTTPClient.h
  5. 0 Release/{ADNKit → ADNKit+AFNetworking}/AFHTTPRequestOperation.h
  6. 0 Release/{ADNKit → ADNKit+AFNetworking}/AFImageRequestOperation.h
  7. 0 Release/{ADNKit → ADNKit+AFNetworking}/AFJSONRequestOperation.h
  8. 0 Release/{ADNKit → ADNKit+AFNetworking}/AFNetworkActivityIndicatorManager.h
  9. 0 Release/{ADNKit → ADNKit+AFNetworking}/AFNetworking.h
  10. 0 Release/{ADNKit → ADNKit+AFNetworking}/AFPropertyListRequestOperation.h
  11. 0 Release/{ADNKit → ADNKit+AFNetworking}/AFURLConnectionOperation.h
  12. 0 Release/{ADNKit → ADNKit+AFNetworking}/AFXMLRequestOperation.h
  13. +27 −0 Release/ADNKit+AFNetworking/ANKACL.h
  14. +28 −0 Release/ADNKit+AFNetworking/ANKAPIResponse.h
  15. +51 −0 Release/ADNKit+AFNetworking/ANKAPIResponseMeta.h
  16. +20 −0 Release/ADNKit+AFNetworking/ANKAnnotatableResource.h
  17. +60 −0 Release/ADNKit+AFNetworking/ANKAnnotation.h
  18. +22 −0 Release/ADNKit+AFNetworking/ANKAnnotationReplacement.h
  19. +35 −0 Release/ADNKit+AFNetworking/ANKChannel.h
  20. +20 −0 Release/ADNKit+AFNetworking/ANKChannelCounts.h
  21. +45 −0 Release/ADNKit+AFNetworking/ANKClient+ANKChannel.h
  22. +23 −0 Release/ADNKit+AFNetworking/ANKClient+ANKExploreStream.h
  23. +39 −0 Release/ADNKit+AFNetworking/ANKClient+ANKFile.h
  24. +20 −0 Release/ADNKit+AFNetworking/ANKClient+ANKFilter.h
  25. +36 −0 Release/ADNKit+AFNetworking/ANKClient+ANKHandlerBlocks.h
  26. +20 −0 Release/ADNKit+AFNetworking/ANKClient+ANKInteraction.h
  27. +32 −0 Release/ADNKit+AFNetworking/ANKClient+ANKMessage.h
  28. +23 −0 Release/ADNKit+AFNetworking/ANKClient+ANKPlace.h
  29. +49 −0 Release/ADNKit+AFNetworking/ANKClient+ANKPost.h
  30. +32 −0 Release/ADNKit+AFNetworking/ANKClient+ANKPostStreams.h
  31. +20 −0 Release/ADNKit+AFNetworking/ANKClient+ANKStream.h
  32. +22 −0 Release/ADNKit+AFNetworking/ANKClient+ANKTokenStatus.h
  33. +62 −0 Release/ADNKit+AFNetworking/ANKClient+ANKUser.h
  34. +66 −0 Release/ADNKit+AFNetworking/ANKClient.h
  35. +29 −0 Release/ADNKit+AFNetworking/ANKEntities.h
  36. +23 −0 Release/ADNKit+AFNetworking/ANKEntity.h
  37. +23 −0 Release/ADNKit+AFNetworking/ANKExploreStream.h
  38. +46 −0 Release/ADNKit+AFNetworking/ANKFile.h
  39. +33 −0 Release/ADNKit+AFNetworking/ANKFilter.h
  40. +36 −0 Release/ADNKit+AFNetworking/ANKFilterClause.h
  41. +27 −0 Release/ADNKit+AFNetworking/ANKGeolocation.h
  42. +20 −0 Release/ADNKit+AFNetworking/ANKHashtagEntity.h
  43. +26 −0 Release/ADNKit+AFNetworking/ANKImage.h
  44. +23 −0 Release/ADNKit+AFNetworking/ANKInteraction.h
  45. +16 −0 Release/ADNKit+AFNetworking/ANKJSONRequestOperation.h
  46. +24 −0 Release/ADNKit+AFNetworking/ANKLinkEntity.h
  47. +21 −0 Release/ADNKit+AFNetworking/ANKMentionEntity.h
  48. +35 −0 Release/ADNKit+AFNetworking/ANKMessage.h
  49. +25 −0 Release/ADNKit+AFNetworking/ANKOAuthViewController.h
  50. +35 −0 Release/ADNKit+AFNetworking/ANKOEmbed.h
  51. +22 −0 Release/ADNKit+AFNetworking/ANKObjectSource.h
  52. +36 −0 Release/ADNKit+AFNetworking/ANKPaginationSettings.h
  53. +52 −0 Release/ADNKit+AFNetworking/ANKPlace.h
  54. +21 −0 Release/ADNKit+AFNetworking/ANKPlaceCategory.h
  55. +51 −0 Release/ADNKit+AFNetworking/ANKPost.h
  56. +31 −0 Release/ADNKit+AFNetworking/ANKResource.h
  57. +21 −0 Release/ADNKit+AFNetworking/ANKStorage.h
  58. +27 −0 Release/ADNKit+AFNetworking/ANKStream.h
  59. +25 −0 Release/ADNKit+AFNetworking/ANKStreamMarker.h
  60. +20 −0 Release/ADNKit+AFNetworking/ANKTextFieldCell.h
  61. +26 −0 Release/ADNKit+AFNetworking/ANKTokenStatus.h
  62. +40 −0 Release/ADNKit+AFNetworking/ANKUser.h
  63. +23 −0 Release/ADNKit+AFNetworking/ANKUserCounts.h
  64. +24 −0 Release/ADNKit+AFNetworking/ANKUserDescription.h
  65. +18 −0 Release/ADNKit+AFNetworking/ANKUsernameFormatter.h
  66. +26 −0 Release/ADNKit+AFNetworking/ANKUsernamePasswordAuthViewController.h
  67. +35 −0 Release/ADNKit+AFNetworking/ANKValueTransformations.h
  68. +21 −0 Release/ADNKit+AFNetworking/NSArray+ANKAdditions.h
  69. +22 −0 Release/ADNKit+AFNetworking/NSDictionary+ANKAdditions.h
  70. 0 Release/{ADNKit → ADNKit+AFNetworking}/UIImageView+AFNetworking.h
  71. BIN Release/ADNKit.framework/Versions/A/ADNKit
  72. BIN Release/libADNKit-AFNetworking-iOS.a
  73. BIN Release/libADNKit-iOS.a
  74. +3 −1 Scripts/make_release.sh
View
13 Release/ADNKit+AFNetworking/ADNKit-OSX.h
@@ -0,0 +1,13 @@
+/*
+ Copyright (c) 2013, Joel Levin
+ All rights reserved.
+
+ Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
+
+ Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
+ Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
+ Neither the name of ADNKit nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+
View
14 Release/ADNKit+AFNetworking/ADNKit-iOS.h
@@ -0,0 +1,14 @@
+/*
+ Copyright (c) 2013, Joel Levin
+ All rights reserved.
+
+ Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
+
+ Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
+ Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
+ Neither the name of ADNKit nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+#import <ADNKit/ANKOAuthViewController.h>
+#import <ADNKit/ANKUsernamePasswordAuthViewController.h>
View
79 Release/ADNKit+AFNetworking/ADNKit.h
@@ -0,0 +1,79 @@
+/*
+ Copyright (c) 2013, Joel Levin
+ All rights reserved.
+
+ Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
+
+ Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
+ Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
+ Neither the name of ADNKit nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+#import <ADNKit/ANKClient.h>
+#import <ADNKit/ANKClient+ANKUser.h>
+#import <ADNKit/ANKClient+ANKPost.h>
+#import <ADNKit/ANKClient+ANKPostStreams.h>
+#import <ADNKit/ANKClient+ANKFile.h>
+#import <ADNKit/ANKClient+ANKPlace.h>
+#import <ADNKit/ANKClient+ANKChannel.h>
+#import <ADNKit/ANKClient+ANKMessage.h>
+#import <ADNKit/ANKClient+ANKStream.h>
+#import <ADNKit/ANKClient+ANKInteraction.h>
+#import <ADNKit/ANKClient+ANKExploreStream.h>
+#import <ADNKit/ANKClient+ANKFilter.h>
+#import <ADNKit/ANKClient+ANKTokenStatus.h>
+
+#import <ADNKit/ANKResource.h>
+#import <ADNKit/ANKAnnotatableResource.h>
+#import <ADNKit/ANKAnnotationReplacement.h>
+
+#import <ADNKit/ANKUser.h>
+#import <ADNKit/ANKUserCounts.h>
+#import <ADNKit/ANKUserDescription.h>
+
+#import <ADNKit/ANKChannel.h>
+#import <ADNKit/ANKChannelCounts.h>
+#import <ADNKit/ANKACL.h>
+
+#import <ADNKit/ANKPlace.h>
+#import <ADNKit/ANKPlaceCategory.h>
+
+#import <ADNKit/ANKPost.h>
+#import <ADNKit/ANKMessage.h>
+#import <ADNKit/ANKFile.h>
+#import <ADNKit/ANKStream.h>
+#import <ADNKit/ANKFilter.h>
+#import <ADNKit/ANKFilterClause.h>
+
+#import <ADNKit/ANKEntities.h>
+#import <ADNKit/ANKEntity.h>
+#import <ADNKit/ANKMentionEntity.h>
+#import <ADNKit/ANKHashtagEntity.h>
+#import <ADNKit/ANKLinkEntity.h>
+
+#import <ADNKit/ANKTokenStatus.h>
+#import <ADNKit/ANKStorage.h>
+
+#import <ADNKit/ANKObjectSource.h>
+#import <ADNKit/ANKInteraction.h>
+#import <ADNKit/ANKStreamMarker.h>
+#import <ADNKit/ANKExploreStream.h>
+#import <ADNKit/ANKAnnotation.h>
+#import <ADNKit/ANKImage.h>
+#import <ADNKit/ANKGeolocation.h>
+#import <ADNKit/ANKOEmbed.h>
+
+#import <ADNKit/ANKValueTransformations.h>
+#import <ADNKit/ANKJSONRequestOperation.h>
+#import <ADNKit/ANKAPIResponse.h>
+#import <ADNKit/ANKAPIResponseMeta.h>
+#import <ADNKit/ANKPaginationSettings.h>
+
+#import <ADNKit/ANKUsernameFormatter.h>
+
+#ifdef __IPHONE_OS_VERSION_MIN_REQUIRED
+#import "ADNKit-iOS.h"
+#else
+#import "ADNKit-OSX.h"
+#endif
View
0 Release/ADNKit/AFHTTPClient.h → Release/ADNKit+AFNetworking/AFHTTPClient.h
File renamed without changes.
View
0 Release/ADNKit/AFHTTPRequestOperation.h → ...Kit+AFNetworking/AFHTTPRequestOperation.h
File renamed without changes.
View
0 Release/ADNKit/AFImageRequestOperation.h → ...it+AFNetworking/AFImageRequestOperation.h
File renamed without changes.
View
0 Release/ADNKit/AFJSONRequestOperation.h → ...Kit+AFNetworking/AFJSONRequestOperation.h
File renamed without changes.
View
0 ...DNKit/AFNetworkActivityIndicatorManager.h → ...rking/AFNetworkActivityIndicatorManager.h
File renamed without changes.
View
0 Release/ADNKit/AFNetworking.h → Release/ADNKit+AFNetworking/AFNetworking.h
File renamed without changes.
View
0 ...e/ADNKit/AFPropertyListRequestOperation.h → ...tworking/AFPropertyListRequestOperation.h
File renamed without changes.
View
0 Release/ADNKit/AFURLConnectionOperation.h → ...t+AFNetworking/AFURLConnectionOperation.h
File renamed without changes.
View
0 Release/ADNKit/AFXMLRequestOperation.h → ...NKit+AFNetworking/AFXMLRequestOperation.h
File renamed without changes.
View
27 Release/ADNKit+AFNetworking/ANKACL.h
@@ -0,0 +1,27 @@
+/*
+ Copyright (c) 2013, Joel Levin
+ All rights reserved.
+
+ Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
+
+ Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
+ Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
+ Neither the name of ADNKit nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+#import "ANKResource.h"
+
+
+@interface ANKACL : ANKResource
+
+@property (strong) NSArray *userIDs;
+@property (assign) BOOL canAnyUser;
+@property (assign) BOOL canCurrentUser;
+@property (assign) BOOL isImmutable;
+@property (assign) BOOL isPublic;
+
++ (instancetype)ACLForUsers:(NSArray *)users;
++ (instancetype)ACLForUserIDs:(NSArray *)userIDs;
+
+@end
View
28 Release/ADNKit+AFNetworking/ANKAPIResponse.h
@@ -0,0 +1,28 @@
+/*
+ Copyright (c) 2013, Joel Levin
+ All rights reserved.
+
+ Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
+
+ Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
+ Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
+ Neither the name of ADNKit nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+#import <Foundation/Foundation.h>
+
+
+static NSString *const kANKAPIResponseKey = @"ANKAPIResponse";
+
+
+@class ANKAPIResponseMeta;
+
+@interface ANKAPIResponse : NSObject
+
+@property (readonly, strong) id data;
+@property (readonly, strong) ANKAPIResponseMeta *meta;
+
+- (id)initWithResponseObject:(id)responseObject;
+
+@end
View
51 Release/ADNKit+AFNetworking/ANKAPIResponseMeta.h
@@ -0,0 +1,51 @@
+/*
+ Copyright (c) 2013, Joel Levin
+ All rights reserved.
+
+ Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
+
+ Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
+ Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
+ Neither the name of ADNKit nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+#import "ANKResource.h"
+
+
+typedef NS_ENUM(NSUInteger, ANKErrorType) {
+ ANKErrorTypeUnknown = 0,
+ ANKErrorTypeInvalidToken,
+ ANKErrorTypeNotAuthorized,
+ ANKErrorTypeTokenExpired,
+ ANKErrorTypeCodeUsed,
+ ANKErrorTypeRedirectURIRequired
+};
+
+
+static NSString *const kANKErrorDomain = @"ANKErrorDomain";
+static NSString *const kANKErrorTypeKey = @"ANKErrorType";
+static NSString *const kANKErrorIDKey = @"ANKErrorID";
+
+
+@class ANKStreamMarker;
+
+@interface ANKAPIResponseMeta : ANKResource
+
+// standard properties
+@property (assign) NSUInteger statusCode;
+@property (strong) NSString *maxID;
+@property (strong) NSString *minID;
+@property (assign) BOOL moreDataAvailable;
+@property (strong) ANKStreamMarker *marker;
+
+// error properties
+@property (strong) NSString *errorMessage;
+@property (strong) NSString *errorSlug;
+@property (strong) NSString *errorID;
+
+- (NSError *)error;
+- (BOOL)isError;
+- (ANKErrorType)errorType;
+
+@end
View
20 Release/ADNKit+AFNetworking/ANKAnnotatableResource.h
@@ -0,0 +1,20 @@
+/*
+ Copyright (c) 2013, Joel Levin
+ All rights reserved.
+
+ Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
+
+ Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
+ Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
+ Neither the name of ADNKit nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+#import "ANKResource.h"
+
+
+@interface ANKAnnotatableResource : ANKResource
+
+@property (strong) NSArray *annotations;
+
+@end
View
60 Release/ADNKit+AFNetworking/ANKAnnotation.h
@@ -0,0 +1,60 @@
+/*
+ Copyright (c) 2013, Joel Levin
+ All rights reserved.
+
+ Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
+
+ Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
+ Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
+ Neither the name of ADNKit nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+#import "ANKResource.h"
+
+
+// core annotations -- see convenience methods below
+static NSString *const kANKCoreAnnotationAttachments = @"net.app.core.attachments";
+static NSString *const kANKCoreAnnotationChannelInvite = @"net.app.core.channel.invite";
+static NSString *const kANKCoreAnnotationCheckin = @"net.app.core.checkin";
+static NSString *const kANKCoreAnnotationCrosspost = @"net.app.core.crosspost";
+static NSString *const kANKCoreAnnotationBlogURL = @"net.app.core.directory.blog";
+static NSString *const kANKCoreAnnotationFacebookID = @"net.app.core.directory.facebook";
+static NSString *const kANKCoreAnnotationHomepage = @"net.app.core.directory.homepage";
+static NSString *const kANKCoreAnnotationTwitterUsername = @"net.app.core.directory.twitter";
+static NSString *const kANKCoreAnnotationFallbackURL = @"net.app.core.fallback_url";
+static NSString *const kANKCoreAnnotationGeolocation = @"net.app.core.geolocation";
+static NSString *const kANKCoreAnnotationLanguage = @"net.app.core.language";
+static NSString *const kANKCoreAnnotationEmbeddedMedia = @"net.app.core.oembed";
+
+
+@class ANKChannel, ANKPlace, ANKGeolocation, ANKOEmbed;
+
+@interface ANKAnnotation : ANKResource
+
+@property (strong) NSString *type;
+@property (strong) NSDictionary *value;
+
++ (instancetype)annotationWithType:(NSString *)type value:(NSDictionary *)value;
++ (instancetype)annotationWithType:(NSString *)type object:(ANKResource *)resource;
+
+// core annotation convenience methods
+// http://developers.app.net/docs/meta/annotations/#core-annotations
+
++ (instancetype)attachmentsAnnotationWithFiles:(NSArray *)files;
++ (instancetype)channelInviteAnnotationForChannel:(ANKChannel *)channel;
++ (instancetype)checkinAnnotationForPlace:(ANKPlace *)place;
++ (instancetype)externalCrosspostAnnotationWithURL:(NSURL *)canonicalURL;
++ (instancetype)userBlogAnnotationWithURL:(NSURL *)URL;
++ (instancetype)userFacebookIDAnnotationWithID:(NSString *)ID;
++ (instancetype)userHomepageAnnotationWithURL:(NSURL *)URL;
++ (instancetype)userTwitterAccountNameWithString:(NSString *)twitterName;
++ (instancetype)fallbackURLAnnotationWithURL:(NSURL *)URL;
++ (instancetype)geolocationAnnotationForGeolocation:(ANKGeolocation *)geolocation;
++ (instancetype)languageAnnotationForLanguageIdentifier:(NSString *)languageIdentifier;
++ (instancetype)oembedAnnotationForOEmbed:(ANKOEmbed *)oembed;
+
+- (ANKResource *)resourceOfClassForValue:(Class)resourceClass;
+- (ANKResource *)resourceOfClass:(Class)resourceClass forValueKeyPath:(NSString *)keyPath;
+
+@end
View
22 Release/ADNKit+AFNetworking/ANKAnnotationReplacement.h
@@ -0,0 +1,22 @@
+/*
+ Copyright (c) 2013, Joel Levin
+ All rights reserved.
+
+ Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
+
+ Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
+ Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
+ Neither the name of ADNKit nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+#import <Foundation/Foundation.h>
+
+
+@protocol ANKAnnotationReplacement <NSObject>
+
+@required
++ (NSString *)annotationValueWrapperKey;
+- (NSDictionary *)annotationValue;
+
+@end
View
35 Release/ADNKit+AFNetworking/ANKChannel.h
@@ -0,0 +1,35 @@
+/*
+ Copyright (c) 2013, Joel Levin
+ All rights reserved.
+
+ Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
+
+ Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
+ Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
+ Neither the name of ADNKit nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+#import "ANKAnnotatableResource.h"
+
+
+@class ANKUser, ANKChannelCounts, ANKMessage, ANKStreamMarker, ANKACL;
+
+@interface ANKChannel : ANKAnnotatableResource
+
+@property (strong) NSString *channelID;
+@property (strong) NSString *type;
+@property (strong) ANKUser *owner;
+@property (strong) ANKChannelCounts *counts;
+@property (strong) NSString *latestMessageID;
+@property (strong) ANKMessage *latestMessage;
+@property (strong) ANKStreamMarker *marker;
+@property (strong) ANKACL *readers;
+@property (strong) ANKACL *writers;
+@property (assign) BOOL isCurrentUserSubscribed;
+@property (assign) BOOL isEditableByCurrentUser;
+@property (assign) BOOL hasUnreadMessages;
+
+- (BOOL)isPrivateMessageChannel;
+
+@end
View
20 Release/ADNKit+AFNetworking/ANKChannelCounts.h
@@ -0,0 +1,20 @@
+/*
+ Copyright (c) 2013, Joel Levin
+ All rights reserved.
+
+ Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
+
+ Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
+ Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
+ Neither the name of ADNKit nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+#import "ANKResource.h"
+
+
+@interface ANKChannelCounts : ANKResource
+
+@property (assign) NSUInteger messagesCount;
+
+@end
View
45 Release/ADNKit+AFNetworking/ANKClient+ANKChannel.h
@@ -0,0 +1,45 @@
+/*
+ Copyright (c) 2013, Joel Levin
+ All rights reserved.
+
+ Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
+
+ Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
+ Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
+ Neither the name of ADNKit nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+#import "ANKClient+ANKHandlerBlocks.h"
+
+
+@class ANKChannel, ANKACL, ANKUser;
+
+@interface ANKClient (ANKChannel)
+
+- (void)fetchCurrentUserSubscribedChannelsWithCompletion:(ANKClientCompletionBlock)completionHandler;
+- (void)fetchCurrentUserPrivateMessageChannelsWithCompletion:(ANKClientCompletionBlock)completionHandler;
+- (void)fetchCurrentUserCreatedChannelsWithCompletion:(ANKClientCompletionBlock)completionHandler;
+- (void)fetchUnreadPMChannelsCountWithCompletion:(ANKClientCompletionBlock)completionHandler;
+
+- (void)fetchChannelWithID:(NSString *)channelID completion:(ANKClientCompletionBlock)completionHandler;
+- (void)fetchChannelsWithIDs:(NSArray *)channelIDs completion:(ANKClientCompletionBlock)completionHandler;
+
+- (void)fetchUsersSubscribedToChannel:(ANKChannel *)channel completion:(ANKClientCompletionBlock)completionHandler;
+- (void)fetchUsersSubscribedToChannelWithID:(NSString *)channelID completion:(ANKClientCompletionBlock)completionHandler;
+- (void)fetchUserIDsSubscribedToChannel:(ANKChannel *)channel completion:(ANKClientCompletionBlock)completionHandler;
+- (void)fetchUserIDsSubscribedToChannelWithID:(NSString *)channelID completion:(ANKClientCompletionBlock)completionHandler;
+- (void)fetchUserIDsSubscribedToChannelIDs:(NSArray *)channelIDs completion:(ANKClientCompletionBlock)completionHandler;
+
+- (void)createChannel:(ANKChannel *)channel completion:(ANKClientCompletionBlock)completionHandler;
+- (void)createChannelWithType:(NSString *)type readers:(ANKACL *)readersACL writers:(ANKACL *)writersACL completion:(ANKClientCompletionBlock)completionHandler;
+
+- (void)updateChannel:(ANKChannel *)channel completion:(ANKClientCompletionBlock)completionHandler;
+- (void)updateChannelWithID:(NSString *)channelID readers:(ANKACL *)readersACL writers:(ANKACL *)writersACL completion:(ANKClientCompletionBlock)completionHandler;
+
+- (void)subscribeToChannel:(ANKChannel *)channel completion:(ANKClientCompletionBlock)completionHandler;
+- (void)subscribeToChannelWithID:(NSString *)channelID completion:(ANKClientCompletionBlock)completionHandler;
+- (void)unsubscribeToChannel:(ANKChannel *)channel completion:(ANKClientCompletionBlock)completionHandler;
+- (void)unsubscribeToChannelWithID:(NSString *)channelID completion:(ANKClientCompletionBlock)completionHandler;
+
+@end
View
23 Release/ADNKit+AFNetworking/ANKClient+ANKExploreStream.h
@@ -0,0 +1,23 @@
+/*
+ Copyright (c) 2013, Joel Levin
+ All rights reserved.
+
+ Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
+
+ Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
+ Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
+ Neither the name of ADNKit nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+#import "ANKClient+ANKHandlerBlocks.h"
+
+
+@class ANKExploreStream;
+
+@interface ANKClient (ANKExploreStream)
+
+- (void)fetchExploreStreamsWithCompletion:(ANKClientCompletionBlock)completionHandler;
+- (void)fetchExploreStreamWithSlug:(NSString *)slug completion:(ANKClientCompletionBlock)completionHandler;
+
+@end
View
39 Release/ADNKit+AFNetworking/ANKClient+ANKFile.h
@@ -0,0 +1,39 @@
+/*
+ Copyright (c) 2013, Joel Levin
+ All rights reserved.
+
+ Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
+
+ Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
+ Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
+ Neither the name of ADNKit nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+#import "ANKClient+ANKHandlerBlocks.h"
+
+
+@class ANKFile;
+
+@interface ANKClient (ANKFile)
+
+- (void)fetchFileWithID:(NSString *)fileID completion:(ANKClientCompletionBlock)completionHandler;
+- (void)fetchFilesWithIDs:(NSArray *)fileIDs completion:(ANKClientCompletionBlock)completionHandler;
+- (void)fetchCurrentUserFilesWithCompletion:(ANKClientCompletionBlock)completionHandler;
+- (void)fetchContentsOfFile:(ANKFile *)file completion:(ANKClientCompletionBlock)completionHandler;
+- (void)fetchContentsOfFileWithID:(NSString *)fileID completion:(ANKClientCompletionBlock)completionHandler;
+
+- (void)createFile:(ANKFile *)file withData:(NSData *)fileData completion:(ANKClientCompletionBlock)completionHandler;
+- (void)createFileWithData:(NSData *)fileData mimeType:(NSString *)mimeType filename:(NSString *)filename metadata:(NSDictionary *)metadata progress:(ANKClientFileUploadProgressBlock)progressHandler completion:(ANKClientCompletionBlock)completionHandler;
+- (void)createFileWithContentsOfURL:(NSURL *)fileURL metadata:(NSDictionary *)metadata progress:(ANKClientFileUploadProgressBlock)progressHandler completion:(ANKClientCompletionBlock)completionHandler;
+
+- (void)updateFile:(ANKFile *)file completion:(ANKClientCompletionBlock)completionHandler;
+- (void)updateFileWithID:(NSString *)fileID name:(NSString *)updatedName isPublic:(BOOL)updatedPublicFlag completion:(ANKClientCompletionBlock)completionHandler;
+
+- (void)deleteFile:(ANKFile *)file completion:(ANKClientCompletionBlock)completionHandler;
+- (void)deleteFileWithID:(NSString *)fileID completion:(ANKClientCompletionBlock)completionHandler;
+
+- (void)setContentOfFile:(ANKFile *)file fileData:(NSData *)fileData mimeType:(NSString *)mimeType completion:(ANKClientCompletionBlock)completionHandler;
+- (void)setContentOfFileWithID:(NSString *)fileID fileData:(NSData *)fileData mimeType:(NSString *)mimeType completion:(ANKClientCompletionBlock)completionHandler;
+
+@end
View
20 Release/ADNKit+AFNetworking/ANKClient+ANKFilter.h
@@ -0,0 +1,20 @@
+/*
+ Copyright (c) 2013, Joel Levin
+ All rights reserved.
+
+ Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
+
+ Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
+ Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
+ Neither the name of ADNKit nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+#import "ANKClient+ANKHandlerBlocks.h"
+
+
+@interface ANKClient (ANKFilter)
+
+
+
+@end
View
36 Release/ADNKit+AFNetworking/ANKClient+ANKHandlerBlocks.h
@@ -0,0 +1,36 @@
+/*
+ Copyright (c) 2013, Joel Levin
+ All rights reserved.
+
+ Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
+
+ Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
+ Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
+ Neither the name of ADNKit nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+#import "ANKClient.h"
+
+
+@class ANKAPIResponse, ANKAPIResponseMeta;
+
+typedef void (^AFNetworkingSuccessBlock)(AFHTTPRequestOperation *operation, id responseObject);
+typedef void (^AFNetworkingFailureBlock)(AFHTTPRequestOperation *operation, NSError *error);
+typedef void (^ANKClientCompletionBlock)(id responseObject, ANKAPIResponseMeta *meta, NSError *error);
+typedef void (^ANKClientFileUploadProgressBlock)(NSUInteger bytesWritten, long long totalBytesWritten, long long totalBytesExpectedToWrite);
+
+
+@interface ANKClient (ANKHandlerBlocks)
+
+- (NSArray *)unboxCollectionResponse:(ANKAPIResponse *)response ofResourceClass:(Class)resourceClass;
+- (AFNetworkingSuccessBlock)successHandlerForClientHandler:(ANKClientCompletionBlock)handler unboxBlock:(id (^)(ANKAPIResponse *response, NSError **error))unboxBlock;
+- (AFNetworkingSuccessBlock)successHandlerForResourceClass:(Class)resourceClass clientHandler:(ANKClientCompletionBlock)handler;
+- (AFNetworkingSuccessBlock)successHandlerForCollectionOfResourceClass:(Class)resourceClass clientHandler:(ANKClientCompletionBlock)handler;
+- (AFNetworkingSuccessBlock)successHandlerForCollectionOfResourceClass:(Class)resourceClass clientHandler:(ANKClientCompletionBlock)handler mapBlock:(id (^)(id object))mapBlock;
+- (AFNetworkingSuccessBlock)successHandlerForCollectionOfResourceClass:(Class)resourceClass clientHandler:(ANKClientCompletionBlock)handler filterBlock:(BOOL (^)(id object))filterBlock;
+- (AFNetworkingSuccessBlock)successHandlerForPrimitiveResponseWithClientHandler:(ANKClientCompletionBlock)handler;
+
+- (AFNetworkingFailureBlock)failureHandlerForClientHandler:(ANKClientCompletionBlock)handler;
+
+@end
View
20 Release/ADNKit+AFNetworking/ANKClient+ANKInteraction.h
@@ -0,0 +1,20 @@
+/*
+ Copyright (c) 2013, Joel Levin
+ All rights reserved.
+
+ Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
+
+ Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
+ Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
+ Neither the name of ADNKit nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+#import "ANKClient+ANKHandlerBlocks.h"
+
+
+@interface ANKClient (ANKInteraction)
+
+- (void)fetchInteractionsForCurrentUserWithCompletion:(ANKClientCompletionBlock)completionHandler;
+
+@end
View
32 Release/ADNKit+AFNetworking/ANKClient+ANKMessage.h
@@ -0,0 +1,32 @@
+/*
+ Copyright (c) 2013, Joel Levin
+ All rights reserved.
+
+ Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
+
+ Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
+ Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
+ Neither the name of ADNKit nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+#import "ANKClient+ANKHandlerBlocks.h"
+
+
+@class ANKMessage, ANKChannel;
+
+@interface ANKClient (ANKMessage)
+
+- (void)fetchMessagesInChannel:(ANKChannel *)channel completion:(ANKClientCompletionBlock)completionHandler;
+- (void)fetchMessagesInChannelWithID:(NSString *)channelID completion:(ANKClientCompletionBlock)completionHandler;
+- (void)fetchMessageWithID:(NSString *)messageID inChannel:(ANKChannel *)channel completion:(ANKClientCompletionBlock)completionHandler;
+- (void)fetchMessageWithID:(NSString *)messageID inChannelWithID:(NSString *)channelID completion:(ANKClientCompletionBlock)completionHandler;
+- (void)fetchMessagesWithIDs:(NSArray *)messageIDs completion:(ANKClientCompletionBlock)completionHandler;
+- (void)fetchMessagesCreatedByCurrentUserWithCompletion:(ANKClientCompletionBlock)completionHandler;
+
+- (void)createMessage:(ANKMessage *)message inChannel:(ANKChannel *)channel completion:(ANKClientCompletionBlock)completionHandler;
+- (void)createMessage:(ANKMessage *)message inChannelWithID:(NSString *)channelID completion:(ANKClientCompletionBlock)completionHandler;
+- (void)createMessageWithText:(NSString *)messageText inReplyToMessageWithID:(NSString *)messageID inChannel:(ANKChannel *)channel completion:(ANKClientCompletionBlock)completionHandler;
+- (void)createMessageWithText:(NSString *)messageText inReplyToMessageWithID:(NSString *)messageID inChannelWithID:(NSString *)channelID completion:(ANKClientCompletionBlock)completionHandler;
+
+@end
View
23 Release/ADNKit+AFNetworking/ANKClient+ANKPlace.h
@@ -0,0 +1,23 @@
+/*
+ Copyright (c) 2013, Joel Levin
+ All rights reserved.
+
+ Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
+
+ Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
+ Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
+ Neither the name of ADNKit nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+#import "ANKClient+ANKHandlerBlocks.h"
+
+
+@interface ANKClient (ANKPlace)
+
+- (void)fetchPlaceWithFactualID:(NSString *)factualID completion:(ANKClientCompletionBlock)completionHandler;
+
+// parameters contains keys located in ANKPlace.h
+- (void)searchForPlacesWithParameters:(NSDictionary *)params completion:(ANKClientCompletionBlock)completionHandler;
+
+@end
View
49 Release/ADNKit+AFNetworking/ANKClient+ANKPost.h
@@ -0,0 +1,49 @@
+/*
+ Copyright (c) 2013, Joel Levin
+ All rights reserved.
+
+ Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
+
+ Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
+ Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
+ Neither the name of ADNKit nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+#import "ANKClient+ANKHandlerBlocks.h"
+
+
+@class ANKPost, ANKUser;
+
+@interface ANKClient (ANKPost)
+
+- (void)fetchPostWithID:(NSString *)postID completion:(ANKClientCompletionBlock)completionHandler;
+- (void)fetchPostsWithIDs:(NSArray *)postIDs completion:(ANKClientCompletionBlock)completionHandler;
+
+- (void)fetchRepliesToPost:(ANKPost *)post completion:(ANKClientCompletionBlock)completionHandler;
+- (void)fetchRepliesToPostWithID:(NSString *)postID completion:(ANKClientCompletionBlock)completionHandler;
+
+- (void)fetchPostsStarredByUser:(ANKUser *)user completion:(ANKClientCompletionBlock)completionHandler;
+- (void)fetchPostsStarredByUserWithID:(NSString *)userID completion:(ANKClientCompletionBlock)completionHandler;
+
+- (void)createPost:(ANKPost *)post completion:(ANKClientCompletionBlock)completionHandler;
+- (void)createPostWithText:(NSString *)text completion:(ANKClientCompletionBlock)completionHandler;
+- (void)createPostWithText:(NSString *)text inReplyToPost:(ANKPost *)post completion:(ANKClientCompletionBlock)completionHandler;
+- (void)createPostWithText:(NSString *)text inReplyToPostWithID:(NSString *)postID completion:(ANKClientCompletionBlock)completionHandler;
+- (void)deletePost:(ANKPost *)post completion:(ANKClientCompletionBlock)completionHandler;
+- (void)deletePostWithID:(NSString *)postID completion:(ANKClientCompletionBlock)completionHandler;
+
+- (void)repostPost:(ANKPost *)post completion:(ANKClientCompletionBlock)completionHandler;
+- (void)repostPostWithID:(NSString *)postID completion:(ANKClientCompletionBlock)completionHandler;
+- (void)unrepostPost:(ANKPost *)post completion:(ANKClientCompletionBlock)completionHandler;
+- (void)unrepostPostWithID:(NSString *)postID completion:(ANKClientCompletionBlock)completionHandler;
+
+- (void)starPost:(ANKPost *)post completion:(ANKClientCompletionBlock)completionHandler;
+- (void)starPostWithID:(NSString *)postID completion:(ANKClientCompletionBlock)completionHandler;
+- (void)unstarPost:(ANKPost *)post completion:(ANKClientCompletionBlock)completionHandler;
+- (void)unstarPostWithID:(NSString *)postID completion:(ANKClientCompletionBlock)completionHandler;
+
+- (void)reportPostAsSpam:(ANKPost *)post completion:(ANKClientCompletionBlock)completionHandler;
+- (void)reportPostWithIDAsSpam:(NSString *)postID completion:(ANKClientCompletionBlock)completionHandler;
+
+@end
View
32 Release/ADNKit+AFNetworking/ANKClient+ANKPostStreams.h
@@ -0,0 +1,32 @@
+/*
+ Copyright (c) 2013, Joel Levin
+ All rights reserved.
+
+ Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
+
+ Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
+ Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
+ Neither the name of ADNKit nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+#import "ANKClient+ANKHandlerBlocks.h"
+
+
+@class ANKPost, ANKUser;
+
+@interface ANKClient (ANKPostStreams)
+
+- (void)fetchGlobalStreamWithCompletion:(ANKClientCompletionBlock)completionHandler;
+- (void)fetchPostsWithHashtag:(NSString *)hashtag completion:(ANKClientCompletionBlock)completionHandler;
+
+- (void)fetchPostsCreatedByUser:(ANKUser *)user completion:(ANKClientCompletionBlock)completionHandler;
+- (void)fetchPostsCreatedByUserWithID:(NSString *)userID completion:(ANKClientCompletionBlock)completionHandler;
+
+- (void)fetchPostsMentioningUser:(ANKUser *)user completion:(ANKClientCompletionBlock)completionHandler;
+- (void)fetchPostsMentioningUserWithID:(NSString *)userID completion:(ANKClientCompletionBlock)completionHandler;
+
+- (void)fetchStreamForCurrentUserWithCompletion:(ANKClientCompletionBlock)completionHandler;
+- (void)fetchUnifiedStreamForCurrentUserWithCompletion:(ANKClientCompletionBlock)completionHandler;
+
+@end
View
20 Release/ADNKit+AFNetworking/ANKClient+ANKStream.h
@@ -0,0 +1,20 @@
+/*
+ Copyright (c) 2013, Joel Levin
+ All rights reserved.
+
+ Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
+
+ Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
+ Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
+ Neither the name of ADNKit nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+#import "ANKClient+ANKHandlerBlocks.h"
+
+
+@interface ANKClient (ANKStream)
+
+
+
+@end
View
22 Release/ADNKit+AFNetworking/ANKClient+ANKTokenStatus.h
@@ -0,0 +1,22 @@
+/*
+ Copyright (c) 2013, Joel Levin
+ All rights reserved.
+
+ Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
+
+ Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
+ Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
+ Neither the name of ADNKit nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+#import "ANKClient.h"
+
+
+@interface ANKClient (ANKTokenStatus)
+
+- (void)fetchTokenStatusForCurrentUserWithCompletion:(ANKClientCompletionBlock)completionHandler;
+- (void)fetchTokenStatusesForAuthorizedUsersWithCompletion:(ANKClientCompletionBlock)completionHandler;
+- (void)fetchAuthorizedUserIDsWithCompletion:(ANKClientCompletionBlock)completionHandler;
+
+@end
View
62 Release/ADNKit+AFNetworking/ANKClient+ANKUser.h
@@ -0,0 +1,62 @@
+/*
+ Copyright (c) 2013, Joel Levin
+ All rights reserved.
+
+ Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
+
+ Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
+ Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
+ Neither the name of ADNKit nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+#import "ANKClient+ANKHandlerBlocks.h"
+
+
+@class ANKUser, ANKPost;
+
+@interface ANKClient (ANKUser)
+
+- (void)fetchCurrentUserWithCompletion:(ANKClientCompletionBlock)completionHandler;
+- (void)fetchUserWithID:(NSString *)userID completion:(ANKClientCompletionBlock)completionHandler;
+- (void)fetchUsersWithIDs:(NSArray *)userIDs completion:(ANKClientCompletionBlock)completionHandler;
+- (void)searchForUsersWithQuery:(NSString *)query completion:(ANKClientCompletionBlock)completionHandler;
+
+- (void)fetchAvatarImageURLForUserWithID:(NSString *)userID completion:(ANKClientCompletionBlock)completionHandler;
+- (void)fetchCoverImageURLForUserWithID:(NSString *)userID completion:(ANKClientCompletionBlock)completionHandler;
+
+- (void)fetchUsersUserFollowing:(ANKUser *)user completion:(ANKClientCompletionBlock)completionHandler;
+- (void)fetchUsersUserWithIDFollowing:(NSString *)userID completion:(ANKClientCompletionBlock)completionHandler;
+- (void)fetchUsersFollowingUser:(ANKUser *)user completion:(ANKClientCompletionBlock)completionHandler;
+- (void)fetchUsersFollowingUserWithID:(NSString *)userID completion:(ANKClientCompletionBlock)completionHandler;
+
+- (void)fetchUserIDsUserFollowing:(ANKUser *)user completion:(ANKClientCompletionBlock)completionHandler;
+- (void)fetchUserIDsUserWithIDFollowing:(NSString *)userID completion:(ANKClientCompletionBlock)completionHandler;
+- (void)fetchUserIDsFollowingUser:(ANKUser *)user completion:(ANKClientCompletionBlock)completionHandler;
+- (void)fetchUserIDsFollowingUserWithID:(NSString *)userID completion:(ANKClientCompletionBlock)completionHandler;
+
+- (void)fetchMutedUsersForUser:(ANKUser *)user completion:(ANKClientCompletionBlock)completionHandler;
+- (void)fetchMutedUsersForUserWithID:(NSString *)userID completion:(ANKClientCompletionBlock)completionHandler;
+- (void)fetchMutedUserIDsForUsers:(NSArray *)users completion:(ANKClientCompletionBlock)completionHandler;
+- (void)fetchMutedUserIDsForUserIDs:(NSArray *)userIDs completion:(ANKClientCompletionBlock)completionHandler;
+
+- (void)fetchUsersRepostedForPost:(ANKPost *)post completion:(ANKClientCompletionBlock)completionHandler;
+- (void)fetchUsersRepostedForPostWithID:(NSString *)postID completion:(ANKClientCompletionBlock)completionHandler;
+- (void)fetchUsersStarredForPost:(ANKPost *)post completion:(ANKClientCompletionBlock)completionHandler;
+- (void)fetchUsersStarredForPostWithID:(NSString *)postID completion:(ANKClientCompletionBlock)completionHandler;
+
+- (void)updateCurrentUser:(ANKUser *)user fullName:(NSString *)fullName descriptionText:(NSString *)descriptionText completion:(ANKClientCompletionBlock)completionHandler;
+- (void)updateCurrentUserName:(NSString *)fullName locale:(NSString *)locale timezone:(NSString *)timezone descriptionText:(NSString *)descriptionText completion:(ANKClientCompletionBlock)completionHander;
+- (void)updateCurrentUserAvatarWithImageData:(NSData *)imageData mimeType:(NSString *)mimeType completion:(ANKClientCompletionBlock)completionHandler;
+
+- (void)followUser:(ANKUser *)user completion:(ANKClientCompletionBlock)completionHandler;
+- (void)followUserWithID:(NSString *)userID completion:(ANKClientCompletionBlock)completionHandler;
+- (void)unfollowUser:(ANKUser *)user completion:(ANKClientCompletionBlock)completionHandler;
+- (void)unfollowUserWithID:(NSString *)userID completion:(ANKClientCompletionBlock)completionHandler;
+
+- (void)muteUser:(ANKUser *)user completion:(ANKClientCompletionBlock)completionHandler;
+- (void)muteUserWithID:(NSString *)userID completion:(ANKClientCompletionBlock)completionHandler;
+- (void)unmuteUser:(ANKUser *)user completion:(ANKClientCompletionBlock)completionHandler;
+- (void)unmuteUserWithID:(NSString *)userID completion:(ANKClientCompletionBlock)completionHandler;
+
+@end
View
66 Release/ADNKit+AFNetworking/ANKClient.h
@@ -0,0 +1,66 @@
+/*
+ Copyright (c) 2013, Joel Levin
+ All rights reserved.
+
+ Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
+
+ Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
+ Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
+ Neither the name of ADNKit nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+#import "AFNetworking.h"
+
+
+typedef NS_ENUM(NSUInteger, ANKAuthScope) {
+ ANKAuthScopeNone = 0,
+ ANKAuthScopeBasic = (1 << 0), // see basic information about this user
+ ANKAuthScopeStream = (1 << 1), // read this user’s stream
+ ANKAuthScopeEmail = (1 << 2), // access this user’s email address
+ ANKAuthScopeWritePost = (1 << 3), // create a new post as this user
+ ANKAuthScopeFollow = (1 << 4), // add or remove follows (or mutes) for this user
+ ANKAuthScopePublicMessages = (1 << 5), // send and receive public messages as this user
+ ANKAuthScopeMessages = (1 << 6), // send and receive public and private messages as this user
+ ANKAuthScopeUpdateProfile = (1 << 7), // update a user’s name, images, and other profile information
+ ANKAuthScopeFiles = (1 << 8), // manage a user’s files. This is not needed for uploading files.
+ ANKAuthScopeExport = (1 << 9), // bulk export all of this user’s App.net data
+};
+
+
+@class ANKPaginationSettings;
+
+@interface ANKClient : AFHTTPClient
+
++ (NSURL *)APIBaseURL; // defaults to @"https://alpha-api.app.net/stream/0/" -- subclass and override to change it
++ (instancetype)sharedClient;
+
+@property (strong) NSString *accessToken; // access token acquired by auth or persisted across launches and set directly
+@property (assign) BOOL shouldRequestAnnotations; // when yes, annotations will be fetched regardless of the object type
+@property (copy) void (^webAuthCompletionHandler)(BOOL success, NSError *error); // set as completion block for oauth authentication
+@property (strong) ANKPaginationSettings *pagination;
+
+#pragma mark -
+#pragma mark Authentication
+
+// username/password authentication
+- (void)authenticateUsername:(NSString *)username password:(NSString *)password clientID:(NSString *)clientID passwordGrantSecret:(NSString *)passwordGrantSecret authScopes:(ANKAuthScope)authScopes completionHandler:(void (^)(BOOL success, NSError *error))completionHander;
+
+// web-style authentication. call this method first, and then load the resulting URLRequest is a webview
+- (NSURLRequest *)webAuthRequestForClientID:(NSString *)clientID redirectURI:(NSString *)redirectURI authScopes:(ANKAuthScope)authScopes state:(NSString *)state appStoreCompliant:(BOOL)shouldBeAppStoreCompliant;
+// once you have an access code, call this method to finish web auth
+- (void)authenticateWebAuthAccessCode:(NSString *)accessCode forClientID:(NSString *)clientID clientSecret:(NSString *)clientSecret;
+
+// returns the auth scope string expected by the server for the given scopes
++ (NSString *)scopeStringForAuthScopes:(ANKAuthScope)scopes;
+
+// to conform to the requirements of username/password auth, it is required to show the user what permissions they are authorizing for you by signing in.
+// this method returns full descriptions for the given scopes that can be placed in the UI
++ (NSArray *)scopeDescriptionsForScope:(ANKAuthScope)scope;
+
+#pragma mark -
+#pragma mark Pagination
+
+- (instancetype)clientWithPagination:(ANKPaginationSettings *)pagination;
+
+@end
View
29 Release/ADNKit+AFNetworking/ANKEntities.h
@@ -0,0 +1,29 @@
+/*
+ Copyright (c) 2013, Joel Levin
+ All rights reserved.
+
+ Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
+
+ Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
+ Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
+ Neither the name of ADNKit nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+#import "ANKResource.h"
+
+
+@class ANKEntity, ANKMentionEntity;
+
+@interface ANKEntities : ANKResource
+
+@property (strong) NSArray *mentions;
+@property (strong) NSArray *hashtags;
+@property (strong) NSArray *links;
+
+- (ANKMentionEntity *)mentionForUsername:(NSString *)username;
+- (BOOL)containsMentionForUsername:(NSString *)username;
+
+- (NSAttributedString *)attributedStringForString:(NSString *)string withDefaultAttributes:(NSDictionary *)defaultAttributes mentionAttributes:(NSDictionary *)mentionAttributes hashtagAttributes:(NSDictionary *)hashtagAttributes linkAttributes:(NSDictionary *)linkAttributes attributeEncodeBlock:(void (^)(NSMutableDictionary *attributes, ANKEntity *entity))encodeBlock;
+
+@end
View
23 Release/ADNKit+AFNetworking/ANKEntity.h
@@ -0,0 +1,23 @@
+/*
+ Copyright (c) 2013, Joel Levin
+ All rights reserved.
+
+ Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
+
+ Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
+ Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
+ Neither the name of ADNKit nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+#import "ANKResource.h"
+
+
+@interface ANKEntity : ANKResource
+
+@property (assign) NSUInteger position;
+@property (assign) NSUInteger length;
+
+- (NSRange)range;
+
+@end
View
23 Release/ADNKit+AFNetworking/ANKExploreStream.h
@@ -0,0 +1,23 @@
+/*
+ Copyright (c) 2013, Joel Levin
+ All rights reserved.
+
+ Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
+
+ Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
+ Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
+ Neither the name of ADNKit nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+#import "ANKResource.h"
+
+
+@interface ANKExploreStream : ANKResource
+
+@property (strong) NSString *slug;
+@property (strong) NSString *title;
+@property (strong) NSString *description;
+@property (strong) NSURL *URL;
+
+@end
View
46 Release/ADNKit+AFNetworking/ANKFile.h
@@ -0,0 +1,46 @@
+/*
+ Copyright (c) 2013, Joel Levin
+ All rights reserved.
+
+ Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
+
+ Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
+ Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
+ Neither the name of ADNKit nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+#import "ANKAnnotatableResource.h"
+
+
+static NSString *const kANKFileAnnotationKey = @"+net.app.core.file";
+static NSString *const kANKFileListAnnotationKey = @"+net.app.core.file_list";
+
+
+@class ANKUser, ANKObjectSource;
+
+@interface ANKFile : ANKAnnotatableResource <ANKAnnotationReplacement>
+
+@property (strong) NSString *fileID;
+@property (strong) NSString *kind;
+@property (strong) NSString *mimeType;
+@property (strong) NSString *name;
+@property (assign) BOOL isComplete;
+@property (assign) BOOL isPublic;
+@property (strong) NSString *sha1ContentHash;
+@property (strong) NSDate *createdAt;
+@property (assign) NSUInteger sizeBytes;
+@property (assign) NSUInteger sizeBytesIncludingDerivedFiles;
+@property (strong) NSDictionary *derivedFiles;
+@property (strong) NSURL *URL;
+@property (strong) NSDate *URLExpireDate;
+@property (strong) NSURL *permanentURL;
+@property (strong) NSString *fileToken;
+@property (strong) NSString *readOnlyFileToken;
+@property (strong) NSString *type;
+@property (strong) ANKUser *user;
+@property (strong) ANKObjectSource *source;
+
++ (NSDictionary *)fileListAnnotationValueForFiles:(NSArray *)files;
+
+@end
View
33 Release/ADNKit+AFNetworking/ANKFilter.h
@@ -0,0 +1,33 @@
+/*
+ Copyright (c) 2013, Joel Levin
+ All rights reserved.
+
+ Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
+
+ Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
+ Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
+ Neither the name of ADNKit nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+#import "ANKResource.h"
+
+
+typedef NS_ENUM(NSUInteger, ANKFilterMatchPolicy) {
+ ANKFilterMatchPolicyIncludeAny = 0,
+ ANKFilterMatchPolicyIncludeAll,
+ ANKFilterMatchPolicyExcludeAny,
+ ANKFilterMatchPolicyExcludeAll
+};
+
+
+@interface ANKFilter : ANKResource
+
+@property (strong) NSString *filterID;
+@property (strong) NSString *name;
+@property (strong) NSArray *clauses;
+@property (strong) NSString *matchPolicyString;
+
+- (ANKFilterMatchPolicy)matchPolicy;
+
+@end
View
36 Release/ADNKit+AFNetworking/ANKFilterClause.h
@@ -0,0 +1,36 @@
+/*
+ Copyright (c) 2013, Joel Levin
+ All rights reserved.
+
+ Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
+
+ Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
+ Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
+ Neither the name of ADNKit nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+#import "ANKResource.h"
+
+
+typedef NS_ENUM(NSUInteger, ANKFilterClauseOperator) {
+ ANKFilterClauseOperatorEquals = 0,
+ ANKFilterClauseOperatorMatches,
+ ANKFilterClauseOperatorLessThan,
+ ANKFilterClauseOperatorLessThanOrEquals,
+ ANKFilterClauseOperatorGreaterThan,
+ ANKFilterClauseOperatorGreaterThanOrEquals,
+ ANKFilterClauseOperatorOneOf
+};
+
+
+@interface ANKFilterClause : ANKResource
+
+@property (strong) NSString *objectType;
+@property (strong) NSString *operatorString;
+@property (strong) NSString *field;
+@property (strong) id value;
+
+- (ANKFilterClauseOperator)clauseOperator;
+
+@end
View
27 Release/ADNKit+AFNetworking/ANKGeolocation.h
@@ -0,0 +1,27 @@
+/*
+ Copyright (c) 2013, Joel Levin
+ All rights reserved.
+
+ Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
+
+ Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
+ Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
+ Neither the name of ADNKit nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+#import <ADNKit/ADNKit.h>
+#import <CoreLocation/CoreLocation.h>
+
+
+@interface ANKGeolocation : ANKResource
+
+@property (assign) CGFloat latitude;
+@property (assign) CGFloat longitude;
+@property (assign) NSInteger altitude;
+@property (assign) NSUInteger horizontalAccuracy;
+@property (assign) NSUInteger verticalAccuracy;
+
+- (CLLocationCoordinate2D)location;
+
+@end
View
20 Release/ADNKit+AFNetworking/ANKHashtagEntity.h
@@ -0,0 +1,20 @@
+/*
+ Copyright (c) 2013, Joel Levin
+ All rights reserved.
+
+ Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
+
+ Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
+ Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
+ Neither the name of ADNKit nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+#import "ANKEntity.h"
+
+
+@interface ANKHashtagEntity : ANKEntity
+
+@property (strong) NSString *hashtag;
+
+@end
View
26 Release/ADNKit+AFNetworking/ANKImage.h
@@ -0,0 +1,26 @@
+/*
+ Copyright (c) 2013, Joel Levin
+ All rights reserved.
+
+ Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
+
+ Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
+ Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
+ Neither the name of ADNKit nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+#import "ANKResource.h"
+
+
+@interface ANKImage : ANKResource
+
+@property (assign) NSUInteger width;
+@property (assign) NSUInteger height;
+@property (strong) NSURL *URL;
+@property (assign) BOOL isDefault;
+
+- (CGSize)size;
+- (NSURL *)URLForSize:(CGSize)size;
+
+@end
View
23 Release/ADNKit+AFNetworking/ANKInteraction.h
@@ -0,0 +1,23 @@
+/*
+ Copyright (c) 2013, Joel Levin
+ All rights reserved.
+
+ Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
+
+ Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
+ Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
+ Neither the name of ADNKit nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+#import "ANKResource.h"
+
+
+@interface ANKInteraction : ANKResource
+
+@property (strong) NSString *actionString;
+@property (strong) NSDate *eventDate;
+@property (strong) NSArray *objects;
+@property (strong) NSArray *users;
+
+@end
View
16 Release/ADNKit+AFNetworking/ANKJSONRequestOperation.h
@@ -0,0 +1,16 @@
+/*
+ Copyright (c) 2013, Joel Levin
+ All rights reserved.
+
+ Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
+
+ Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
+ Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
+ Neither the name of ADNKit nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+
+@interface ANKJSONRequestOperation : AFJSONRequestOperation
+
+@end
View
24 Release/ADNKit+AFNetworking/ANKLinkEntity.h
@@ -0,0 +1,24 @@
+/*
+ Copyright (c) 2013, Joel Levin
+ All rights reserved.
+
+ Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
+
+ Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
+ Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
+ Neither the name of ADNKit nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+#import "ANKEntity.h"
+
+
+@interface ANKLinkEntity : ANKEntity
+
+@property (strong) NSString *text;
+@property (strong) NSURL *URL;
+@property (assign) NSUInteger amendedLength;
+
+- (NSRange)amendedRange;
+
+@end
View
21 Release/ADNKit+AFNetworking/ANKMentionEntity.h
@@ -0,0 +1,21 @@
+/*
+ Copyright (c) 2013, Joel Levin
+ All rights reserved.
+
+ Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
+
+ Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
+ Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
+ Neither the name of ADNKit nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+#import "ANKEntity.h"
+
+
+@interface ANKMentionEntity : ANKEntity
+
+@property (strong) NSString *username;
+@property (strong) NSString *userID;
+
+@end
View
35 Release/ADNKit+AFNetworking/ANKMessage.h
@@ -0,0 +1,35 @@
+/*
+ Copyright (c) 2013, Joel Levin
+ All rights reserved.
+
+ Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
+
+ Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
+ Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
+ Neither the name of ADNKit nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+#import "ANKAnnotatableResource.h"
+
+
+@class ANKUser, ANKObjectSource, ANKEntities;
+
+@interface ANKMessage : ANKAnnotatableResource
+
+@property (strong) NSString *messageID;
+@property (strong) NSString *channelID;
+@property (strong) NSArray *destinationUserIDs;
+@property (strong) ANKUser *user;
+@property (strong) NSDate *createdAt;
+@property (strong) NSString *text;
+@property (strong) NSString *html;
+@property (strong) ANKEntities *entities;
+@property (strong) ANKObjectSource *source;
+@property (strong) NSString *inReplyToMessageID;
+@property (strong) NSString *threadID;
+@property (assign) NSUInteger repliesCount;
+@property (assign) BOOL isDeleted;
+@property (assign) BOOL isMachineOnly;
+
+@end
View
25 Release/ADNKit+AFNetworking/ANKOAuthViewController.h
@@ -0,0 +1,25 @@
+/*
+ Copyright (c) 2013, Joel Levin
+ All rights reserved.
+
+ Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
+
+ Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
+ Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
+ Neither the name of ADNKit nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+#import <UIKit/UIKit.h>
+
+
+@interface ANKOAuthViewController : UIViewController
+
+- (id)initWithWebAuthRequest:(NSURLRequest *)request client:(ANKClient *)client completion:(void (^)(ANKClient *authedClient, NSError *error, ANKOAuthViewController *controller))completionHander;
+
+// called after you parse the access code out from your redirect URI
+- (void)authenticateWebAuthAccessCode:(NSString *)accessCode forClientID:(NSString *)clientID clientSecret:(NSString *)clientSecret;
+
+- (void)cancel;
+
+@end
View
35 Release/ADNKit+AFNetworking/ANKOEmbed.h
@@ -0,0 +1,35 @@
+/*
+ Copyright (c) 2013, Joel Levin
+ All rights reserved.
+
+ Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
+
+ Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
+ Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
+ Neither the name of ADNKit nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+#import <ADNKit/ADNKit.h>
+
+
+@interface ANKOEmbed : ANKResource
+
+@property (strong) NSString *type;
+@property (strong) NSString *version;
+@property (assign) NSUInteger width;
+@property (assign) NSUInteger height;
+@property (strong) NSURL *URL;
+@property (strong) NSString *html;
+@property (strong) NSURL *embeddableURL;
+@property (strong) NSString *title;
+@property (strong) NSString *authorName;
+@property (strong) NSURL *authorURL;
+@property (strong) NSString *providerName;
+@property (strong) NSURL *providerURL;
+@property (assign) NSUInteger cacheAge;
+@property (strong) NSURL *thumbnailURL;
+@property (assign) NSUInteger thumbnailWidth;
+@property (assign) NSUInteger thumbnailHeight;
+
+@end
View
22 Release/ADNKit+AFNetworking/ANKObjectSource.h
@@ -0,0 +1,22 @@
+/*
+ Copyright (c) 2013, Joel Levin
+ All rights reserved.
+
+ Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
+
+ Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
+ Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
+ Neither the name of ADNKit nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+#import "ANKResource.h"
+
+
+@interface ANKObjectSource : ANKResource
+
+@property (strong) NSString *name;
+@property (strong) NSString *link;
+@property (strong) NSString *clientID;
+
+@end
View
36 Release/ADNKit+AFNetworking/ANKPaginationSettings.h
@@ -0,0 +1,36 @@
+/*
+ Copyright (c) 2013, Joel Levin
+ All rights reserved.
+
+ Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
+
+ Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
+ Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
+ Neither the name of ADNKit nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+#import "ANKResource.h"
+
+
+@class ANKStreamMarker;
+
+@interface ANKPaginationSettings : ANKResource
+
+@property (strong) NSString *sinceID;
+@property (strong) NSString *beforeID;
+@property (assign) NSUInteger count;
+
+// stream marker
+@property (strong) NSString *lastReadID;
+@property (strong) NSString *lastReadIDInclusive;
+@property (strong) NSString *markerID;
+@property (strong) NSString *markerIDInclusive;
+
++ (instancetype)defaultSettings;
++ (instancetype)settingsWithCount:(NSUInteger)count;
++ (instancetype)settingsWithSinceID:(NSString *)sinceID beforeID:(NSString *)beforeID count:(NSUInteger)count;
++ (instancetype)settingsWithLastReadID:(NSString *)lastReadID markerID:(NSString *)markerID count:(NSUInteger)count;
++ (instancetype)settingsWithLastReadIDInclusive:(NSString *)lastReadIDInclusive markerIDInclusive:(NSString *)markerIDInclusive count:(NSUInteger)count;
+
+@end
View
52 Release/ADNKit+AFNetworking/ANKPlace.h
@@ -0,0 +1,52 @@
+/*
+ Copyright (c) 2013, Joel Levin
+ All rights reserved.
+
+ Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
+
+ Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
+ Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
+ Neither the name of ADNKit nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+#import "ANKResource.h"
+#import <CoreLocation/CoreLocation.h>
+
+
+static NSString *const kANKPlaceAnnotationKey = @"+net.app.core.place";
+
+static NSString *const kANKPlaceSearchParamLatitude = @"latitude";
+static NSString *const kANKPlaceSearchParamLongitude = @"longitude";
+static NSString *const kANKPlaceSearchParamQuery = @"q";
+static NSString *const kANKPlaceSearchParamRadius = @"radius";
+static NSString *const kANKPlaceSearchParamCount = @"count";
+static NSString *const kANKPlaceSearchParamAltitude = @"altitude";
+static NSString *const kANKPlaceSearchParamHorizontalAccuracy = @"horizontal_accuracy";
+static NSString *const kANKPlaceSearchParamVerticalAccuracy = @"vertical_accuracy";
+
+
+@interface ANKPlace : ANKResource <ANKAnnotationReplacement>
+
+@property (strong) NSString *factualID;
+@property (strong) NSString *name;
+@property (strong) NSString *address;
+@property (strong) NSString *addressExtended;
+@property (strong) NSString *locality;
+@property (strong) NSString *region;
+@property (strong) NSString *adminRegion;
+@property (strong) NSString *postTown;
+@property (strong) NSString *poBox;
+@property (strong) NSString *postcode;
+@property (strong) NSString *countryCode;
+@property (assign) CGFloat latitude;
+@property (assign) CGFloat longitude;
+@property (assign) BOOL isOpen;
+@property (strong) NSString *telephone;
+@property (strong) NSString *fax;
+@property (strong) NSURL *website;
+@property (strong) NSArray *categories;
+
+- (CLLocationCoordinate2D)location;
+
+@end
View
21 Release/ADNKit+AFNetworking/ANKPlaceCategory.h
@@ -0,0 +1,21 @@
+/*
+ Copyright (c) 2013, Joel Levin
+ All rights reserved.
+
+ Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
+
+ Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
+ Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
+ Neither the name of ADNKit nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+#import "ANKResource.h"
+
+
+@interface ANKPlaceCategory : ANKResource
+
+@property (strong) NSArray *labels;
+@property (strong) NSString *identifier;
+
+@end
View
51 Release/ADNKit+AFNetworking/ANKPost.h
@@ -0,0 +1,51 @@
+/*
+ Copyright (c) 2013, Joel Levin
+ All rights reserved.
+
+ Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
+
+ Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
+ Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
+ Neither the name of ADNKit nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+#import "ANKAnnotatableResource.h"
+
+
+// Descriptions for Post fields
+// http://developers.app.net/docs/resources/post/#post-fields
+
+
+@class ANKUser, ANKObjectSource, ANKEntities;
+
+@interface ANKPost : ANKAnnotatableResource
+
+@property (strong) NSString *postID;
+@property (strong) ANKUser *user;
+@property (strong) NSDate *createdAt;
+@property (strong) NSString *text;
+@property (strong) NSString *html;
+@property (strong) ANKEntities *entities;
+@property (strong) ANKObjectSource *source;
+@property (strong) NSString *repliedToPostID;
+@property (strong) NSURL *canonicalURL;
+@property (strong) NSString *threadID;
+@property (assign) NSUInteger repliesCount;
+@property (assign) NSUInteger starsCount;
+@property (assign) NSUInteger repostsCount;
+@property (assign) BOOL isDeleted;
+@property (assign) BOOL isMachineOnly;
+@property (assign) BOOL isStarredByCurrentUser;
+@property (strong) NSArray *starredByUsers;
+@property (assign) BOOL isRepostedByCurrentUser;
+@property (strong) NSArray *reposters;
+@property (strong) ANKPost *repostedPost;
+
+// this does not come from the server, nor is it returned as a key in -JSONDictionary. It is meant for
+// easy caching from the client to encourage not generating the attributed string more than once.
+@property (strong) NSAttributedString *attributedText;
+
+- (BOOL)containsMentionForUsername:(NSString *)username;
+
+@end
View
31 Release/ADNKit+AFNetworking/ANKResource.h
@@ -0,0 +1,31 @@
+/*
+ Copyright (c) 2013, Joel Levin
+ All rights reserved.
+
+ Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
+
+ Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
+ Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
+ Neither the name of ADNKit nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+#import <Foundation/Foundation.h>
+
+
+@interface ANKResource : NSObject <NSCopying, NSCoding>
+
++ (NSDictionary *)JSONToLocalKeyMapping;
++ (NSString *)JSONKeyForLocalKey:(NSString *)localKey;
++ (NSString *)localKeyForJSONKey:(NSString *)JSONKey;
++ (NSSet *)localKeysExcludedFromJSONOutput;
+
++ (instancetype)objectFromJSONDictionary:(NSDictionary *)dictionary;
++ (NSArray *)objectsFromJSONDictionaries:(NSArray *)dictionaries;
+
+- (id)initWithJSONDictionary:(NSDictionary *)JSONDictionay;
+- (void)updateObjectFromJSONDictionary:(NSDictionary *)JSONDictionary;
+- (void)objectDidUpdate;
+- (NSDictionary *)JSONDictionary;
+
+@end
View
21 Release/ADNKit+AFNetworking/ANKStorage.h
@@ -0,0 +1,21 @@
+/*
+ Copyright (c) 2013, Joel Levin
+ All rights reserved.
+
+ Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
+
+ Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
+ Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
+ Neither the name of ADNKit nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+#import "ANKResource.h"
+
+
+@interface ANKStorage : ANKResource
+
+@property (assign) size_t available;
+@property (assign) size_t used;
+
+@end
View
27 Release/ADNKit+AFNetworking/ANKStream.h
@@ -0,0 +1,27 @@
+/*
+ Copyright (c) 2013, Joel Levin
+ All rights reserved.
+
+ Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
+
+ Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
+ Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
+ Neither the name of ADNKit nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+#import "ANKResource.h"
+
+
+@class ANKFilter;
+
+@interface ANKStream : ANKResource
+
+@property (strong) NSString *streamID;
+@property (strong) NSString *endpoint;
+@property (strong) ANKFilter *filter;
+@property (strong) NSArray *objectTypes;
+@property (strong) NSString *type;
+@property (strong) NSString *key;
+
+@end
View
25 Release/ADNKit+AFNetworking/ANKStreamMarker.h
@@ -0,0 +1,25 @@
+/*
+ Copyright (c) 2013, Joel Levin
+ All rights reserved.
+
+ Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
+
+ Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
+ Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
+ Neither the name of ADNKit nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+#import "ANKResource.h"
+
+
+@interface ANKStreamMarker : ANKResource
+
+@property (strong) NSString *identifier;
+@property (strong) NSString *topPostID;
+@property (strong) NSString *lastReadPostID;
+@property (strong) NSString *streamName;
+@property (assign) NSUInteger percentage;
+@property (strong) NSDate *updatedAt;
+
+@end
View
20 Release/ADNKit+AFNetworking/ANKTextFieldCell.h
@@ -0,0 +1,20 @@
+/*
+ Copyright (c) 2013, Joel Levin
+ All rights reserved.
+
+ Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
+
+ Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
+ Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
+ Neither the name of ADNKit nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+#import <UIKit/UIKit.h>
+
+
+@interface ANKTextFieldCell : UITableViewCell
+
+@property (strong) UITextField *textField;
+
+@end
View
26 Release/ADNKit+AFNetworking/ANKTokenStatus.h
@@ -0,0 +1,26 @@
+/*
+ Copyright (c) 2013, Joel Levin
+ All rights reserved.
+
+ Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
+
+ Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
+ Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
+ Neither the name of ADNKit nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+#import "ANKResource.h"
+
+
+@class ANKObjectSource, ANKUser, ANKStorage;
+
+@interface ANKTokenStatus : ANKResource
+
+@property (strong) NSString *clientID;
+@property (strong) ANKObjectSource *app;
+@property (strong) NSArray *scopes;
+@property (strong) ANKUser *user;
+@property (strong) ANKStorage *storage;
+
+@end
View
40 Release/ADNKit+AFNetworking/ANKUser.h
@@ -0,0 +1,40 @@
+/*
+ Copyright (c) 2013, Joel Levin
+ All rights reserved.
+
+ Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
+
+ Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
+ Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
+ Neither the name of ADNKit nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+#import "ANKAnnotatableResource.h"
+
+
+// Descriptions for User fields:
+// http://developers.app.net/docs/resources/user/#user-fields
+
+
+@class ANKUserCounts, ANKUserDescription, ANKImage;
+
+@interface ANKUser : ANKAnnotatableResource
+
+@property (strong) NSString *userID;
+@property (strong) NSString *username;
+@property (strong) NSString *name;
+@property (strong) ANKUserDescription *bio;
+@property (strong) NSString *timezone;
+@property (strong) NSString *locale;
+@property (strong) ANKImage *avatarImage;
+@property (strong) ANKImage *coverImage;
+@property (strong) NSString *type;
+@property (strong) NSDate *createdAt;
+@property (strong) ANKUserCounts *counts;
+@property (assign) BOOL followsCurrentUser;
+@property (assign) BOOL currentUserFollows;
+@property (assign) BOOL currentUserMuted;
+@property (assign) BOOL currentUserCanSubscribe;
+
+@end
View
23 Release/ADNKit+AFNetworking/ANKUserCounts.h
@@ -0,0 +1,23 @@
+/*
+ Copyright (c) 2013, Joel Levin
+ All rights reserved.
+
+ Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
+
+ Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
+ Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
+ Neither the name of ADNKit nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+#import "ANKResource.h"
+
+
+@interface ANKUserCounts : ANKResource
+
+@property (assign) NSUInteger following;
+@property (assign) NSUInteger followers;
+@property (assign) NSUInteger posts;
+@property (assign) NSUInteger stars;
+
+@end
View
24 Release/ADNKit+AFNetworking/ANKUserDescription.h
@@ -0,0 +1,24 @@
+/*
+ Copyright (c) 2013, Joel Levin
+ All rights reserved.
+
+ Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
+
+ Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
+ Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
+ Neither the name of ADNKit nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+#import "ANKResource.h"
+
+
+@class ANKEntities;
+
+@interface ANKUserDescription : ANKResource
+
+@property (strong) NSString *text;
+@property (strong) NSString *html;
+@property (strong) ANKEntities *entities;
+
+@end
View
18 Release/ADNKit+AFNetworking/ANKUsernameFormatter.h
@@ -0,0 +1,18 @@
+/*
+ Copyright (c) 2013, Joel Levin
+ All rights reserved.
+
+ Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
+
+ Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
+ Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
+ Neither the name of ADNKit nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+#import <Foundation/Foundation.h>
+
+
+@interface ANKUsernameFormatter : NSFormatter
+
+@end
View
26 Release/ADNKit+AFNetworking/ANKUsernamePasswordAuthViewController.h
@@ -0,0 +1,26 @@
+/*
+ Copyright (c) 2013, Joel Levin
+ All rights reserved.
+
+ Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
+
+ Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
+ Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
+ Neither the name of ADNKit nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+#import <UIKit/UIKit.h>
+
+
+@interface ANKUsernamePasswordAuthViewController : UITableViewController <UITextFieldDelegate>
+
+- (id)initWithClient:(ANKClient *)client clientID:(NSString *)clientID passwordGrantSecret:(NSString *)passwordGrantSecret authScopes:(ANKAuthScope)authScopes completion:(void (^)(ANKClient *authedClient, NSError *error, ANKUsernamePasswordAuthViewController *controller))completionHandler;
+
+- (void)cancel;
+
+// set these blocks if you want to show a loading UI during the request
+@property (copy) void (^authRequestDidBegin)(void);
+@property (copy) void (^authRequestDidFinish)(void);
+
+@end
View
35 Release/ADNKit+AFNetworking/ANKValueTransformations.h
@@ -0,0 +1,35 @@
+/*
+ Copyright (c) 2013, Joel Levin
+ All rights reserved.
+
+ Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
+
+ Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
+ Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
+ Neither the name of ADNKit nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+#import <Foundation/Foundation.h>
+
+
+@interface ANKValueTransformations : NSObject
+
++ (instancetype)transformations;
+
+// forward transformations
+- (NSString *)NSStringFromNSConstantString:(NSString *)string;
+- (NSURL *)NSURLFromNSString:(NSString *)string;
+- (NSDate *)NSDateFromNSString:(NSString *)string;
+- (NSArray *)NSArrayFrom__NSArrayI:(NSArray *)array;
+- (NSDictionary *)NSDictionaryFrom__NSDictionaryI:(NSDictionary *)dictionary;
+- (NSDictionary *)NSDictionaryFrom__NSDictionaryM:(NSDictionary *)dictionary;
+
+// reverse transformations
+- (id)JSONObjectFromNSURL:(NSURL *)URL;
+- (id)JSONObjectFromNSDate:(NSDate *)date;
+
+// misc
+- (NSDateFormatter *)dateFormatter;
+
+@end
View
21 Release/ADNKit+AFNetworking/NSArray+ANKAdditions.h
@@ -0,0 +1,21 @@
+/*
+ Copyright (c) 2013, Joel Levin
+ All rights reserved.
+
+ Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
+
+ Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
+ Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
+ Neither the name of ADNKit nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+#import <Foundation/Foundation.h>
+
+
+@interface NSArray (ANKAdditions)
+
+- (NSArray *)ank_map:(id (^)(id object))mapBlock;
+- (NSArray *)ank_filter:(BOOL (^)(id object))filterBlock;
+
+@end
View
22 Release/ADNKit+AFNetworking/NSDictionary+ANKAdditions.h
@@ -0,0 +1,22 @@
+/*
+ Copyright (c) 2013, Joel Levin
+ All rights reserved.
+
+ Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
+
+ Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
+ Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
+ Neither the name of ADNKit nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+#import <Foundation/Foundation.h>
+
+
+@interface NSDictionary (ANKAdditions)
+
+- (NSDictionary *)ank_dictionaryByAppendingDictionary:(NSDictionary *)otherDictionary;
+- (NSDictionary *)ank_inverseDictionary;
+- (NSDictionary *)ank_mapValues:(id (^)(id key, id value))block;
+
+@end
View
0 Release/ADNKit/UIImageView+AFNetworking.h → ...t+AFNetworking/UIImageView+AFNetworking.h