getParametersKey method

String getParametersKey()

Implementation

String getParametersKey() {
  switch (listType) {
    case ProductListType.SCAN_SESSION:
    case ProductListType.SCAN_HISTORY:
    case ProductListType.HISTORY:
    case ProductListType.USER:
      return parameters;
    case ProductListType.HTTP_SEARCH_KEYWORDS:
    case ProductListType.HTTP_SEARCH_CATEGORY:
    case ProductListType.HTTP_USER_CONTRIBUTOR:
    case ProductListType.HTTP_USER_INFORMER:
    case ProductListType.HTTP_USER_PHOTOGRAPHER:
    case ProductListType.HTTP_USER_TO_BE_COMPLETED:
    case ProductListType.HTTP_ALL_TO_BE_COMPLETED:
      return '$parameters'
          ',$pageSize'
          ',$pageNumber'
          ',${language?.code ?? ''}'
          ',${country?.offTag ?? ''}'
          '${productType == null || productType == ProductType.food ? '' : ',${productType!.offTag}'}';
  }
}