ProductionHttpDataBackend class

Inheritance

Constructors

ProductionHttpDataBackend()

Properties

baseEndpoint String
read / write, inherited
creditCardCreationEndpoint String
read / write, inherited
creditCardFetchEndpoint String
read / write, inherited
creditCardRemovalEndpoint String
read / write, inherited
creditCards List<CreditCard>
read / write, inherited
creditCardsDirty bool
read / write, inherited
creditCardTempaltesDirty bool
read / write, inherited
creditCardTemplates List<CreditCard>
read / write, inherited
deleteAccountStatus DeleteAccountStatus
TODO(#453): merge it with status
read / write, inherited
hashCode int
The hash code for this object. [...]
read-only, inherited
hasListeners bool
Whether any listeners are currently registered. [...]
@protected, read-only, inherited
loggingNamspace String
read / write, inherited
promotionAdditionEndpoint String
read / write, inherited
promotionRemovalEndpoint String
read / write, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
status DataBackendStatus
read / write, inherited
token String
Token is use in http requests to perform user authentication and authorization. It is not needed in the in-app API calls since it has been taken care of by the Firebase SDK.
read / write, inherited

Methods

addCreditCard(CreditCardCreationRequest req) Future<void>
inherited
addCreditCardToDatabase(CreditCardCreationRequest req) Future<void>
inherited
addListener(VoidCallback listener) → void
Register a closure to be called when the object changes. [...]
inherited
addPromitionToDatabase(PromotionAdditionRequest req) Future<void>
inherited
addPromotion(PromotionAdditionRequest req, {bool silent: false}) Future<void>
inherited
buildCredential() HttpBasedCredential
inherited
buildHttpBasedRequest() HttpBasedRequest
inherited
buildVersionInfo() HttpBasedVersionInfo
inherited
deleteAccount() Future<void>
inherited
deleteAccountFromDatabase() Future<void>
inherited
dispose() → void
Discards any resources used by the object. After this is called, the object is not in a usable state and should be discarded (calls to addListener and removeListener will throw after the object is disposed). [...]
@mustCallSuper, inherited
fetchCreditCardsFromDatabase() Future<List<CreditCard>>
inherited
forceRefresh() Future<void>
inherited
getBaseEndpoint() String
override
getCreditCardCreationEndpoint() String
inherited
getCreditCardFetchEndpoint() String
inherited
getCreditCardRemovalEndpoint() String
inherited
getCreditCards() List<CreditCard>
inherited
getCreditCardTemplates() List<CreditCard>
inherited
getDeleteAccountStatus() DeleteAccountStatus
inherited
getLoggingNamespace() String
override
getPromotionAdditionEndpoint() String
inherited
getPromotionRemovalEndpoint() String
inherited
getRankedCreditCardsSync(ShoppingCategory category) List<CreditCard>
inherited
getShopCategories() List<ShoppingCategory>
inherited
getStatus() DataBackendStatus
inherited
initCreditCard(CreditCardCreationRequest req, {bool silent: false}) Future<void>
inherited
initCreditCardInDatabase(CreditCardCreationRequest req) Future<void>
inherited
initCreditCardWithTemplate(CreditCardCreationRequest req) Future<void>
inherited
initCreditCardWithTemplateInDatabase(CreditCardCreationRequest req) Future<void>
inherited
initialize() Future<void>
inherited
LocalDevelopmentHttpDataBackend() → dynamic
inherited
logTrace(String info, {Object error, bool exception: false}) → void
inherited
maybePostException(HttpBasedResponse response) → void
inherited
maybeRefresh({bool silent: false}) Future<void>
inherited
maybeRefreshCards({bool silent: false}) Future<void>
inherited
maybeRefreshCreditCardTemplates({bool silent: false}) Future<void>
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
notifyListeners() → void
Call all the registered listeners. [...]
parseHttpBasedResponse(String body) HttpBasedResponse
inherited
populateHttpBasedRequest(HttpBasedRequest req) → void
inherited
queryCreditCard(String id) CreditCard
inherited
recoverFromError() Future<void>
inherited
removeCreditCard(CreditCardRemovalRequest req) Future<void>
inherited
removeCreditCardFromDatabase(CreditCardRemovalRequest req) Future<void>
inherited
removeListener(VoidCallback listener) → void
Remove a previously registered closure from the list of closures that are notified when the object changes. [...]
inherited
removePromotion(PromotionRemovalRequest req) Future<void>
inherited
removePromotionFromDatabase(PromotionRemovalRequest req) Future<void>
inherited
renewCreditCardInfo(CreditCard card) Future<CreditCard>
inherited
sendRequest(HttpBasedRequest req, String endpoint) Future<HttpBasedResponse>
inherited
setToken(String tokenVal) → void
inherited
toString() String
Returns a string representation of this object.
inherited

Operators

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