Commit 5e965dfc authored by Vladislav Bogdashkin's avatar Vladislav Bogdashkin 🎣

reoslve dependencies

parent e53837ee
...@@ -38,7 +38,7 @@ interface IRoomParkApi { ...@@ -38,7 +38,7 @@ interface IRoomParkApi {
showSizes: Boolean, showSizes: Boolean,
showWalls: Boolean, showWalls: Boolean,
showElectric: Boolean showElectric: Boolean
): Observable<List<PlanRaw>>? ): Observable<List<String>>
fun getMultiTour(building: Int, flat: Int): Observable<List<PlanRaw>> fun getMultiTour(building: Int, flat: Int): Observable<List<PlanRaw>>
fun getArticlesPage(feedName:String, fun getArticlesPage(feedName:String,
......
...@@ -87,7 +87,7 @@ class RetrofitRepository(retrofit: Retrofit) : IRoomParkApi { ...@@ -87,7 +87,7 @@ class RetrofitRepository(retrofit: Retrofit) : IRoomParkApi {
showSizes: Boolean, showSizes: Boolean,
showWalls: Boolean, showWalls: Boolean,
showElectric: Boolean showElectric: Boolean
): Observable<List<PlanRaw>> = ): Observable<List<String>> =
api.getPlan( api.getPlan(
estate_id = estateId, estate_id = estateId,
planType = planType.planId, planType = planType.planId,
......
...@@ -41,7 +41,7 @@ interface Estate : Persistable { ...@@ -41,7 +41,7 @@ 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 @get:OneToMany(mappedBy = "id")
val explications: Set<Explication>? val explications: Set<Explication>?
val info_floor_max: Int val info_floor_max: Int
@get:Nullable @get:Nullable
......
package com.biganto.visual.roompark.data.repository.db.requrey.model package com.biganto.visual.roompark.data.repository.db.requrey.model
import io.requery.Entity import io.requery.*
import io.requery.Key
import io.requery.Persistable
/** /**
* Created by Vladislav Bogdashkin on 29.10.2019. * Created by Vladislav Bogdashkin on 29.10.2019.
...@@ -17,4 +15,7 @@ interface Feed : Persistable { ...@@ -17,4 +15,7 @@ interface Feed : Persistable {
val title:String val title:String
@get:Key @get:Key
val alias: String val alias: String
@get:OneToMany(mappedBy = "id")
@get:Nullable
val articles:Set<Article>?
} }
\ No newline at end of file
package com.biganto.visual.roompark.data.repository.db.requrey.model package com.biganto.visual.roompark.data.repository.db.requrey.model
import com.biganto.visual.roompark.data.repository.db.requrey.utils.IsoDateConverter import com.biganto.visual.roompark.data.repository.db.requrey.utils.IsoDateConverter
import io.requery.* import io.requery.Convert
import io.requery.Entity
import io.requery.Key
import io.requery.Persistable
import java.util.* import java.util.*
/** /**
...@@ -16,8 +19,5 @@ interface ImageAlbum : Persistable { ...@@ -16,8 +19,5 @@ interface ImageAlbum : Persistable {
val title:String val title:String
val sort:Int val sort:Int
@get:Convert(IsoDateConverter::class) @get:Convert(IsoDateConverter::class)
val date: Date val published: Date
@get:ForeignKey(references = ImageAlbum::class, referencedColumn = "id")
//TODO(create separate custom junction parent table)
val parent_id:Int
} }
\ No newline at end of file
package com.biganto.visual.roompark.data.repository.db.requrey.model
import io.requery.*
/**
* Created by Vladislav Bogdashkin on 29.10.2019.
*/
@Entity
interface ImageAlbumJunction : Persistable {
@get:Key
@get:Generated
val id:Int
@get:Nullable
val albumId:Int?
@get:Nullable
val parentId:Int?
}
\ No newline at end of file
...@@ -14,6 +14,7 @@ interface PlanPreset : Persistable { ...@@ -14,6 +14,7 @@ interface PlanPreset : Persistable {
@get:Generated @get:Generated
val id: Int val id: Int
@get:ForeignKey(references = Estate::class) @get:ForeignKey(references = Estate::class)
@get:ManyToOne
var estateId:Estate var estateId:Estate
val planId: Int val planId: Int
val title:String val title:String
......
...@@ -12,8 +12,9 @@ interface Subscription : Persistable { ...@@ -12,8 +12,9 @@ interface Subscription : Persistable {
@get:Key @get:Key
@get:Generated @get:Generated
val id: Int val id: Int
@get:ForeignKey(references = User::class, referencedColumn = "uuid")
@get:ManyToOne @get:ManyToOne
val user: User val owner: User
val deviceToken: String val deviceToken: String
val topic: String val topic: String
val number: String val number: String
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment