Advertisement
alfin123

ClassRowSectionData

Feb 6th, 2020
621
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Kotlin 0.92 KB | None | 0 0
  1. package co.mailtarget.page.dto
  2.  
  3. import co.mailtarget.page.model.PageComponentSection
  4. import co.mailtarget.page.model.PageRowSection
  5. import co.mailtarget.page.model.RowSetting
  6. import java.util.*
  7.  
  8. data class RowSectionData(
  9.         var id:String,
  10.         var companyId: String,
  11.         var name: String,
  12.         var thumbnail: String,
  13.         var categories: List<String>,
  14.         var colomType: String,
  15.         var setting: RowSetting,
  16.         val createdAt: Date,
  17.         val componentList: List<PageComponentSection>?
  18. ) {
  19.     constructor(template: PageRowSection, templateComponent: List<PageComponentSection>?) : this(
  20.             template.id.toString(),
  21.             template.team.id.toString(),
  22.             template.name,
  23.             template.thumbnail,
  24.             template.categories,
  25.             template.colomType,
  26.             template.setting,
  27.             template.createdAt,
  28.             templateComponent)
  29. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement