From 4e6e476bcc10cce47a09cae9cde821aa4052ef40 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?mustafa=20ic=CC=A7men?= Date: Wed, 4 Dec 2019 22:26:51 +0300 Subject: [PATCH] - default category index changed - special category fix --- .idea/caches/build_file_checksums.ser | Bin 542 -> 542 bytes .idea/caches/gradle_models.ser | Bin 314763 -> 314760 bytes .../android/activity/MainActivity.java | 2 +- .../ch/pizzaleu/android/api/ApiConstants.java | 5 +-- .../android/fragment/ProductFragment.java | 15 ++++++--- .../pizzaleu/android/model/CategoryModel.java | 30 +++++++++++++++--- 6 files changed, 39 insertions(+), 13 deletions(-) diff --git a/.idea/caches/build_file_checksums.ser b/.idea/caches/build_file_checksums.ser index f75717205b424f8f6ae6daa68e82f372d3cb78ae..7e4cd9fb763979c564b0846c9bd129e5412ab76b 100644 GIT binary patch delta 37 tcmbQoGLL1#43dftYD~aSHRJt87maqskczrWbBx65gI?#j=TwCF1ZlkL@asETZkKK)p;Kw>zF- a`OL`pZ@cL!mQp50mg%d{u-s$%T>$_c2rKab delta 141 zcmeB}E!;g@c*A~mF0;PIA_fp(oSx^vqP_WxdW;R9PuEm&hC+rqMxzo2)|AQi#-h!| zDec86j6lq^y*P#W(N(s#EsMk$3#J!tWD?$ subCategoryList; @@ -52,10 +60,6 @@ public class CategoryModel implements Serializable{ return String.valueOf(id); } - public boolean isProduct(){ - return id == ApiConstants.CATEGORY_ID_WUNSCHPIZZA || id == ApiConstants.CATEGORY_ID_EKSTRA_KEBAP; - } - public int getId() { return id; } @@ -80,4 +84,22 @@ public class CategoryModel implements Serializable{ this.subCategoryList = subCategoryList; } + public boolean isSpecialCategory() { + return specialCategory; + } + + public void setSpecialCategory(boolean specialCategory) { + this.specialCategory = specialCategory; + } + + public String getSpecialProductId() { + if(specialProductId == null){ + specialProductId = ""; + } + return specialProductId; + } + + public void setSpecialProductId(String specialProductId) { + this.specialProductId = specialProductId; + } }