LinkFiveClient class

HTTP client to LinkFive

Inheritance

Constructors

LinkFiveClient()

Properties

environment LinkFiveEnvironment
current Environment of LinkFiveEnvironment
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
hostUrl String
current Host. this will set in init
getter/setter pair
prodUrl String
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
stagingUrl String
final

Methods

changeUserId(String? userId) Future<List<LinkFivePlan>>
Should change the USER ID.
override
fetchLinkFiveResponse() Future<LinkFiveResponseData>
Call to LinkFive to get the subscriptions to show
override
fetchUserPlanListFromLinkFive() Future<List<LinkFivePlan>>
Fetches the receipts for a user
override
init(LinkFiveEnvironment env, LinkFiveAppDataStore appDataStore) → dynamic
Mandatory init with LinkFiveEnvironment and LinkFiveAppDataStore
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
purchaseGooglePlay(GooglePlayPurchaseDetails purchaseDetails, GooglePlayProductDetails productDetails) Future<List<LinkFivePlan>>
after a purchase on Google we call the purchases/google We don't need to do this on Android
override
purchaseIos(AppStoreProductDetails productDetails, AppStorePurchaseDetails purchaseDetails) Future<List<LinkFivePlan>>
after a purchase on ios we call the purchases/apple We don't need to do this on Android
override
restoreGoogle(List<LinkFiveRestoreGoogleItem> restoreList) Future<List<LinkFivePlan>>
RESTORE GOOGLE PLAY STORE
override
restoreIos(List<LinkFiveRestoreAppleItem> restoreList) Future<List<LinkFivePlan>>
RESTORE APPLE APP STORE
override
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited