Skip to content

Commit a7df5ee

Browse files
Добавление отображения подкатегорий в текстовом виде
1 parent 4e5eb51 commit a7df5ee

File tree

4 files changed

+391
-22
lines changed

4 files changed

+391
-22
lines changed

README.md

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -105,18 +105,19 @@
105105
<b>language</b> - язык. <sup>(Опционально)</sup><br>
106106
<b>limit</b> - ограничение на количество получаемых объявлений за один запрос. <sup>(Опционально)</sup><br>
107107
<b>currency</b> - валюта <sup>(Опционально)</sup><br>
108-
<b>condition</b> - <a href="https://github.com/TechUnRestricted/Kufar-Telegram-Notifier/blob/b28c0cb73b8ff958d957fe98d7018fa475d196d0/Kufar%20Telegram%20Notifier/kufar.hpp#L210">состояние</a> (новое / б/y). <sup>(Опционально)</sup><br>
109-
<b>seller-type</b> - <a href="https://github.com/TechUnRestricted/Kufar-Telegram-Notifier/blob/b28c0cb73b8ff958d957fe98d7018fa475d196d0/Kufar%20Telegram%20Notifier/kufar.hpp#L215">тип продавца</a> (частное лицо / компания). <sup>(Опционально)</sup><br>
108+
<b>condition</b> - <a href="https://github.com/TechUnRestricted/Kufar-Telegram-Notifier/blob/4e5eb51e3664c5e4e96812a5e146e41087787484/include/kufar.hpp#L515">состояние</a> (новое / б/y). <sup>(Опционально)</sup><br>
109+
<b>seller-type</b> - <a href="https://github.com/TechUnRestricted/Kufar-Telegram-Notifier/blob/4e5eb51e3664c5e4e96812a5e146e41087787484/include/kufar.hpp#L520">тип продавца</a> (частное лицо / компания). <sup>(Опционально)</sup><br>
110110
<b>kufar-delivery-required</b> - только с Kufar Доставкой. <sup>(Опционально)</sup><br>
111111
<b>kufar-payment-required</b> - только с Kufar Оплатой. <sup>(Опционально)</sup><br>
112112
<b>kufar-halva-required</b> - только с Kufar Рассрочкой (Халва). <sup>(Опционально)</sup><br>
113113
<b>only-with-photos</b> - только с фото. <sup>(Опционально)</sup><br>
114114
<b>only-with-videos</b> - только с видео. <sup>(Опционально)</sup><br>
115115
<b>only-with-exchange-available</b> - только с возможностью обмена. <sup>(Опционально)</sup><br>
116-
<b>sort-type</b> - <a href="https://github.com/TechUnRestricted/Kufar-Telegram-Notifier/blob/ee12da091884fa7ae62bac4688ae8e5784af4182/Kufar%20Telegram%20Notifier/kufar.hpp#L501">тип сортировки</a>. <sup>(Опционально)</sup><br>
117-
<b>category</b> - <a href="https://github.com/TechUnRestricted/Kufar-Telegram-Notifier/blob/ee12da091884fa7ae62bac4688ae8e5784af4182/Kufar%20Telegram%20Notifier/kufar.hpp#L193">категория</a>. <sup>(Опционально)</sup><br>
118-
<b>region</b> - <a href="https://github.com/TechUnRestricted/Kufar-Telegram-Notifier/blob/af75848093db0d21959128c56176e3ad2ae9bc29/Kufar%20Telegram%20Notifier/kufar.hpp#L15">номер региона</a> для поиска объявлений. <sup>(Опционально)</sup><br>
119-
<b>areas</b> - <a href="https://github.com/TechUnRestricted/Kufar-Telegram-Notifier/blob/af75848093db0d21959128c56176e3ad2ae9bc29/Kufar%20Telegram%20Notifier/kufar.hpp#L25">номера областей</a> для поиска объявлений. <sup>(Опционально)</sup>
116+
<b>sort-type</b> - <a href="https://github.com/TechUnRestricted/Kufar-Telegram-Notifier/blob/4e5eb51e3664c5e4e96812a5e146e41087787484/include/kufar.hpp#L525">тип сортировки</a>. <sup>(Опционально)</sup><br>
117+
<b>category</b> - <a href="https://github.com/TechUnRestricted/Kufar-Telegram-Notifier/blob/4e5eb51e3664c5e4e96812a5e146e41087787484/include/kufar.hpp#L193">категория</a>. <sup>(Опционально)</sup><br>
118+
<b>sub-category</b> - <a href="https://github.com/TechUnRestricted/Kufar-Telegram-Notifier/blob/4e5eb51e3664c5e4e96812a5e146e41087787484/include/kufar.hpp#L217">подкатегория</a>. <sup>(Опционально)</sup><br>
119+
<b>region</b> - <a href="https://github.com/TechUnRestricted/Kufar-Telegram-Notifier/blob/4e5eb51e3664c5e4e96812a5e146e41087787484/include/kufar.hpp#L17">номер региона</a> для поиска объявлений. <sup>(Опционально)</sup><br>
120+
<b>areas</b> - <a href="https://github.com/TechUnRestricted/Kufar-Telegram-Notifier/blob/4e5eb51e3664c5e4e96812a5e146e41087787484/include/kufar.hpp#L27">номера областей</a> для поиска объявлений. <sup>(Опционально)</sup>
120121
</details>
121122
<details>
122123
<summary>

include/kufar.hpp

Lines changed: 16 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -375,22 +375,22 @@ namespace Kufar {
375375
};
376376

377377
// Ремонт и стройка
378-
enum class RepairAndBuilding { // Строительный инструмент
379-
constructionTools = 14010, // Строительное оборудование
380-
constructionEquipment = 14180, // Сантехника и отопление
381-
plumbingAndHeating = 14020, // Стройматериалы
382-
buildingMaterials = 14030, // Отделочные материалы
383-
finishingMaterials = 14040, // Окна и двери
384-
windowsAndDoors = 14050, // Дома, срубы и сооружения
385-
housesLogCabinsAndStructures = 14080, // Ворота, заборы
386-
gatesFences = 14090, // Электроснабжение
387-
powerSupply = 14100, // Средства индивидуальной защиты
388-
personalProtectiveEquipment = 14190, // Прочее для ремонта и стройки
389-
otherForRepairAndConstruction = 14060 // Строительный инструмент
378+
enum class RepairAndBuilding {
379+
constructionTools = 14010, // Строительный инструмент
380+
constructionEquipment = 14180, // Строительное оборудование
381+
plumbingAndHeating = 14020, // Сантехника и отопление
382+
buildingMaterials = 14030, // Стройматериалы
383+
finishingMaterials = 14040, // Отделочные материалы
384+
windowsAndDoors = 14050, // Окна и двери
385+
housesLogCabinsAndStructures = 14080, // Дома, срубы и сооружения
386+
gatesFences = 14090, // Ворота, заборы
387+
powerSupply = 14100, // Электроснабжение
388+
personalProtectiveEquipment = 14190, // Средства индивидуальной защит
389+
otherForRepairAndConstruction = 14060 // Прочее для ремонта и стройки
390390
};
391391

392392
// Сад и огород
393-
enum Garden {
393+
enum class Garden {
394394
gardenFurnitureAndSwimmingPools = 10010, // Садовая мебель и бассейны
395395
barbecuesAccessoriesFuel = 10100, // Мангалы, аксессуары, топливо
396396
tillersAndCultivators = 10110, // Мотоблоки и культиваторы
@@ -405,7 +405,7 @@ namespace Kufar {
405405
};
406406

407407
// Хобби, спорт и туризм
408-
enum HobbiesSportsAndTourism {
408+
enum class HobbiesSportsAndTourism {
409409
CDDVDRecords = 4010, // CD, DVD, пластинки
410410
antiquesAndCollections = 4030, // Антиквариат и коллекции
411411
tickets = 4120, // Билеты
@@ -425,7 +425,7 @@ namespace Kufar {
425425
};
426426

427427
// Свадьба и праздники
428-
enum WeddingAndHolidays {
428+
enum class WeddingAndHolidays {
429429
weddingDresses = 9020, // Свадебные платья
430430
weddingCostumes = 9030, // Свадебные костюмы
431431
weddingShoes = 9040, // Свадебная обувь
@@ -558,6 +558,7 @@ namespace Kufar {
558558
std::string sellerType(SellerType);
559559
std::string region(Region);
560560
std::string area(int);
561+
std::string subCategory(int);
561562
}
562563
};
563564

0 commit comments

Comments
 (0)