Skip to content

Commit 10304a7

Browse files
Subscription - default first page of pagination updated
1 parent 1b6a624 commit 10304a7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Source/Core/Subscription.swift

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,14 @@ public extension InPlayer {
1212
/**
1313
Gets all subscriptions for a given user
1414
- Parameters:
15-
- page: Number of page. Defauls to 1.
15+
- page: Number of page. Defauls to 0.
1616
- limit: Number of items per page. Defaults to 10.
1717
- success: A closure to be executed once the request has finished successfully.
1818
- subscriptionList: Model containing pagination info and a list of subscriptions.
1919
- failure: A closure to be executed once the request has finished with error.
2020
- error: Containing information about the error that occurred.
2121
*/
22-
public static func getSubscriptions(page: Int = 1,
22+
public static func getSubscriptions(page: Int = 0,
2323
limit: Int = 10,
2424
success: @escaping (_ subscriptionList: InPlayerSubscriptionList) -> Void,
2525
failure: @escaping (_ error: InPlayerError) -> Void) {

0 commit comments

Comments
 (0)