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
e6aa7f16
Commit
e6aa7f16
authored
Apr 28, 2020
by
Vladislav
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
minor fixes
parent
605c9a26
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
2 deletions
+1
-2
SubscriptionRepository.kt
...ual/roompark/data/data_provider/SubscriptionRepository.kt
+0
-1
Subscribtions.kt
.../biganto/visual/roompark/domain/contract/Subscribtions.kt
+1
-1
No files found.
app/src/main/java/com/biganto/visual/roompark/data/data_provider/SubscriptionRepository.kt
View file @
e6aa7f16
...
@@ -155,7 +155,6 @@ class SubscriptionRepository @Inject constructor(
...
@@ -155,7 +155,6 @@ class SubscriptionRepository @Inject constructor(
.
flatMapCompletable
{
.
flatMapCompletable
{
if
(
it
.
status
==
SUBSCRIPTION_RESULT_STATUS
){
if
(
it
.
status
==
SUBSCRIPTION_RESULT_STATUS
){
saveSubscribeState
(
user
,
subInnerId
,
topic
,
topic_id
,
false
)
saveSubscribeState
(
user
,
subInnerId
,
topic
,
topic_id
,
false
)
.
doOnNext
{
Timber
.
d
(
"zz -z $it"
)
}
.
ignoreElements
()
.
ignoreElements
()
}
}
else
error
(
"Error subscription state!"
)
else
error
(
"Error subscription state!"
)
...
...
app/src/main/java/com/biganto/visual/roompark/domain/contract/Subscribtions.kt
View file @
e6aa7f16
...
@@ -33,7 +33,7 @@ interface SubscriptionContract{
...
@@ -33,7 +33,7 @@ interface SubscriptionContract{
subInnerId
:
Int
?,
subInnerId
:
Int
?,
topic
:
String
,
topic
:
String
,
topic_id
:
String
?,
topic_id
:
String
?,
n
u
ewState
:
Boolean
newState
:
Boolean
):
Observable
<
SubscriptionEntity
>
):
Observable
<
SubscriptionEntity
>
fun
saveSubscribeState
(
sub
:
SubscriptionEntity
):
Observable
<
SubscriptionEntity
>
fun
saveSubscribeState
(
sub
:
SubscriptionEntity
):
Observable
<
SubscriptionEntity
>
...
...
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