Commit 54ce9ee8 authored by Vladislav Bogdashkin's avatar Vladislav Bogdashkin 🎣

estate plan model

parent d5f044f7
......@@ -246,7 +246,7 @@ interface IRoomParkMobileApi{
@Query(DIRECT_PLAN_SIZES_PARAM) sizes:Int,
@Query(DIRECT_PLAN_WALLS_PARAM) walls:Int,
@Query(DIRECT_PLAN_ELECTRIC_PARAM) electric:Int
): Observable<Response<List<PlanRaw>>>
): Observable<Response<List<String>>>
@GET("$API_URL$GET_MULTITOUR_ID$DELIMITER")
......
......@@ -24,7 +24,7 @@ interface Article : Persistable {
val body : String?
@get:ForeignKey(references = Feed::class, referencedColumn = "alias")
@get:ManyToOne
val feed_alias : Feed
val feed : Feed
@get:Convert(TitledPhotoListConverter::class)
val photo : List<TitledPhoto>?
}
\ No newline at end of file
package com.biganto.visual.roompark.data.repository.db.requrey.model
import io.requery.Entity
import io.requery.Key
import io.requery.Persistable
/**
* Created by Vladislav Bogdashkin on 29.10.2019.
*/
@Entity
interface Estate : Persistable {
@get:Key
val id: Int
}
\ No newline at end of file
package com.biganto.visual.roompark.data.repository.db.requrey.model
import com.biganto.visual.roompark.data.repository.db.requrey.utils.StringListConverter
import io.requery.*
/**
* Created by Vladislav Bogdashkin on 29.10.2019.
*/
@Entity
interface PlanPreset : Persistable {
@get:Key
@get:Generated
val id: Int
@get:ForeignKey(references = Estate::class)
var estateId:Estate
val planId: Int
val title:String
@get:Convert(StringListConverter::class)
val features:List<String>
}
\ No newline at end of file
package com.biganto.visual.roompark.domain.contract
import com.biganto.visual.roompark.domain.model.AuthInfoModel
import io.reactivex.Observable
/**
* Created by Vladislav Bogdashkin on 24.09.2019.
*/
interface TourContract {
fun getMultiTourId(building:Int, number:Int) : Observable<AuthInfoModel>
fun getOffer(offerId:Int) : Observable<AuthInfoModel>
}
\ No newline at end of file
......@@ -4,6 +4,7 @@ import androidx.annotation.StringRes
import com.biganto.visual.roompark.R
import com.biganto.visual.roompark.data.repository.api.retrofit.raw.ErrorRaw
/**
* Created by Vladislav Bogdashkin on 09.04.2019.
*/
......
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