Commit 44a19565 authored by Vladislav Bogdashkin's avatar Vladislav Bogdashkin 🎣

added deal flat model sample

parent f2f27d1f
package com.biganto.visual.roompark.domain.interactor
import com.biganto.visual.roompark.domain.model.*
import javax.inject.Inject
/**
......@@ -8,4 +9,117 @@ import javax.inject.Inject
class DealsInteractor @Inject constructor(
){
companion object{
val dealFlat = DealModel(
amount_pay_sum = 5118160,
estate = EstateModel(
albumId= 10,
commonInfo= CommonInfoModel(
area = 61.2f,
area_living = 30.3f,
building = 1,
ceiling = 2.95f,
decoration = "Без отделки, свободная планировка",
dependent = null,
direction = "север,восток",
discount = 5.0f,
discount_amount = 7356325,
floor = 10,
floor_max = 15,
kind = "2к-4л",
price = 7743500,
price_meter = 126527,
rooms = 2,
section_begin = 2,
windows_face = "Двор"
),
explications = arrayListOf(
ExplicationListModel(
items = arrayListOf(
ExplicationModel(
area = 15.8f,
living = true,
title = "Гостиная"
),ExplicationModel(
area = 14.5f,
living = true,
title = "Спальня"
),ExplicationModel(
area = 20.2f,
living = false,
title = "Кухня"
),ExplicationModel(
area = 5.0f,
living = false,
title = "Прихожая"
),ExplicationModel(
area = 4.1f,
living = false,
title = "Санузел"
),ExplicationModel(
area = 1.6f,
living = false,
title = "Лоджия"
)
),
planId = 0
),
ExplicationListModel(
items = arrayListOf(
ExplicationModel(
area = 15.5f,
living = true,
title = "Спальня"
),ExplicationModel(
area = 14.5f,
living = true,
title = "Спальня"
),ExplicationModel(
area = 20.2f,
living = false,
title = "Кухня-гостиная"
),ExplicationModel(
area = 5.3f,
living = false,
title = "Прихожая"
),ExplicationModel(
area = 4.1f,
living = false,
title = "Санузел"
),ExplicationModel(
area = 1.6f,
living = false,
title = "Лоджия"
)
),
planId = 1
)
),
id = 1201,
multitourId = 6500,
number = "88",
planJPG = PlanModel(
height = 720,
url = "/assets/estates/plan_jpg/00/00/04/1201-52d64f.jpeg",
width = 785
),
planPNG = PlanModel(
height = 292,
url = "/assets/estates/plan_png/00/00/04/1201-91169f.png",
width = 318
),
type = "flat",
url = "https://stage.room-park.ru:38386/choose/flat/1/2/88/"
),
estate_id = "54d7e300-b85c-e711-80d7-00155d0a0a0e",
id = "2419877b-2d6a-e811-80e6-00155d0a0a0e",
managerName = "Босова, Ирина",
opportunitySum = 5618160,
paymentSum = 500000,
statusId = 10
)
}
}
\ No newline at end of file
......@@ -38,14 +38,15 @@ class FavoritesInteractor @Inject constructor(
price = 1170025,
discount = null,
discount_amount = 970025,
rooms = null
rooms = null,
dependent = false
),
planPNG = null,
planJPG = null,
dependent = false,
albumId = 10,
multitourId = null,
explications = null
explications = null,
url = null
),
EstateModel(
id = 1905,
......@@ -67,14 +68,15 @@ class FavoritesInteractor @Inject constructor(
price = 193700,
discount = null,
discount_amount = null,
dependent = false,
rooms = null
),
planPNG = null,
planJPG = null,
dependent = false,
albumId = 10,
multitourId = null,
explications = null
explications = null,
url = null
),
EstateModel(
id = 1774,
......@@ -96,6 +98,7 @@ class FavoritesInteractor @Inject constructor(
price = 5712300,
discount = 5.00f,
discount_amount = 5426685,
dependent = null,
rooms = 1
),
planPNG = PlanModel(
......@@ -108,11 +111,11 @@ class FavoritesInteractor @Inject constructor(
width = 693,
height = 720
),
dependent = null,
albumId = 10,
multitourId = "https://biganto.com/show/5970/?iframe=1",
explications = arrayListOf<ExplicationsItemModel>(
ExplicationsItemModel(
url = null,
multitourId = 5790,
explications = arrayListOf<ExplicationListModel>(
ExplicationListModel(
planId = 0,
items = arrayListOf(
ExplicationModel(
......@@ -146,7 +149,7 @@ class FavoritesInteractor @Inject constructor(
title = "Санузел"
)
)
), ExplicationsItemModel(
), ExplicationListModel(
planId = 1,
items = arrayListOf(
ExplicationModel(
......@@ -180,7 +183,7 @@ class FavoritesInteractor @Inject constructor(
title = "Лоджия"
)
)
), ExplicationsItemModel(
), ExplicationListModel(
planId = 2,
items = arrayListOf(
ExplicationModel(
......
......@@ -7,8 +7,8 @@ package com.biganto.visual.roompark.domain.model
data class DealListModel(val deals:List<DealListModel>)
data class DealModel(
val id:Int,
val estate_id:Int,
val id:String,
val estate_id:String,
val opportunitySum:Int,
val paymentSum:Int,
val amount_pay_sum:Int,
......@@ -26,12 +26,12 @@ data class EstateModel(
val sectionEnd:Int?=null,
val planPNG:PlanModel?,
val planJPG:PlanModel?,
val dependent:Boolean?=null,
val rooms:Int?=null,
val albumId:Int?=null,
val multitourId:String?=null,
val multitourId:Int?=null,
val commonInfo:CommonInfoModel? = null,
val explications:List<ExplicationsItemModel>? = null
val explications:List<ExplicationListModel>? = null,
val url:String?
)
data class PlanModel(
......@@ -49,6 +49,7 @@ data class CommonInfoModel(
val area: Float?,
val area_living: Float?,
val kind: String?,
val dependent:Boolean?=null,
val decoration: String?,
val ceiling: Float?,
val windows_face: String?,
......@@ -60,7 +61,7 @@ data class CommonInfoModel(
val rooms: Int?
)
data class ExplicationsItemModel(
data class ExplicationListModel(
val planId:Int,
val items:List<ExplicationModel>
)
......
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