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
6ceae663
Commit
6ceae663
authored
Dec 26, 2019
by
Vladislav Bogdashkin
🎣
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
refactor db model
parent
7d76b6be
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
17 additions
and
5 deletions
+17
-5
Estate.kt
...isual/roompark/data/repository/db/requrey/model/Estate.kt
+3
-2
Explication.kt
.../roompark/data/repository/db/requrey/model/Explication.kt
+4
-3
PlanPreset.kt
...l/roompark/data/repository/db/requrey/model/PlanPreset.kt
+2
-0
AppComponent.kt
...ava/com/biganto/visual/roompark/di/dagger/AppComponent.kt
+3
-0
DataModule.kt
.../java/com/biganto/visual/roompark/di/dagger/DataModule.kt
+5
-0
No files found.
app/src/main/java/com/biganto/visual/roompark/data/repository/db/requrey/model/Estate.kt
View file @
6ceae663
...
@@ -41,8 +41,6 @@ interface Estate : Persistable {
...
@@ -41,8 +41,6 @@ interface Estate : Persistable {
val
info_building
:
Int
val
info_building
:
Int
val
info_section_begin
:
Int
val
info_section_begin
:
Int
val
info_floor
:
Int
val
info_floor
:
Int
@get
:
OneToMany
(
mappedBy
=
"id"
)
val
explications
:
Set
<
Explication
>?
val
info_floor_max
:
Int
val
info_floor_max
:
Int
@get
:
Nullable
@get
:
Nullable
val
url
:
String
?
val
url
:
String
?
...
@@ -66,4 +64,7 @@ interface Estate : Persistable {
...
@@ -66,4 +64,7 @@ interface Estate : Persistable {
val
info_ceiling
:
Float
?
val
info_ceiling
:
Float
?
@get
:
Nullable
@get
:
Nullable
val
info_direction
:
String
?
val
info_direction
:
String
?
@get
:
OneToMany
(
mappedBy
=
"id"
,
cascade
=
[
CascadeAction
.
SAVE
,
CascadeAction
.
DELETE
])
val
planPreset
:
Set
<
PlanPreset
>
}
}
\ No newline at end of file
app/src/main/java/com/biganto/visual/roompark/data/repository/db/requrey/model/Explication.kt
View file @
6ceae663
package
com.biganto.visual.roompark.data.repository.db.requrey.model
package
com.biganto.visual.roompark.data.repository.db.requrey.model
import
io.requery.*
import
io.requery.Entity
import
io.requery.Generated
import
io.requery.Key
import
io.requery.Persistable
/**
/**
* Created by Vladislav Bogdashkin on 24.09.2019.
* Created by Vladislav Bogdashkin on 24.09.2019.
...
@@ -11,8 +14,6 @@ interface Explication : Persistable {
...
@@ -11,8 +14,6 @@ interface Explication : Persistable {
@get
:
Key
@get
:
Key
@get
:
Generated
@get
:
Generated
val
id
:
Int
val
id
:
Int
@get
:
ForeignKey
(
references
=
PlanPreset
::
class
)
val
planId
:
Int
val
living
:
Boolean
val
living
:
Boolean
val
area
:
Float
val
area
:
Float
val
title
:
String
val
title
:
String
...
...
app/src/main/java/com/biganto/visual/roompark/data/repository/db/requrey/model/PlanPreset.kt
View file @
6ceae663
...
@@ -20,4 +20,6 @@ interface PlanPreset : Persistable {
...
@@ -20,4 +20,6 @@ interface PlanPreset : Persistable {
val
title
:
String
val
title
:
String
@get
:
Convert
(
StringListConverter
::
class
)
@get
:
Convert
(
StringListConverter
::
class
)
val
features
:
List
<
String
>
val
features
:
List
<
String
>
@get
:
OneToMany
(
mappedBy
=
"id"
,
cascade
=
[
CascadeAction
.
SAVE
,
CascadeAction
.
DELETE
])
val
explication
:
Set
<
Explication
>
}
}
\ No newline at end of file
app/src/main/java/com/biganto/visual/roompark/di/dagger/AppComponent.kt
View file @
6ceae663
...
@@ -9,6 +9,7 @@ import com.biganto.visual.roompark.data.repository.api.retrofit.di.RetrofitModul
...
@@ -9,6 +9,7 @@ import com.biganto.visual.roompark.data.repository.api.retrofit.di.RetrofitModul
import
com.biganto.visual.roompark.data.repository.db.IDb
import
com.biganto.visual.roompark.data.repository.db.IDb
import
com.biganto.visual.roompark.data.repository.db.requrey.DbModule
import
com.biganto.visual.roompark.data.repository.db.requrey.DbModule
import
com.biganto.visual.roompark.domain.contract.AuthContract
import
com.biganto.visual.roompark.domain.contract.AuthContract
import
com.biganto.visual.roompark.domain.contract.DealContract
import
com.biganto.visual.roompark.domain.contract.DevProgressContract
import
com.biganto.visual.roompark.domain.contract.DevProgressContract
import
com.biganto.visual.roompark.domain.contract.FeedsContract
import
com.biganto.visual.roompark.domain.contract.FeedsContract
import
com.squareup.picasso.Picasso
import
com.squareup.picasso.Picasso
...
@@ -51,6 +52,8 @@ interface AppComponent : AndroidInjector<RoomParkApplication>{
...
@@ -51,6 +52,8 @@ interface AppComponent : AndroidInjector<RoomParkApplication>{
fun
feedsAlb
():
DevProgressContract
fun
feedsAlb
():
DevProgressContract
fun
estateRep
():
DealContract
fun
provideLocal
():
ILocalStore
fun
provideLocal
():
ILocalStore
...
...
app/src/main/java/com/biganto/visual/roompark/di/dagger/DataModule.kt
View file @
6ceae663
...
@@ -2,6 +2,7 @@ package com.biganto.visual.roompark.di.dagger
...
@@ -2,6 +2,7 @@ package com.biganto.visual.roompark.di.dagger
import
com.biganto.visual.roompark.data.data_provider.AlbumsContractModule
import
com.biganto.visual.roompark.data.data_provider.AlbumsContractModule
import
com.biganto.visual.roompark.data.data_provider.AuthContractModule
import
com.biganto.visual.roompark.data.data_provider.AuthContractModule
import
com.biganto.visual.roompark.data.data_provider.EstateRepository
import
com.biganto.visual.roompark.data.data_provider.FeedsContractModule
import
com.biganto.visual.roompark.data.data_provider.FeedsContractModule
import
com.biganto.visual.roompark.data.local.LocalStorage
import
com.biganto.visual.roompark.data.local.LocalStorage
import
com.biganto.visual.roompark.data.repository.api.IRoomParkApi
import
com.biganto.visual.roompark.data.repository.api.IRoomParkApi
...
@@ -11,6 +12,7 @@ import com.biganto.visual.roompark.data.repository.db.IDb
...
@@ -11,6 +12,7 @@ import com.biganto.visual.roompark.data.repository.db.IDb
import
com.biganto.visual.roompark.data.repository.db.requrey.DbModule
import
com.biganto.visual.roompark.data.repository.db.requrey.DbModule
import
com.biganto.visual.roompark.data.repository.db.requrey.RequeryRepository
import
com.biganto.visual.roompark.data.repository.db.requrey.RequeryRepository
import
com.biganto.visual.roompark.domain.contract.AuthContract
import
com.biganto.visual.roompark.domain.contract.AuthContract
import
com.biganto.visual.roompark.domain.contract.DealContract
import
com.biganto.visual.roompark.domain.contract.DevProgressContract
import
com.biganto.visual.roompark.domain.contract.DevProgressContract
import
com.biganto.visual.roompark.domain.contract.FeedsContract
import
com.biganto.visual.roompark.domain.contract.FeedsContract
import
dagger.Binds
import
dagger.Binds
...
@@ -34,6 +36,9 @@ abstract class ContractRepositoryModule {
...
@@ -34,6 +36,9 @@ abstract class ContractRepositoryModule {
@Binds
@Binds
abstract
fun
provideDevProgressContract
(
impl
:
AlbumsContractModule
):
DevProgressContract
abstract
fun
provideDevProgressContract
(
impl
:
AlbumsContractModule
):
DevProgressContract
@Binds
abstract
fun
provideEstateContract
(
impl
:
EstateRepository
):
DealContract
}
}
...
...
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