Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Room Park Android
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Vladislav Bogdashkin
Room Park Android
Commits
4638bb65
Commit
4638bb65
authored
Oct 18, 2019
by
Vladislav Bogdashkin
🎣
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added status list hardcoded
parent
44a19565
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
190 additions
and
0 deletions
+190
-0
deals.kt
...va/com/biganto/visual/roompark/domain/interactor/deals.kt
+182
-0
favorites.kt
...om/biganto/visual/roompark/domain/interactor/favorites.kt
+1
-0
deals.kt
...in/java/com/biganto/visual/roompark/domain/model/deals.kt
+7
-0
No files found.
app/src/main/java/com/biganto/visual/roompark/domain/interactor/deals.kt
View file @
4638bb65
package
com.biganto.visual.roompark.domain.interactor
import
com.biganto.visual.roompark.domain.model.*
import
io.reactivex.Single
import
javax.inject.Inject
/**
...
...
@@ -10,9 +11,190 @@ import javax.inject.Inject
class
DealsInteractor
@Inject
constructor
(
){
fun
fetchDeals
()
=
Single
.
just
(
arrayListOf
(
dealFlat
,
dealParkign
))
fun
getStatusList
()
=
Single
.
just
(
statusList
.
sortBy
{
it
.
orderId
})
companion
object
{
val
statusList
=
arrayListOf
<
StatusModel
>(
StatusModel
(
1
,
"Квартира забронирована за Вами. Скоро начнется подготовка договора"
,
"Бронь"
),
StatusModel
(
2
,
"Договор находится в процессе подготовки"
,
"Подготовка договора"
),
StatusModel
(
3
,
"Договор подготовлен и отправлен в офис продаж"
,
"Договор подготовлен"
),
StatusModel
(
4
,
"Договор находится в офисе продаж. Просим Вас приехать на подписание в назначенное время"
,
"Договор готов к подписанию"
),
StatusModel
(
5
,
"Договор передан на подписание Застройщику"
,
"ДДУ подписан с покупателем"
),
StatusModel
(
6
,
"Договор подписан Застройщиком"
,
"Договор подписан"
),
StatusModel
(
7
,
"Договор скоро будет отправлен в Росреестр"
,
"Договор готовится для подачи на гос. регистрацию"
),
StatusModel
(
8
,
"Договор передан в Росреестр для гос. регистрации"
,
"Договор на регистрации"
),
StatusModel
(
9
,
"Ваш договор успешно зарегистрирован в Росреестре"
,
"Зарегистрирован"
),
StatusModel
(
10
,
"Договор находится в офисе продаж. Вы можете забрать его в любое время"
,
"Договор готов к выдаче"
)
)
val
dealParkign
=
DealModel
(
amount_pay_sum
=
4535860
,
estate
=
EstateModel
(
albumId
=
10
,
commonInfo
=
CommonInfoModel
(
area
=
55.4f
,
area_living
=
31.5f
,
building
=
1
,
ceiling
=
2.95f
,
decoration
=
"\u0411\u0435\u0437 \u043e\u0442\u0434\u0435\u043b\u043a\u0438, \u0441\u0432\u043e\u0431\u043e\u0434\u043d\u0430\u044f \u043f\u043b\u0430\u043d\u0438\u0440\u043e\u0432\u043a\u0430"
,
dependent
=
null
,
direction
=
"\u0441\u0435\u0432\u0435\u0440\u043e-\u0437\u0430\u043f\u0430\u0434,\u044e\u0433\u043e-\u0432\u043e\u0441\u0442\u043e\u043a"
,
discount
=
5.0f
,
discount_amount
=
6925215
,
floor
=
10
,
floor_max
=
22
,
kind
=
"2\u043a-2\u0440"
,
price
=
7289700
,
price_meter
=
131583
,
rooms
=
2
,
section_begin
=
14
,
windows_face
=
"\u0414\u0432\u043e\u0440 \u0438 \u0423\u043b\u0438\u0446\u0430"
),
explications
=
arrayListOf
(
ExplicationListModel
(
items
=
arrayListOf
(
ExplicationModel
(
area
=
16.9f
,
living
=
true
,
title
=
"\u0413\u043e\u0441\u0442\u0438\u043d\u0430\u044f"
),
ExplicationModel
(
area
=
14.6f
,
living
=
true
,
title
=
"\u0421\u043f\u0430\u043b\u044c\u043d\u044f"
),
ExplicationModel
(
area
=
10.8f
,
living
=
false
,
title
=
"\u041a\u0443\u0445\u043d\u044f"
),
ExplicationModel
(
area
=
3.6f
,
living
=
false
,
title
=
"\u041a\u043e\u0440\u0438\u0434\u043e\u0440"
),
ExplicationModel
(
area
=
3.4f
,
living
=
false
,
title
=
"\u0421\u0430\u043d\u0443\u0437\u0435\u043b"
),
ExplicationModel
(
area
=
2.8f
,
living
=
false
,
title
=
"\u041f\u0440\u0438\u0445\u043e\u0436\u0430\u044f"
),
ExplicationModel
(
area
=
1.9f
,
living
=
false
,
title
=
"\u0421\u0430\u043d\u0443\u0437\u0435\u043b"
),
ExplicationModel
(
area
=
1.4f
,
living
=
false
,
title
=
"\u041b\u043e\u0434\u0436\u0438\u044f"
)
),
planId
=
0
),
ExplicationListModel
(
items
=
arrayListOf
(
ExplicationModel
(
area
=
16.2f
,
living
=
true
,
title
=
"\u0413\u043e\u0441\u0442\u0438\u043d\u0430\u044f"
),
ExplicationModel
(
area
=
13.7f
,
living
=
true
,
title
=
"\u0421\u043f\u0430\u043b\u044c\u043d\u044f"
),
ExplicationModel
(
area
=
10.2f
,
living
=
false
,
title
=
"\u041a\u0443\u0445\u043d\u044f"
),
ExplicationModel
(
area
=
4.3f
,
living
=
false
,
title
=
"\u041a\u043e\u0440\u0438\u0434\u043e\u0440"
),
ExplicationModel
(
area
=
4.2f
,
living
=
false
,
title
=
"\u041f\u0440\u0438\u0445\u043e\u0436\u0430\u044f"
),
ExplicationModel
(
area
=
4.1f
,
living
=
false
,
title
=
"\u0421\u0430\u043d\u0443\u0437\u0435\u043b"
),
ExplicationModel
(
area
=
1.4f
,
living
=
false
,
title
=
"\u041b\u043e\u0434\u0436\u0438\u044f"
),
ExplicationModel
(
area
=
1.3f
,
living
=
false
,
title
=
"\u0421\u0430\u043d\u0443\u0437\u0435\u043b"
)
),
planId
=
1
)
),
id
=
75
,
multitourId
=
4911
,
number
=
"1086"
,
planJPG
=
PlanModel
(
height
=
549
,
url
=
"/assets/estates/plan_jpg/00/00/00/75-9027cf.jpeg"
,
width
=
1280
),
planPNG
=
PlanModel
(
height
=
180
,
url
=
"/assets/estates/plan_png/00/00/00/75-92ed97.png"
,
width
=
420
),
type
=
"flat"
,
url
=
"https://stage.room-park.ru:38386/choose/flat/1/14/1086/"
),
estate_id
=
"20dfe300-b85c-e711-80d7-00155d0a0a0e"
,
id
=
"9abdcb37-306a-e811-80e6-00155d0a0a0e"
,
managerName
=
"\u0411\u043e\u0441\u043e\u0432\u0430, \u0418\u0440\u0438\u043d\u0430"
,
opportunitySum
=
5035860
,
paymentSum
=
500000
,
statusId
=
10
)
val
dealFlat
=
DealModel
(
amount_pay_sum
=
5118160
,
estate
=
EstateModel
(
...
...
app/src/main/java/com/biganto/visual/roompark/domain/interactor/favorites.kt
View file @
4638bb65
...
...
@@ -216,6 +216,7 @@ class FavoritesInteractor @Inject constructor(
)
)
)
}
}
...
...
app/src/main/java/com/biganto/visual/roompark/domain/model/deals.kt
View file @
4638bb65
...
...
@@ -6,6 +6,13 @@ package com.biganto.visual.roompark.domain.model
data class
DealListModel
(
val
deals
:
List
<
DealListModel
>)
data class
StatusModel
(
val
orderId
:
Int
,
val
title
:
String
,
val
shortTitle
:
String
)
data class
DealModel
(
val
id
:
String
,
val
estate_id
:
String
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment