From c1217812096a853a0ba367c6e9042c6799adc21e Mon Sep 17 00:00:00 2001 From: mattdonnelly Date: Fri, 15 Aug 2014 18:18:42 +0200 Subject: [PATCH] Make all extensions and list methods public, fixes #19 --- Swifter/SwifterAuth.swift | 2 +- Swifter/SwifterFavorites.swift | 2 +- Swifter/SwifterFollowers.swift | 2 +- Swifter/SwifterHelp.swift | 2 +- Swifter/SwifterLists.swift | 144 ++++++++++++++--------------- Swifter/SwifterMessages.swift | 2 +- Swifter/SwifterPlaces.swift | 2 +- Swifter/SwifterSavedSearches.swift | 2 +- Swifter/SwifterSearch.swift | 2 +- Swifter/SwifterSpam.swift | 2 +- Swifter/SwifterStreaming.swift | 2 +- Swifter/SwifterSuggested.swift | 2 +- Swifter/SwifterTimelines.swift | 2 +- Swifter/SwifterTrends.swift | 2 +- Swifter/SwifterTweets.swift | 2 +- Swifter/SwifterUsers.swift | 2 +- 16 files changed, 87 insertions(+), 87 deletions(-) diff --git a/Swifter/SwifterAuth.swift b/Swifter/SwifterAuth.swift index 0adec9f5..6ce5cf1b 100644 --- a/Swifter/SwifterAuth.swift +++ b/Swifter/SwifterAuth.swift @@ -31,7 +31,7 @@ import Foundation import AppKit #endif -extension Swifter { +public extension Swifter { public typealias TokenSuccessHandler = (accessToken: SwifterCredential.OAuthAccessToken?, response: NSURLResponse) -> Void diff --git a/Swifter/SwifterFavorites.swift b/Swifter/SwifterFavorites.swift index ec9cfe8c..6d71fb52 100644 --- a/Swifter/SwifterFavorites.swift +++ b/Swifter/SwifterFavorites.swift @@ -25,7 +25,7 @@ import Foundation -extension Swifter { +public extension Swifter { /* GET favorites/list diff --git a/Swifter/SwifterFollowers.swift b/Swifter/SwifterFollowers.swift index 3effe64a..df93d6c6 100644 --- a/Swifter/SwifterFollowers.swift +++ b/Swifter/SwifterFollowers.swift @@ -25,7 +25,7 @@ import Foundation -extension Swifter { +public extension Swifter { /* GET friendships/no_retweets/ids diff --git a/Swifter/SwifterHelp.swift b/Swifter/SwifterHelp.swift index 13336d02..08d8a27b 100644 --- a/Swifter/SwifterHelp.swift +++ b/Swifter/SwifterHelp.swift @@ -25,7 +25,7 @@ import Foundation -extension Swifter { +public extension Swifter { /* GET help/configuration diff --git a/Swifter/SwifterLists.swift b/Swifter/SwifterLists.swift index 9cde3b2d..a7e8ea1b 100644 --- a/Swifter/SwifterLists.swift +++ b/Swifter/SwifterLists.swift @@ -25,7 +25,7 @@ import Foundation -extension Swifter { +public extension Swifter { /* GET lists/list @@ -36,7 +36,7 @@ extension Swifter { A maximum of 100 results will be returned by this call. Subscribed lists are returned first, followed by owned lists. This means that if a user subscribes to 90 lists and owns 20 lists, this method returns 90 subscriptions and 10 owned lists. The reverse method returns owned lists first, so with reverse=true, 20 owned lists and 80 subscriptions would be returned. If your goal is to obtain every list a user owns or subscribes to, use GET lists/ownerships and/or GET lists/subscriptions instead. */ - func getListsSubscribedByUserWithReverse(reverse: Bool?, success: ((lists: [JSONValue]?) -> Void)?, failure: FailureHandler?) { + public func getListsSubscribedByUserWithReverse(reverse: Bool?, success: ((lists: [JSONValue]?) -> Void)?, failure: FailureHandler?) { let path = "lists/list.json" var parameters = Dictionary() @@ -53,7 +53,7 @@ extension Swifter { }, failure: failure) } - func getListsSubscribedByUserWithID(userID: Int, reverse: Bool?, success: ((lists: [JSONValue]?) -> Void)?, failure: FailureHandler?) { + public func getListsSubscribedByUserWithID(userID: Int, reverse: Bool?, success: ((lists: [JSONValue]?) -> Void)?, failure: FailureHandler?) { let path = "lists/list.json" var parameters = Dictionary() @@ -72,7 +72,7 @@ extension Swifter { }, failure: failure) } - func getListsSubscribedByUserWithScreenName(screenName: String, reverse: Bool?, success: ((lists: [JSONValue]?) -> Void)?, failure: FailureHandler?) { + public func getListsSubscribedByUserWithScreenName(screenName: String, reverse: Bool?, success: ((lists: [JSONValue]?) -> Void)?, failure: FailureHandler?) { let path = "lists/list.json" var parameters = Dictionary() @@ -96,7 +96,7 @@ extension Swifter { Returns a timeline of tweets authored by members of the specified list. Retweets are included by default. Use the include_rts=false parameter to omit retweets. Embedded Timelines is a great way to embed list timelines on your website. */ - func getListsStatusesWithListID(listID: Int, ownerScreenName: String, sinceID: Int?, maxID: Int?, count: Int?, includeEntities: Bool?, includeRTs: Bool?, success: ((statuses: [JSONValue]?) -> Void)?, failure: FailureHandler?) { + public func getListsStatusesWithListID(listID: Int, ownerScreenName: String, sinceID: Int?, maxID: Int?, count: Int?, includeEntities: Bool?, includeRTs: Bool?, success: ((statuses: [JSONValue]?) -> Void)?, failure: FailureHandler?) { let path = "lists/statuses.json" var parameters = Dictionary() @@ -128,7 +128,7 @@ extension Swifter { }, failure: failure) } - func getListsStatuesWithListID(listID: Int, ownerID: Int, sinceID: Int?, maxID: Int?, count: Int?, includeEntities: Bool?, includeRTs: Bool?, success: ((statuses: [JSONValue]?) -> Void)?, failure: FailureHandler?) { + public func getListsStatuesWithListID(listID: Int, ownerID: Int, sinceID: Int?, maxID: Int?, count: Int?, includeEntities: Bool?, includeRTs: Bool?, success: ((statuses: [JSONValue]?) -> Void)?, failure: FailureHandler?) { let path = "lists/statuses.json" var parameters = Dictionary() @@ -160,7 +160,7 @@ extension Swifter { }, failure: failure) } - func getListsStatuesWithSlug(slug: String, ownerScreenName: String, sinceID: Int?, maxID: Int?, count: Int?, includeEntities: Bool?, includeRTs: Bool?, success: ((statuses: [JSONValue]?) -> Void)?, failure: FailureHandler?) { + public func getListsStatuesWithSlug(slug: String, ownerScreenName: String, sinceID: Int?, maxID: Int?, count: Int?, includeEntities: Bool?, includeRTs: Bool?, success: ((statuses: [JSONValue]?) -> Void)?, failure: FailureHandler?) { let path = "lists/statuses.json" var parameters = Dictionary() @@ -192,7 +192,7 @@ extension Swifter { }, failure: failure) } - func getListsStatuesWithSlug(slug: String, ownerID: Int, sinceID: Int?, maxID: Int?, count: Int?, includeEntities: Bool?, includeRTs: Bool?, success: ((statuses: [JSONValue]?) -> Void)?, failure: FailureHandler?) { + public func getListsStatuesWithSlug(slug: String, ownerID: Int, sinceID: Int?, maxID: Int?, count: Int?, includeEntities: Bool?, includeRTs: Bool?, success: ((statuses: [JSONValue]?) -> Void)?, failure: FailureHandler?) { let path = "lists/statuses.json" var parameters = Dictionary() @@ -229,7 +229,7 @@ extension Swifter { Removes the specified member from the list. The authenticated user must be the list's owner to remove members from the list. */ - func postListsMembersDestroyWithListID(listID: Int, userID: Int, success: ((response: JSON?) -> Void)?, failure: FailureHandler?) { + public func postListsMembersDestroyWithListID(listID: Int, userID: Int, success: ((response: JSON?) -> Void)?, failure: FailureHandler?) { let path = "lists/members/destroy.json" var parameters = Dictionary() @@ -245,7 +245,7 @@ extension Swifter { }, failure: failure) } - func postListsMembersDestroyWithListID(listID: Int, screenName: String, success: ((response: JSON?) -> Void)?, failure: FailureHandler?) { + public func postListsMembersDestroyWithListID(listID: Int, screenName: String, success: ((response: JSON?) -> Void)?, failure: FailureHandler?) { let path = "lists/members/destroy.json" var parameters = Dictionary() @@ -261,7 +261,7 @@ extension Swifter { }, failure: failure) } - func postListsMembersDestroyWithSlug(slug: String, userID: Int, ownerScreenName: String, success: ((response: JSON?) -> Void)?, failure: FailureHandler?) { + public func postListsMembersDestroyWithSlug(slug: String, userID: Int, ownerScreenName: String, success: ((response: JSON?) -> Void)?, failure: FailureHandler?) { let path = "lists/members/destroy.json" var parameters = Dictionary() @@ -278,7 +278,7 @@ extension Swifter { }, failure: failure) } - func postListsMembersDestroyWithSlug(slug: String, screenName: String, ownerScreenName: String, success: ((response: JSON?) -> Void)?, failure: FailureHandler?) { + public func postListsMembersDestroyWithSlug(slug: String, screenName: String, ownerScreenName: String, success: ((response: JSON?) -> Void)?, failure: FailureHandler?) { let path = "lists/members/destroy.json" var parameters = Dictionary() @@ -295,7 +295,7 @@ extension Swifter { }, failure: failure) } - func postListsMembersDestroyWithSlug(slug: String, userID: Int, ownerID: Int, success: ((response: JSON?) -> Void)?, failure: FailureHandler?) { + public func postListsMembersDestroyWithSlug(slug: String, userID: Int, ownerID: Int, success: ((response: JSON?) -> Void)?, failure: FailureHandler?) { let path = "lists/members/destroy.json" var parameters = Dictionary() @@ -312,7 +312,7 @@ extension Swifter { }, failure: failure) } - func postListsMembersDestroyWithSlug(slug: String, screenName: String, ownerID: Int, success: ((response: JSON?) -> Void)?, failure: FailureHandler?) { + public func postListsMembersDestroyWithSlug(slug: String, screenName: String, ownerID: Int, success: ((response: JSON?) -> Void)?, failure: FailureHandler?) { let path = "lists/members/destroy.json" var parameters = Dictionary() @@ -334,7 +334,7 @@ extension Swifter { Returns the lists the specified user has been added to. If user_id or screen_name are not provided the memberships for the authenticating user are returned. */ - func getListsMembershipsWithUserID(userID: Int, cursor: Int?, filterToOwnedLists: Bool?, success: ((lists: [JSONValue]?, previousCursor: Int?, nextCursor: Int?) -> Void)?, failure: FailureHandler?) { + public func getListsMembershipsWithUserID(userID: Int, cursor: Int?, filterToOwnedLists: Bool?, success: ((lists: [JSONValue]?, previousCursor: Int?, nextCursor: Int?) -> Void)?, failure: FailureHandler?) { let path = "lists/memberships.json" var parameters = Dictionary() @@ -360,7 +360,7 @@ extension Swifter { }, failure: failure) } - func getListsMembershipsWithScreenName(screenName: String, cursor: Int?, filterToOwnedLists: Bool?, success: ((lists: [JSONValue]?, previousCursor: Int?, nextCursor: Int?) -> Void)?, failure: FailureHandler?) { + public func getListsMembershipsWithScreenName(screenName: String, cursor: Int?, filterToOwnedLists: Bool?, success: ((lists: [JSONValue]?, previousCursor: Int?, nextCursor: Int?) -> Void)?, failure: FailureHandler?) { let path = "lists/memberships.json" var parameters = Dictionary() @@ -391,7 +391,7 @@ extension Swifter { Returns the subscribers of the specified list. Private list subscribers will only be shown if the authenticated user owns the specified list. */ - func getListsSubscribersWithListID(listID: Int, ownerScreenName: String?, cursor: Int?, includeEntities: Bool?, skipStatus: Bool?, success: ((users: [JSONValue]?, previousCursor: Int?, nextCursor: Int?) -> Void)?, failure: FailureHandler?) { + public func getListsSubscribersWithListID(listID: Int, ownerScreenName: String?, cursor: Int?, includeEntities: Bool?, skipStatus: Bool?, success: ((users: [JSONValue]?, previousCursor: Int?, nextCursor: Int?) -> Void)?, failure: FailureHandler?) { let path = "lists/subscribers.json" var parameters = Dictionary() @@ -422,7 +422,7 @@ extension Swifter { }, failure: failure) } - func getListsSubscribersWithListID(listID: Int, ownerID: Int?, cursor: Int?, includeEntities: Bool?, skipStatus: Bool?, success: ((users: [JSONValue]?, previousCursor: Int?, nextCursor: Int?) -> Void)?, failure: FailureHandler?) { + public func getListsSubscribersWithListID(listID: Int, ownerID: Int?, cursor: Int?, includeEntities: Bool?, skipStatus: Bool?, success: ((users: [JSONValue]?, previousCursor: Int?, nextCursor: Int?) -> Void)?, failure: FailureHandler?) { let path = "lists/subscribers.json" var parameters = Dictionary() @@ -453,7 +453,7 @@ extension Swifter { }, failure: failure) } - func getListsSubscribersWithSlug(slug: String, ownerScreenName: String?, cursor: Int?, includeEntities: Bool?, skipStatus: Bool?, success: ((users: [JSONValue]?, previousCursor: Int?, nextCursor: Int?) -> Void)?, failure: FailureHandler?) { + public func getListsSubscribersWithSlug(slug: String, ownerScreenName: String?, cursor: Int?, includeEntities: Bool?, skipStatus: Bool?, success: ((users: [JSONValue]?, previousCursor: Int?, nextCursor: Int?) -> Void)?, failure: FailureHandler?) { let path = "lists/subscribers.json" var parameters = Dictionary() @@ -484,7 +484,7 @@ extension Swifter { }, failure: failure) } - func getListsSubscribersWithSlug(slug: String, ownerID: Int?, cursor: Int?, includeEntities: Bool?, skipStatus: Bool?, success: ((users: [JSONValue]?, previousCursor: Int?, nextCursor: Int?) -> Void)?, failure: FailureHandler?) { + public func getListsSubscribersWithSlug(slug: String, ownerID: Int?, cursor: Int?, includeEntities: Bool?, skipStatus: Bool?, success: ((users: [JSONValue]?, previousCursor: Int?, nextCursor: Int?) -> Void)?, failure: FailureHandler?) { let path = "lists/subscribers.json" var parameters = Dictionary() @@ -520,7 +520,7 @@ extension Swifter { Subscribes the authenticated user to the specified list. */ - func postListsSubscribersCreateWithListID(listID: Int, ownerScreenName: String, success: ((user: Dictionary?) -> Void)?, failure: FailureHandler?) { + public func postListsSubscribersCreateWithListID(listID: Int, ownerScreenName: String, success: ((user: Dictionary?) -> Void)?, failure: FailureHandler?) { let path = "lists/subscribers/create.json" var parameters = Dictionary() @@ -536,7 +536,7 @@ extension Swifter { }, failure: failure) } - func postListsSubscribersCreateWithListID(listID: Int, ownerID: Int, success: ((user: Dictionary?) -> Void)?, failure: FailureHandler?) { + public func postListsSubscribersCreateWithListID(listID: Int, ownerID: Int, success: ((user: Dictionary?) -> Void)?, failure: FailureHandler?) { let path = "lists/subscribers/create.json" var parameters = Dictionary() @@ -552,7 +552,7 @@ extension Swifter { }, failure: failure) } - func postListsSubscribersCreateWithSlug(slug: String, ownerScreenName: String, success: ((user: Dictionary?) -> Void)?, failure: FailureHandler?) { + public func postListsSubscribersCreateWithSlug(slug: String, ownerScreenName: String, success: ((user: Dictionary?) -> Void)?, failure: FailureHandler?) { let path = "lists/subscribers/create.json" var parameters = Dictionary() @@ -568,7 +568,7 @@ extension Swifter { }, failure: failure) } - func postListsSubscribersCreateWithSlug(slug: String, ownerID: Int, success: ((user: Dictionary?) -> Void)?, failure: FailureHandler?) { + public func postListsSubscribersCreateWithSlug(slug: String, ownerID: Int, success: ((user: Dictionary?) -> Void)?, failure: FailureHandler?) { let path = "lists/subscribers/create.json" var parameters = Dictionary() @@ -589,7 +589,7 @@ extension Swifter { Check if the specified user is a subscriber of the specified list. Returns the user if they are subscriber. */ - func getListsSubscribersShowWithListID(listID: Int, userID: Int, includeEntities: Bool?, skipStatus: Bool?, success: ((user: Dictionary?) -> Void)?, failure: FailureHandler?) { + public func getListsSubscribersShowWithListID(listID: Int, userID: Int, includeEntities: Bool?, skipStatus: Bool?, success: ((user: Dictionary?) -> Void)?, failure: FailureHandler?) { let path = "lists/subscribers/show.json" var parameters = Dictionary() @@ -612,7 +612,7 @@ extension Swifter { }, failure: failure) } - func getListsSubscribersShowWithListID(listID: Int, screenName: String, includeEntities: Bool?, skipStatus: Bool?, success: ((user: Dictionary?) -> Void)?, failure: FailureHandler?) { + public func getListsSubscribersShowWithListID(listID: Int, screenName: String, includeEntities: Bool?, skipStatus: Bool?, success: ((user: Dictionary?) -> Void)?, failure: FailureHandler?) { let path = "lists/subscribers/show.json" var parameters = Dictionary() @@ -635,7 +635,7 @@ extension Swifter { }, failure: failure) } - func getListsSubscribersShowWithSlug(slug: String, ownerID: Int, userID: Int, includeEntities: Bool?, skipStatus: Bool?, success: ((user: Dictionary?) -> Void)?, failure: FailureHandler?) { + public func getListsSubscribersShowWithSlug(slug: String, ownerID: Int, userID: Int, includeEntities: Bool?, skipStatus: Bool?, success: ((user: Dictionary?) -> Void)?, failure: FailureHandler?) { let path = "lists/subscribers/show.json" var parameters = Dictionary() @@ -659,7 +659,7 @@ extension Swifter { }, failure: failure) } - func getListsSubscribersShowWithSlug(slug: String, ownerID: Int, screenName: Int, includeEntities: Bool?, skipStatus: Bool?, success: ((user: Dictionary?) -> Void)?, failure: FailureHandler?) { + public func getListsSubscribersShowWithSlug(slug: String, ownerID: Int, screenName: Int, includeEntities: Bool?, skipStatus: Bool?, success: ((user: Dictionary?) -> Void)?, failure: FailureHandler?) { let path = "lists/subscribers/show.json" var parameters = Dictionary() @@ -683,7 +683,7 @@ extension Swifter { }, failure: failure) } - func getListsSubscribersShowWithSlug(slug: String, ownerScreenName: Int, userID: Int, includeEntities: Bool?, skipStatus: Bool?, success: ((user: Dictionary?) -> Void)?, failure: FailureHandler?) { + public func getListsSubscribersShowWithSlug(slug: String, ownerScreenName: Int, userID: Int, includeEntities: Bool?, skipStatus: Bool?, success: ((user: Dictionary?) -> Void)?, failure: FailureHandler?) { let path = "lists/subscribers/show.json" var parameters = Dictionary() @@ -707,7 +707,7 @@ extension Swifter { }, failure: failure) } - func getListsSubscribersShowWithSlug(slug: String, ownerScreenName: Int, screenName: Int, includeEntities: Bool?, skipStatus: Bool?, success: ((user: Dictionary?) -> Void)?, failure: FailureHandler?) { + public func getListsSubscribersShowWithSlug(slug: String, ownerScreenName: Int, screenName: Int, includeEntities: Bool?, skipStatus: Bool?, success: ((user: Dictionary?) -> Void)?, failure: FailureHandler?) { let path = "lists/subscribers/show.json" var parameters = Dictionary() @@ -736,7 +736,7 @@ extension Swifter { Unsubscribes the authenticated user from the specified list. */ - func postListsSubscribersDestroyWithListID(listID: Int, success: ((user: Dictionary?) -> Void)?, failure: FailureHandler?) { + public func postListsSubscribersDestroyWithListID(listID: Int, success: ((user: Dictionary?) -> Void)?, failure: FailureHandler?) { let path = "lists/subscribers/destroy.json" var parameters = Dictionary() @@ -751,7 +751,7 @@ extension Swifter { }, failure: failure) } - func postListsSubscribersDestroyWithSlug(slug: String, ownerScreenName: String, success: ((user: Dictionary?) -> Void)?, failure: FailureHandler?) { + public func postListsSubscribersDestroyWithSlug(slug: String, ownerScreenName: String, success: ((user: Dictionary?) -> Void)?, failure: FailureHandler?) { let path = "lists/subscribers/destroy.json" var parameters = Dictionary() @@ -767,7 +767,7 @@ extension Swifter { }, failure: failure) } - func postListsSubscribersDestroyWithSlug(slug: String, ownerID: Int, success: ((user: Dictionary?) -> Void)?, failure: FailureHandler?) { + public func postListsSubscribersDestroyWithSlug(slug: String, ownerID: Int, success: ((user: Dictionary?) -> Void)?, failure: FailureHandler?) { let path = "lists/subscribers/destroy.json" var parameters = Dictionary() @@ -790,7 +790,7 @@ extension Swifter { Please note that there can be issues with lists that rapidly remove and add memberships. Take care when using these methods such that you are not too rapidly switching between removals and adds on the same list. */ - func postListsMembersCreateWithListID(listID: Int, userIDs: [Int], includeEntities: Bool?, skipStatus: Bool?, success: ((response: JSON?) -> Void)?, failure: FailureHandler?) { + public func postListsMembersCreateWithListID(listID: Int, userIDs: [Int], includeEntities: Bool?, skipStatus: Bool?, success: ((response: JSON?) -> Void)?, failure: FailureHandler?) { let path = "lists/members/create_all.json" var parameters = Dictionary() @@ -815,7 +815,7 @@ extension Swifter { }, failure: failure) } - func postListsMembersCreateWithListID(listID: Int, screenNames: [String], includeEntities: Bool?, skipStatus: Bool?, success: ((response: JSON?) -> Void)?, failure: FailureHandler?) { + public func postListsMembersCreateWithListID(listID: Int, screenNames: [String], includeEntities: Bool?, skipStatus: Bool?, success: ((response: JSON?) -> Void)?, failure: FailureHandler?) { let path = "lists/members/create_all.json" var parameters = Dictionary() @@ -838,7 +838,7 @@ extension Swifter { }, failure: failure) } - func postListsMembersCreateWithSlug(slug: String, ownerID: Int, userIDs: [Int], includeEntities: Bool?, skipStatus: Bool?, success: ((response: JSON?) -> Void)?, failure: FailureHandler?) { + public func postListsMembersCreateWithSlug(slug: String, ownerID: Int, userIDs: [Int], includeEntities: Bool?, skipStatus: Bool?, success: ((response: JSON?) -> Void)?, failure: FailureHandler?) { let path = "lists/members/create_all.json" var parameters = Dictionary() @@ -864,7 +864,7 @@ extension Swifter { }, failure: failure) } - func postListsMembersCreateWithSlug(slug: String, ownerID: Int, screenNames: [String], includeEntities: Bool?, skipStatus: Bool?, success: ((response: JSON?) -> Void)?, failure: FailureHandler?) { + public func postListsMembersCreateWithSlug(slug: String, ownerID: Int, screenNames: [String], includeEntities: Bool?, skipStatus: Bool?, success: ((response: JSON?) -> Void)?, failure: FailureHandler?) { let path = "lists/members/create_all.json" var parameters = Dictionary() @@ -888,7 +888,7 @@ extension Swifter { }, failure: failure) } - func postListsMembersCreateWithSlug(slug: String, ownerScreenName: String, userIDs: [Int], includeEntities: Bool?, skipStatus: Bool?, success: ((response: JSON?) -> Void)?, failure: FailureHandler?) { + public func postListsMembersCreateWithSlug(slug: String, ownerScreenName: String, userIDs: [Int], includeEntities: Bool?, skipStatus: Bool?, success: ((response: JSON?) -> Void)?, failure: FailureHandler?) { let path = "lists/members/create_all.json" var parameters = Dictionary() @@ -914,7 +914,7 @@ extension Swifter { }, failure: failure) } - func postListsMembersCreateWithSlug(slug: String, ownerScreenName: String, screenNames: [String], includeEntities: Bool?, skipStatus: Bool?, success: ((response: JSON?) -> Void)?, failure: FailureHandler?) { + public func postListsMembersCreateWithSlug(slug: String, ownerScreenName: String, screenNames: [String], includeEntities: Bool?, skipStatus: Bool?, success: ((response: JSON?) -> Void)?, failure: FailureHandler?) { let path = "lists/members/create_all.json" var parameters = Dictionary() @@ -943,7 +943,7 @@ extension Swifter { Check if the specified user is a member of the specified list. */ - func getListsMembersShowWithListID(listID: Int, userID: Int, includeEntities: Bool?, skipStatus: Bool?, success: ((user: Dictionary?) -> Void)?, failure: FailureHandler?) { + public func getListsMembersShowWithListID(listID: Int, userID: Int, includeEntities: Bool?, skipStatus: Bool?, success: ((user: Dictionary?) -> Void)?, failure: FailureHandler?) { let path = "lists/members/show.json" var parameters = Dictionary() @@ -966,7 +966,7 @@ extension Swifter { }, failure: failure) } - func getListsMembersShowWithListID(listID: Int, screenName: String, includeEntities: Bool?, skipStatus: Bool?, success: ((user: Dictionary?) -> Void)?, failure: FailureHandler?) { + public func getListsMembersShowWithListID(listID: Int, screenName: String, includeEntities: Bool?, skipStatus: Bool?, success: ((user: Dictionary?) -> Void)?, failure: FailureHandler?) { let path = "lists/members/show.json" var parameters = Dictionary() @@ -989,7 +989,7 @@ extension Swifter { }, failure: failure) } - func getListsMembersShowWithSlug(slug: String, ownerID: Int, userID: Int, includeEntities: Bool?, skipStatus: Bool?, success: ((user: Dictionary?) -> Void)?, failure: FailureHandler?) { + public func getListsMembersShowWithSlug(slug: String, ownerID: Int, userID: Int, includeEntities: Bool?, skipStatus: Bool?, success: ((user: Dictionary?) -> Void)?, failure: FailureHandler?) { let path = "lists/members/show.json" var parameters = Dictionary() @@ -1013,7 +1013,7 @@ extension Swifter { }, failure: failure) } - func getListsMembersShowWithSlug(slug: String, ownerID: Int, screenName: Int, includeEntities: Bool?, skipStatus: Bool?, success: ((user: Dictionary?) -> Void)?, failure: FailureHandler?) { + public func getListsMembersShowWithSlug(slug: String, ownerID: Int, screenName: Int, includeEntities: Bool?, skipStatus: Bool?, success: ((user: Dictionary?) -> Void)?, failure: FailureHandler?) { let path = "lists/members/show.json" var parameters = Dictionary() @@ -1037,7 +1037,7 @@ extension Swifter { }, failure: failure) } - func getListsMembersShowWithSlug(slug: String, ownerScreenName: Int, userID: Int, includeEntities: Bool?, skipStatus: Bool?, success: ((user: Dictionary?) -> Void)?, failure: FailureHandler?) { + public func getListsMembersShowWithSlug(slug: String, ownerScreenName: Int, userID: Int, includeEntities: Bool?, skipStatus: Bool?, success: ((user: Dictionary?) -> Void)?, failure: FailureHandler?) { let path = "lists/members/show.json" var parameters = Dictionary() @@ -1066,7 +1066,7 @@ extension Swifter { Returns the members of the specified list. Private list members will only be shown if the authenticated user owns the specified list. */ - func getListsMembersShowWithSlug(slug: String, ownerScreenName: Int, screenName: Int, includeEntities: Bool?, skipStatus: Bool?, success: ((user: Dictionary?) -> Void)?, failure: FailureHandler?) { + public func getListsMembersShowWithSlug(slug: String, ownerScreenName: Int, screenName: Int, includeEntities: Bool?, skipStatus: Bool?, success: ((user: Dictionary?) -> Void)?, failure: FailureHandler?) { let path = "lists/members/show.json" var parameters = Dictionary() @@ -1090,7 +1090,7 @@ extension Swifter { }, failure: failure) } - func getListsMembersWithListID(listID: Int, ownerScreenName: String?, cursor: Int?, includeEntities: Bool?, skipStatus: Bool?, success: ((users: [JSONValue]?, previousCursor: Int?, nextCursor: Int?) -> Void)?, failure: FailureHandler?) { + public func getListsMembersWithListID(listID: Int, ownerScreenName: String?, cursor: Int?, includeEntities: Bool?, skipStatus: Bool?, success: ((users: [JSONValue]?, previousCursor: Int?, nextCursor: Int?) -> Void)?, failure: FailureHandler?) { let path = "lists/members.json" var parameters = Dictionary() @@ -1121,7 +1121,7 @@ extension Swifter { }, failure: failure) } - func getListsMembersWithListID(listID: Int, ownerID: Int?, cursor: Int?, includeEntities: Bool?, skipStatus: Bool?, success: ((users: [JSONValue]?, previousCursor: Int?, nextCursor: Int?) -> Void)?, failure: FailureHandler?) { + public func getListsMembersWithListID(listID: Int, ownerID: Int?, cursor: Int?, includeEntities: Bool?, skipStatus: Bool?, success: ((users: [JSONValue]?, previousCursor: Int?, nextCursor: Int?) -> Void)?, failure: FailureHandler?) { let path = "lists/members.json" var parameters = Dictionary() @@ -1152,7 +1152,7 @@ extension Swifter { }, failure: failure) } - func getListsMembersWithSlug(slug: String, ownerScreenName: String?, cursor: Int?, includeEntities: Bool?, skipStatus: Bool?, success: ((users: [JSONValue]?, previousCursor: Int?, nextCursor: Int?) -> Void)?, failure: FailureHandler?) { + public func getListsMembersWithSlug(slug: String, ownerScreenName: String?, cursor: Int?, includeEntities: Bool?, skipStatus: Bool?, success: ((users: [JSONValue]?, previousCursor: Int?, nextCursor: Int?) -> Void)?, failure: FailureHandler?) { let path = "lists/members.json" var parameters = Dictionary() @@ -1183,7 +1183,7 @@ extension Swifter { }, failure: failure) } - func getListsMembersWithSlug(slug: String, ownerID: Int?, cursor: Int?, includeEntities: Bool?, skipStatus: Bool?, success: ((users: [JSONValue]?, previousCursor: Int?, nextCursor: Int?) -> Void)?, failure: FailureHandler?) { + public func getListsMembersWithSlug(slug: String, ownerID: Int?, cursor: Int?, includeEntities: Bool?, skipStatus: Bool?, success: ((users: [JSONValue]?, previousCursor: Int?, nextCursor: Int?) -> Void)?, failure: FailureHandler?) { let path = "lists/members.json" var parameters = Dictionary() @@ -1220,7 +1220,7 @@ extension Swifter { Creates a new list for the authenticated user. Note that you can't create more than 20 lists per account. */ - func postListsMembersCreateWithListID(listID: Int, ownerScreenName: String, success: ((user: Dictionary?) -> Void)?, failure: FailureHandler?) { + public func postListsMembersCreateWithListID(listID: Int, ownerScreenName: String, success: ((user: Dictionary?) -> Void)?, failure: FailureHandler?) { let path = "lists/subscribers/create.json" var parameters = Dictionary() @@ -1236,7 +1236,7 @@ extension Swifter { }, failure: failure) } - func postListsMembersCreateWithListID(listID: Int, ownerID: Int, success: ((user: Dictionary?) -> Void)?, failure: FailureHandler?) { + public func postListsMembersCreateWithListID(listID: Int, ownerID: Int, success: ((user: Dictionary?) -> Void)?, failure: FailureHandler?) { let path = "lists/subscribers/create.json" var parameters = Dictionary() @@ -1252,7 +1252,7 @@ extension Swifter { }, failure: failure) } - func postListsMembersCreateWithSlug(slug: String, ownerScreenName: String, success: ((user: Dictionary?) -> Void)?, failure: FailureHandler?) { + public func postListsMembersCreateWithSlug(slug: String, ownerScreenName: String, success: ((user: Dictionary?) -> Void)?, failure: FailureHandler?) { let path = "lists/subscribers/create.json" var parameters = Dictionary() @@ -1268,7 +1268,7 @@ extension Swifter { }, failure: failure) } - func postListsMembersCreateWithSlug(slug: String, ownerID: Int, success: ((user: Dictionary?) -> Void)?, failure: FailureHandler?) { + public func postListsMembersCreateWithSlug(slug: String, ownerID: Int, success: ((user: Dictionary?) -> Void)?, failure: FailureHandler?) { let path = "lists/subscribers/create.json" var parameters = Dictionary() @@ -1289,7 +1289,7 @@ extension Swifter { Deletes the specified list. The authenticated user must own the list to be able to destroy it. */ - func postListsDestroyWithListID(listID: Int, success: ((list: Dictionary?) -> Void)?, failure: FailureHandler?) { + public func postListsDestroyWithListID(listID: Int, success: ((list: Dictionary?) -> Void)?, failure: FailureHandler?) { let path = "lists/destroy.json" var parameters = Dictionary() @@ -1304,7 +1304,7 @@ extension Swifter { }, failure: failure) } - func postListsDestroyWithSlug(slug: String, ownerID: Int, success: ((list: Dictionary?) -> Void)?, failure: FailureHandler?) { + public func postListsDestroyWithSlug(slug: String, ownerID: Int, success: ((list: Dictionary?) -> Void)?, failure: FailureHandler?) { let path = "lists/destroy.json" var parameters = Dictionary() @@ -1320,7 +1320,7 @@ extension Swifter { }, failure: failure) } - func postListsDestroyWithSlug(slug: String, ownerScreenName: String, success: ((list: Dictionary?) -> Void)?, failure: FailureHandler?) { + public func postListsDestroyWithSlug(slug: String, ownerScreenName: String, success: ((list: Dictionary?) -> Void)?, failure: FailureHandler?) { let path = "lists/destroy.json" var parameters = Dictionary() @@ -1341,7 +1341,7 @@ extension Swifter { Updates the specified list. The authenticated user must own the list to be able to update it. */ - func postListsUpdateWithListID(listID: Int, name: String?, publicMode: Bool?, description: String?, success: ((list: Dictionary?) -> Void)?, failure: FailureHandler?) { + public func postListsUpdateWithListID(listID: Int, name: String?, publicMode: Bool?, description: String?, success: ((list: Dictionary?) -> Void)?, failure: FailureHandler?) { let path = "lists/update.json" var parameters = Dictionary() @@ -1371,7 +1371,7 @@ extension Swifter { }, failure: failure) } - func postListsUpdateWithSlug(slug: String, ownerID: Int, name: String?, publicMode: Bool?, description: String?, success: ((list: Dictionary?) -> Void)?, failure: FailureHandler?) { + public func postListsUpdateWithSlug(slug: String, ownerID: Int, name: String?, publicMode: Bool?, description: String?, success: ((list: Dictionary?) -> Void)?, failure: FailureHandler?) { let path = "lists/update.json" var parameters = Dictionary() @@ -1402,7 +1402,7 @@ extension Swifter { }, failure: failure) } - func postListsUpdateWithSlug(slug: String, ownerScreenName: String, name: String?, publicMode: Bool?, description: String?, success: ((list: Dictionary?) -> Void)?, failure: FailureHandler?) { + public func postListsUpdateWithSlug(slug: String, ownerScreenName: String, name: String?, publicMode: Bool?, description: String?, success: ((list: Dictionary?) -> Void)?, failure: FailureHandler?) { let path = "lists/update.json" var parameters = Dictionary() @@ -1438,7 +1438,7 @@ extension Swifter { Creates a new list for the authenticated user. Note that you can't create more than 20 lists per account. */ - func postListsCreateWithName(name: String, publicMode: Bool?, description: String?, success: ((list: Dictionary?) -> Void)?, failure: FailureHandler?) { + public func postListsCreateWithName(name: String, publicMode: Bool?, description: String?, success: ((list: Dictionary?) -> Void)?, failure: FailureHandler?) { let path = "lists/create.json" var parameters = Dictionary() @@ -1470,7 +1470,7 @@ extension Swifter { Returns the specified list. Private lists will only be shown if the authenticated user owns the specified list. */ - func getListsShowWithID(listID: Int, success: ((list: Dictionary?) -> Void)?, failure: FailureHandler?) { + public func getListsShowWithID(listID: Int, success: ((list: Dictionary?) -> Void)?, failure: FailureHandler?) { let path = "lists/show.json" var parameters = Dictionary() @@ -1485,7 +1485,7 @@ extension Swifter { }, failure: failure) } - func getListsShowWithSlug(slug: String, ownerID: Int, success: ((list: Dictionary?) -> Void)?, failure: FailureHandler?) { + public func getListsShowWithSlug(slug: String, ownerID: Int, success: ((list: Dictionary?) -> Void)?, failure: FailureHandler?) { let path = "lists/show.json" var parameters = Dictionary() @@ -1501,7 +1501,7 @@ extension Swifter { }, failure: failure) } - func getListsShowWithSlug(slug: String, ownerScreenName: String, success: ((list: Dictionary?) -> Void)?, failure: FailureHandler?) { + public func getListsShowWithSlug(slug: String, ownerScreenName: String, success: ((list: Dictionary?) -> Void)?, failure: FailureHandler?) { let path = "lists/show.json" var parameters = Dictionary() @@ -1522,7 +1522,7 @@ extension Swifter { Obtain a collection of the lists the specified user is subscribed to, 20 lists per page by default. Does not include the user's own lists. */ - func getListsSubscriptionsWithUserID(userID: Int, count: Int?, cursor: Int?, success: ((lists: [JSONValue]?, previousCursor: Int?, nextCursor: Int?) -> Void)?, failure: FailureHandler?) { + public func getListsSubscriptionsWithUserID(userID: Int, count: Int?, cursor: Int?, success: ((lists: [JSONValue]?, previousCursor: Int?, nextCursor: Int?) -> Void)?, failure: FailureHandler?) { let path = "lists/subscriptions.json" var parameters = Dictionary() @@ -1548,7 +1548,7 @@ extension Swifter { }, failure: failure) } - func getListsSubscriptionsWithScreenName(screenName: String, count: Int?, cursor: Int?, success: ((lists: [JSONValue]?, previousCursor: Int?, nextCursor: Int?) -> Void)?, failure: FailureHandler?) { + public func getListsSubscriptionsWithScreenName(screenName: String, count: Int?, cursor: Int?, success: ((lists: [JSONValue]?, previousCursor: Int?, nextCursor: Int?) -> Void)?, failure: FailureHandler?) { let path = "lists/subscriptions.json" var parameters = Dictionary() @@ -1581,7 +1581,7 @@ extension Swifter { Please note that there can be issues with lists that rapidly remove and add memberships. Take care when using these methods such that you are not too rapidly switching between removals and adds on the same list. */ - func postListsMembersDestroyAllWithListID(listID: Int, userIDs: [Int], success: ((response: JSON?) -> Void)?, failure: FailureHandler?) { + public func postListsMembersDestroyAllWithListID(listID: Int, userIDs: [Int], success: ((response: JSON?) -> Void)?, failure: FailureHandler?) { let path = "lists/members/destroy_all.json" var parameters = Dictionary() @@ -1599,7 +1599,7 @@ extension Swifter { }, failure: failure) } - func postListsMembersDestroyAllWithListID(listID: Int, screenNames: [String], success: ((response: JSON?) -> Void)?, failure: FailureHandler?) { + public func postListsMembersDestroyAllWithListID(listID: Int, screenNames: [String], success: ((response: JSON?) -> Void)?, failure: FailureHandler?) { let path = "lists/members/destroy_all.json" var parameters = Dictionary() @@ -1615,7 +1615,7 @@ extension Swifter { }, failure: failure) } - func postListsMembersDestroyAllWithSlug(slug: String, userIDs: [Int], ownerScreenName: String, success: ((response: JSON?) -> Void)?, failure: FailureHandler?) { + public func postListsMembersDestroyAllWithSlug(slug: String, userIDs: [Int], ownerScreenName: String, success: ((response: JSON?) -> Void)?, failure: FailureHandler?) { let path = "lists/members/destroy_all.json" var parameters = Dictionary() @@ -1635,7 +1635,7 @@ extension Swifter { }, failure: failure) } - func postListsMembersDestroyAllWithSlug(slug: String, screenNames: [String], ownerScreenName: String, success: ((response: JSON?) -> Void)?, failure: FailureHandler?) { + public func postListsMembersDestroyAllWithSlug(slug: String, screenNames: [String], ownerScreenName: String, success: ((response: JSON?) -> Void)?, failure: FailureHandler?) { let path = "lists/members/destroy_all.json" var parameters = Dictionary() @@ -1652,7 +1652,7 @@ extension Swifter { }, failure: failure) } - func postListsMembersDestroyAllWithSlug(slug: String, userIDs: [Int], ownerID: Int, success: ((response: JSON?) -> Void)?, failure: FailureHandler?) { + public func postListsMembersDestroyAllWithSlug(slug: String, userIDs: [Int], ownerID: Int, success: ((response: JSON?) -> Void)?, failure: FailureHandler?) { let path = "lists/members/destroy_all.json" var parameters = Dictionary() @@ -1672,7 +1672,7 @@ extension Swifter { }, failure: failure) } - func postListsMembersDestroyAllWithSlug(slug: String, screenNames: [String], ownerID: Int, success: ((response: JSON?) -> Void)?, failure: FailureHandler?) { + public func postListsMembersDestroyAllWithSlug(slug: String, screenNames: [String], ownerID: Int, success: ((response: JSON?) -> Void)?, failure: FailureHandler?) { let path = "lists/members/destroy_all.json" var parameters = Dictionary() @@ -1694,7 +1694,7 @@ extension Swifter { Returns the lists owned by the specified Twitter user. Private lists will only be shown if the authenticated user is also the owner of the lists. */ - func getListsOwnershipsWithUserID(userID: Int, count: Int?, cursor: Int?, success: ((lists: [JSONValue]?, previousCursor: Int?, nextCursor: Int?) -> Void)?, failure: FailureHandler?) { + public func getListsOwnershipsWithUserID(userID: Int, count: Int?, cursor: Int?, success: ((lists: [JSONValue]?, previousCursor: Int?, nextCursor: Int?) -> Void)?, failure: FailureHandler?) { let path = "lists/ownerships.json" var parameters = Dictionary() diff --git a/Swifter/SwifterMessages.swift b/Swifter/SwifterMessages.swift index 4814df06..551d9fae 100644 --- a/Swifter/SwifterMessages.swift +++ b/Swifter/SwifterMessages.swift @@ -25,7 +25,7 @@ import Foundation -extension Swifter { +public extension Swifter { /* GET direct_messages diff --git a/Swifter/SwifterPlaces.swift b/Swifter/SwifterPlaces.swift index e5f9e957..2fd438fc 100644 --- a/Swifter/SwifterPlaces.swift +++ b/Swifter/SwifterPlaces.swift @@ -25,7 +25,7 @@ import Foundation -extension Swifter { +public extension Swifter { /* GET geo/id/:place_id diff --git a/Swifter/SwifterSavedSearches.swift b/Swifter/SwifterSavedSearches.swift index d0d0ee92..9c699762 100644 --- a/Swifter/SwifterSavedSearches.swift +++ b/Swifter/SwifterSavedSearches.swift @@ -25,7 +25,7 @@ import Foundation -extension Swifter { +public extension Swifter { /* GET saved_searches/list diff --git a/Swifter/SwifterSearch.swift b/Swifter/SwifterSearch.swift index 6cab08b5..a5576173 100644 --- a/Swifter/SwifterSearch.swift +++ b/Swifter/SwifterSearch.swift @@ -25,7 +25,7 @@ import Foundation -extension Swifter { +public extension Swifter { // GET search/tweets public func getSearchTweetsWithQuery(q: String, geocode: String?, lang: String?, locale: String?, resultType: String?, count: Int?, until: String?, sinceID: Int?, maxID: Int?, includeEntities: Bool?, callback: String?, success: ((statuses: [JSONValue]?, searchMetadata: Dictionary?) -> Void)?, failure: FailureHandler) { diff --git a/Swifter/SwifterSpam.swift b/Swifter/SwifterSpam.swift index 829624c0..32f27a92 100644 --- a/Swifter/SwifterSpam.swift +++ b/Swifter/SwifterSpam.swift @@ -25,7 +25,7 @@ import Foundation -extension Swifter { +public extension Swifter { /* POST users/report_spam diff --git a/Swifter/SwifterStreaming.swift b/Swifter/SwifterStreaming.swift index f30f98ea..e0e46928 100644 --- a/Swifter/SwifterStreaming.swift +++ b/Swifter/SwifterStreaming.swift @@ -25,7 +25,7 @@ import Foundation -extension Swifter { +public extension Swifter { /* POST statuses/filter diff --git a/Swifter/SwifterSuggested.swift b/Swifter/SwifterSuggested.swift index 4c85baf0..02f3d965 100644 --- a/Swifter/SwifterSuggested.swift +++ b/Swifter/SwifterSuggested.swift @@ -25,7 +25,7 @@ import Foundation -extension Swifter { +public extension Swifter { /* GET users/suggestions/:slug diff --git a/Swifter/SwifterTimelines.swift b/Swifter/SwifterTimelines.swift index 092b32bc..7785237f 100644 --- a/Swifter/SwifterTimelines.swift +++ b/Swifter/SwifterTimelines.swift @@ -25,7 +25,7 @@ import Foundation -extension Swifter { +public extension Swifter { // Convenience method private func getTimelineAtPath(path: String, parameters: Dictionary, count: Int?, sinceID: Int?, maxID: Int?, trimUser: Bool?, contributorDetails: Bool?, includeEntities: Bool?, success: ((statuses: [JSONValue]?) -> Void)?, failure: FailureHandler?) { diff --git a/Swifter/SwifterTrends.swift b/Swifter/SwifterTrends.swift index 5646927f..21fdc330 100644 --- a/Swifter/SwifterTrends.swift +++ b/Swifter/SwifterTrends.swift @@ -8,7 +8,7 @@ import Foundation -extension Swifter { +public extension Swifter { /* GET trends/place diff --git a/Swifter/SwifterTweets.swift b/Swifter/SwifterTweets.swift index 8c02375d..2c0b8d81 100644 --- a/Swifter/SwifterTweets.swift +++ b/Swifter/SwifterTweets.swift @@ -25,7 +25,7 @@ import Foundation -extension Swifter { +public extension Swifter { /* GET statuses/retweets/:id diff --git a/Swifter/SwifterUsers.swift b/Swifter/SwifterUsers.swift index cf0c7b75..a331f2a5 100644 --- a/Swifter/SwifterUsers.swift +++ b/Swifter/SwifterUsers.swift @@ -25,7 +25,7 @@ import Foundation -extension Swifter { +public extension Swifter { /* GET account/settings