package Ġcom . servic et ick . android . library . entities Ċ Ċ import Ġandroid . os . Parcel Ċ import Ġandroidx . room . Entity Ċ import Ġandroidx . room . ForeignKey Ċ import Ġandroidx . room . Index Ċ import Ġandroidx . room . PrimaryKey Ċ import Ġcom . google . gson . annotations . Expose Ċ import Ġcom . google . gson . annotations . SerializedName Ċ import Ġcom . servic et ick . android . library . entities . db . Base Survey Response Ċ Ċ @ Entity ( tableName Ġ= Ġ" survey _ response _ answers ", ĊĠĠĠĠĠĠĠ Ġforeign Keys Ġ= Ġ[ ForeignKey ( entity Ġ= ĠBase Survey Response :: class , Ġparent Columns Ġ= Ġ[" id "], Ġchild Columns Ġ= Ġ[" survey Response Id "], ĠonDelete Ġ= ĠForeign Key . CASCADE )], ĊĠĠĠĠĠĠĠ Ġindices Ġ= Ġ[ Index ( value Ġ= Ġ[" survey Response Id "]), ĠIndex ( value Ġ= Ġ[" survey Question Id "]) ]) Ċ internal Ġclass ĠSurvey Response Answer () Ġ: ĠK Parcelable Ġ{ ĊĊĠĠĠ Ġ@ PrimaryKey ( auto Generate Ġ= Ġtrue ) ĊĠĠĠ Ġ@ Published Api ĊĠĠĠ Ġinternal Ġvar Ġid : ĠLong Ġ= Ġ 0 ĊĊĠĠĠ Ġ@ Published Api ĊĠĠĠ Ġinternal Ġvar Ġsurvey Response Id : ĠLong Ġ= Ġ 0 ĊĊĠĠĠ Ġ@ Expose ĊĠĠĠ Ġ@ SerializedName (" Question Id ") ĊĠĠĠ Ġ@ Published Api ĊĠĠĠ Ġinternal Ġvar Ġsurvey Question Id : ĠLong Ġ= Ġ 0 ĊĊĠĠĠ Ġ@ Expose ĊĠĠĠ Ġ@ SerializedName (" Question TypeId ") ĊĠĠĠ Ġ@ Published Api ĊĠĠĠ Ġinternal Ġvar Ġsurvey Question TypeId : ĠInt Ġ= Ġ 0 ĊĊĠĠĠ Ġ@ Expose ĊĠĠĠ Ġ@ SerializedName (" Answer ") ĊĠĠĠ Ġ@ Published Api ĊĠĠĠ Ġinternal Ġvar Ġanswer : ĠString Ġ= Ġ"" ĊĊĠĠĠ Ġconstructor ( parcel : ĠParcel ) Ġ: Ġthis () Ġ{ ĊĠĠĠĠĠĠĠ Ġid Ġ= Ġparcel . read Long () ĊĠĠĠĠĠĠĠ Ġsurvey Response Id Ġ= Ġparcel . read Long () ĊĠĠĠĠĠĠĠ Ġsurvey Question Id Ġ= Ġparcel . read Long () ĊĠĠĠĠĠĠĠ Ġsurvey Question TypeId Ġ= Ġparcel . readInt () ĊĠĠĠĠĠĠĠ Ġanswer Ġ= Ġparcel . readString () Ġ?: Ġ"" ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġoverride Ġfun ĠwriteTo Parcel ( parcel : ĠParcel , Ġflags : ĠInt ) Ġ{ ĊĠĠĠĠĠĠĠ Ġparcel . write Long ( id ) ĊĠĠĠĠĠĠĠ Ġparcel . write Long ( survey Response Id ) ĊĠĠĠĠĠĠĠ Ġparcel . write Long ( survey Question Id ) ĊĠĠĠĠĠĠĠ Ġparcel . writeInt ( survey Question TypeId ) ĊĠĠĠĠĠĠĠ Ġparcel . writeString ( answer ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġoverride Ġfun ĠtoString (): ĠString Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn Ġ" Survey Response Answer ( id =$ id , Ġsurvey Response Id =$ survey Response Id , Ġsurvey Question Id =$ survey Question Id , Ġsurvey Question TypeId =$ survey Question TypeId , Ġanswer ='$ answer ')" ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġcompanion Ġobject Ġ{ ĊĊĠĠĠĠĠĠĠ Ġ@ Jvm Field ĊĠĠĠĠĠĠĠ Ġval ĠCRE ATOR Ġ= Ġparcel able Creator (:: Survey Response Answer ) ĊĠĠĠ Ġ} Ċ }