@@ -18,7 +18,7 @@ import BoltsSwift
1818 */
1919public protocol SubscriptionHandling : AnyObject {
2020 /// The type of the PFObject subclass that this handler uses.
21- associatedtype PFGenericObject : PFObject
21+ associatedtype PFObjectSubclass : PFObject
2222
2323 /**
2424 Tells the handler that an event has been received from the live query server.
@@ -27,7 +27,7 @@ public protocol SubscriptionHandling: AnyObject {
2727 - parameter query: The query that the event occurred on.
2828 - parameter client: The live query client which received this event.
2929 */
30- func didReceive( _ event: Event < PFGenericObject > , forQuery query: PFQuery < PFGenericObject > , inClient client: Client )
30+ func didReceive( _ event: Event < PFObjectSubclass > , forQuery query: PFQuery < PFObjectSubclass > , inClient client: Client )
3131
3232 /**
3333 Tells the handler that an error has been received from the live query server.
@@ -36,7 +36,7 @@ public protocol SubscriptionHandling: AnyObject {
3636 - parameter query: The query that the error occurred on.
3737 - parameter client: The live query client which received this error.
3838 */
39- func didEncounter( _ error: Error , forQuery query: PFQuery < PFGenericObject > , inClient client: Client )
39+ func didEncounter( _ error: Error , forQuery query: PFQuery < PFObjectSubclass > , inClient client: Client )
4040
4141 /**
4242 Tells the handler that a query has been successfully registered with the server.
@@ -46,7 +46,7 @@ public protocol SubscriptionHandling: AnyObject {
4646 - parameter query: The query that has been subscribed.
4747 - parameter client: The live query client which subscribed this query.
4848 */
49- func didSubscribe( toQuery query: PFQuery < PFGenericObject > , inClient client: Client )
49+ func didSubscribe( toQuery query: PFQuery < PFObjectSubclass > , inClient client: Client )
5050
5151 /**
5252 Tells the handler that a query has been successfully deregistered from the server.
@@ -56,7 +56,7 @@ public protocol SubscriptionHandling: AnyObject {
5656 - parameter query: The query that has been unsubscribed.
5757 - parameter client: The live query client which unsubscribed this query.
5858 */
59- func didUnsubscribe( fromQuery query: PFQuery < PFGenericObject > , inClient client: Client )
59+ func didUnsubscribe( fromQuery query: PFQuery < PFObjectSubclass > , inClient client: Client )
6060}
6161
6262/**
0 commit comments