@@ -21,6 +21,7 @@ private func parseObject<T: PFObject>(objectDictionary: [String:AnyObject]) thro
2121 }
2222
2323 let parseObject = T ( withoutDataWithClassName: parseClassName, objectId: objectId)
24+
2425 objectDictionary. filter { key, _ in
2526 key != " parseClassName " && key != " objectId "
2627 } . forEach { key, value in
@@ -33,8 +34,8 @@ private func parseObject<T: PFObject>(objectDictionary: [String:AnyObject]) thro
3334// MARK: Subscriptions
3435// ---------------
3536
36- internal extension Client {
37- internal class SubscriptionRecord {
37+ extension Client {
38+ class SubscriptionRecord {
3839 weak var subscriptionHandler : AnyObject ?
3940
4041 // HandlerClosure captures the generic type info passed into the constructor of SubscriptionRecord,
@@ -99,10 +100,10 @@ internal extension Client {
99100
100101 // An opaque placeholder structed used to ensure that we type-safely create request IDs and don't shoot ourself in
101102 // the foot with array indexes.
102- internal struct RequestId : Equatable {
103- internal let value : Int
103+ struct RequestId : Equatable {
104+ let value : Int
104105
105- internal init ( value: Int ) {
106+ init ( value: Int ) {
106107 self . value = value
107108 }
108109 }
@@ -155,7 +156,7 @@ extension Client: SRWebSocketDelegate {
155156// MARK: Operations
156157// -------------------
157158
158- internal extension Event {
159+ extension Event {
159160 init ( serverResponse: ServerResponse , inout requestId: Client . RequestId ) throws {
160161 switch serverResponse {
161162 case . Enter( let reqId, let object) :
@@ -183,7 +184,7 @@ internal extension Event {
183184 }
184185}
185186
186- internal extension Client {
187+ extension Client {
187188 private func subscriptionRecord( requestId: RequestId ) -> SubscriptionRecord ? {
188189 guard
189190 let recordIndex = self . subscriptions. indexOf ( { $0. requestId == requestId } ) ,
@@ -195,7 +196,7 @@ internal extension Client {
195196 return record
196197 }
197198
198- internal func sendOperationAsync( operation: ClientOperation ) -> Task < Void > {
199+ func sendOperationAsync( operation: ClientOperation ) -> Task < Void > {
199200 return Task ( . Queue( queue) ) {
200201 let jsonEncoded = operation. JSONObjectRepresentation
201202 let jsonData = try NSJSONSerialization . dataWithJSONObject ( jsonEncoded, options: NSJSONWritingOptions ( rawValue: 0 ) )
@@ -205,7 +206,7 @@ internal extension Client {
205206 }
206207 }
207208
208- internal func handleOperationAsync( string: String ) -> Task < Void > {
209+ func handleOperationAsync( string: String ) -> Task < Void > {
209210 return Task ( . Queue( queue) ) {
210211 guard
211212 let jsonData = string. dataUsingEncoding ( NSUTF8StringEncoding) ,
0 commit comments