Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
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
aa857e0f
Commit
aa857e0f
authored
Apr 10, 2020
by
Vladislav Bogdashkin
🎣
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
change dealId to estate_id
parent
d4a2cfcb
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
12 additions
and
9 deletions
+12
-9
subscriptionUseCase.kt
...to/visual/roompark/domain/use_case/subscriptionUseCase.kt
+1
-1
ScreenController.kt
...l/roompark/presentation/screen/albums/ScreenController.kt
+0
-1
ScreenController.kt
...ual/roompark/presentation/screen/deal/ScreenController.kt
+1
-2
ScreenPresenter.kt
...sual/roompark/presentation/screen/deal/ScreenPresenter.kt
+10
-5
No files found.
app/src/main/java/com/biganto/visual/roompark/domain/use_case/subscriptionUseCase.kt
View file @
aa857e0f
...
...
@@ -69,7 +69,7 @@ class SubscriptionUseCase @Inject constructor(
var
title
=
SubscriptionTopic
.
titleByTopic
(
sub
.
topic
)
if
(
sub
.
topic
is
SubscriptionTopic
.
Deals
){
val
deal
=
user
.
deals
?.
firstOrNull
{
d
->
d
.
i
d
==
sub
.
topic
.
topicId
}
as
DealEntity
user
.
deals
?.
firstOrNull
{
d
->
d
.
estateCrmI
d
==
sub
.
topic
.
topicId
}
as
DealEntity
title
=
"$title № ${deal.estate.number}"
}
TitledSubscriptionModel
(
title
,
sub
)
...
...
app/src/main/java/com/biganto/visual/roompark/presentation/screen/albums/ScreenController.kt
View file @
aa857e0f
...
...
@@ -147,7 +147,6 @@ class AlbumsScreenController :
else
silentCheck
=
false
silentCheck
}
.
doOnNext
{
}
.
debounce
(
600L
,
TimeUnit
.
MILLISECONDS
)
.
observeOn
(
AndroidSchedulers
.
mainThread
())
.
share
()
...
...
app/src/main/java/com/biganto/visual/roompark/presentation/screen/deal/ScreenController.kt
View file @
aa857e0f
...
...
@@ -165,8 +165,7 @@ class DealScreenController :
else
silentCheck
=
false
silentCheck
}
.
doOnNext
{
}
.
debounce
(
600L
,
TimeUnit
.
MILLISECONDS
)
.
debounce
(
400L
,
TimeUnit
.
MILLISECONDS
)
.
observeOn
(
AndroidSchedulers
.
mainThread
())
...
...
app/src/main/java/com/biganto/visual/roompark/presentation/screen/deal/ScreenPresenter.kt
View file @
aa857e0f
...
...
@@ -44,7 +44,7 @@ class DealScreenPresenter @Inject constructor(
.
doOnNext
{
restoreModel
.
deal
=
it
}
.
map
<
DealScreenViewState
>{
deal
->
DealScreenViewState
.
LoadDeal
(
deal
,
interactor
.
getStatusListSync
())
}
}
.
share
()
val
setRead
=
interactor
.
setDealRead
(
dealId
)
...
...
@@ -63,10 +63,15 @@ class DealScreenPresenter @Inject constructor(
.
onErrorReturn
{
DealScreenViewState
.
SubscriptionError
(!
newState
)
}
}
val
fetchSubscription
=
interactor
.
getSubscriptions
(
dealId
)
val
fetchSubscription
=
fetchDeal
.
flatMap
{
fetchedDealViewState
->
interactor
.
getSubscriptions
(
(
fetchedDealViewState
as
DealScreenViewState
.
LoadDeal
).
estate
.
estate_id
)
.
doAfterNext
{
restoreModel
.
sub
=
it
}
.
map
<
DealScreenViewState
>
{
DealScreenViewState
.
SubscriptionStatus
(
it
.
state
)
}
.
startWith
(
Observable
.
just
<
DealScreenViewState
>(
DealScreenViewState
.
Idle
()))
}
val
onStartTours
=
intent
(
DealScreen
::
tourCardClicked
)
...
...
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