ArticlesStore class

Inheritance

Constructors

ArticlesStore(ArticlesServiceAbstract _articlesService, QueueServiceAbstract _queueService, ArticleServiceClient _articleStub, SessionContext _gatekeeper)

Properties

articlesRetailList ObservableList<ArticleRetail>
no setterinherited
articlesSelectedForBasketMinQt ObservableList<ArticleWMinQt>
getter/setter pairinherited
articlesUncountableList ObservableList<ArticleUncountable>
no setterinherited
baskets ObservableList<CalibreWeebi<ArticleBasket>>
no setterinherited
calibresFull ObservableList<CalibreWeebi<ArticleRawAbstract>>
getter/setter pairinherited
calibresRetail ObservableList<CalibreWeebi<ArticleRawAbstract>>
no setterinherited
calibresSearchableInSell ObservableList<CalibreWeebi<ArticleRawAbstract>>
no setterinherited
calibresTitles ObservableList<String>
no setterinherited
catalComputed ObservableList<CalibreContainerAbstract>
no setterinherited
categories ObservableList<CategoryWeebi>
not used, will only come handy if categories search is implemented to reuse same buffer logic as with calibresFull
getter/setter pairinherited
categoriesTitles ObservableList<String>
no setterinherited
context ReactiveContext
Override this method to use a custom context.
no setterinherited
countables ObservableList<CalibreWeebi<ArticleRawAbstract>>
no setterinherited
generateNextCalibreId Future<int>
no setterinherited
getArticlesFullNames ObservableList<String>
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
initialLoading bool
getter/setter pairinherited
notDeactivated ObservableList<CalibreWeebi<ArticleRawAbstract>>
no setterinherited
photos ObservableList<ArticlePhoto>
getter/setter pairinherited
queryString String
no setterinherited
retailDesignations ObservableList<String>
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
searchedBy SearchedBy
no setterinherited
sortedBy Observable<SortedBy>
getter/setter pairinherited
uncountableDesignations ObservableList<String>
no setterinherited
uncountables ObservableList<CalibreWeebi<ArticleRawAbstract>>
no setterinherited

Methods

addArticleWInSelected(ArticleWMinQt articleMinQt) → void
BASKETS when making a basket
inherited
clearAllArticleMinQtInSelected() → void
inherited
clearSearch() Future<void>
inherited
createAllCalibre(List<CalibreWeebi<ArticleRawAbstract>> data) Future<int>
inherited
createArticleRetail<A extends ArticleRawAbstract>(A articleData, {bool isTest = false}) Future<A>
in cloud mode, internet must available
inherited
createCalibrateArticle<A extends ArticleRawAbstract>(CalibreWeebi<A> data) Future<CalibreWeebi<ArticleRawAbstract>>
if gatekeeperIsLinked then connectivity was already checked in the view if sending data goes wrong we do not persist in queue but stop the action
inherited
createCategory(CategoryWeebi data) Future<CategoryWeebi>
inherited
deleteAllArticlesAndPhotosAndCalibresAndCategories({required String localPhotoFolderPath}) Future<bool>
name is rather long but at least you have been warned
inherited
deleteArticleForever<A extends ArticleRawAbstract>(A articleData) Future<ObservableList<CalibreWeebi<ArticleRawAbstract>>>
inherited
deleteArticlePhotos({required String localPhotoFolderPath}) Future<bool>
inherited
deleteCalibreForever(CalibreWeebi<ArticleRawAbstract> calibreData) Future<ObservableList<CalibreWeebi<ArticleRawAbstract>>>
inherited
deleteCategory(CategoryWeebi data) Future<bool>
inherited
deletePhoto(ArticlePhoto data, {bool isLocalFileToBeDeleted = false, bool isInternetAvailable = true}) Future<bool>
handles both sides (memory service and mobx obs photos) + server
inherited
findAndAddInSelectedSingleArticleBasedOnFullName(String fullName) bool
when making a basket
inherited
init({List<CalibreWeebi<ArticleRawAbstract>>? data, List<ArticlePhoto>? photosData}) Future<bool>
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
removeArticleMinQtInSelected(ArticleWMinQt article) → void
when making a basket
inherited
searchByTitleOrIdorSku() → void
inherited
setArticleStub(ArticleServiceClient articleServiceClient) → void
inherited
setQueryString(String val) → void
inherited
setSearchedBy(SearchedBy val) → void
inherited
sortBy(SortedBy sortBy) ObservableList<CalibreWeebi<ArticleRawAbstract>>
inherited
toString() String
A string representation of this object.
inherited
updateArticle<A extends ArticleRawAbstract>(A articleData, {bool isInternetAvailable = true}) Future<A>
inherited
updateArticleMinQtInSelected(ArticleWMinQt article, num minQt) → void
inherited
updateCalibre<A extends ArticleRawAbstract>(CalibreWeebi<A> data, {bool isInternetAvailable = true}) Future<CalibreWeebi<A>>
if cloud we will try to send the data but if action fail we do not block and persist it in the queue to synced later
inherited
updateCategory(CategoryWeebi data) Future<CategoryWeebi>
inherited
upsertCalibresBasedOnId(List<CalibreWeebi<ArticleRawAbstract>> articlesInTheBush) Future<int>
during the file import (csv, excel json) ? maybe should be used for downloading data from server
inherited
upsertPhoto(ArticlePhoto data, {bool isInternetAvailable = true}) Future<ArticlePhoto>
when a photo is upsert, automatically the article is updated, this sparks a calibre sync or add the calibreId in offline queue we delete and create photo, bit more costly but much much more simple for calibrePhoto use article.id = 0
inherited

Operators

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