diff --git a/types/serializable/src/commonMain/kotlin/app/meetacy/sdk/types/serializable/meeting/MeetingSerializable.kt b/types/serializable/src/commonMain/kotlin/app/meetacy/sdk/types/serializable/meeting/MeetingSerializable.kt index 3c49b127..38073888 100644 --- a/types/serializable/src/commonMain/kotlin/app/meetacy/sdk/types/serializable/meeting/MeetingSerializable.kt +++ b/types/serializable/src/commonMain/kotlin/app/meetacy/sdk/types/serializable/meeting/MeetingSerializable.kt @@ -23,11 +23,11 @@ public data class MeetingSerializable( val date: DateSerializable, val location: LocationSerializable, val title: String?, - val description: String?, + val description: String? = null, val participantsCount: Int, val previewParticipants: List, val isParticipating: Boolean, - val avatarIdentity: FileIdSerializable?, + val avatarId: FileIdSerializable? = null, val visibility: Visibility ) { @Serializable @@ -49,7 +49,7 @@ public fun MeetingSerializable.type(): Meeting = Meeting( participantsCount = participantsCount, previewParticipants = previewParticipants.map { it.type() }, isParticipating = isParticipating, - avatarId = avatarIdentity?.type(), + avatarId = avatarId?.type(), visibility = visibility.type() ) @@ -73,7 +73,7 @@ public fun Meeting.serializable(): MeetingSerializable = MeetingSerializable( participantsCount = participantsCount, previewParticipants = previewParticipants.map { it.serializable() }, isParticipating = isParticipating, - avatarIdentity = avatarId?.serializable(), + avatarId = avatarId?.serializable(), visibility = visibility.serializable() ) diff --git a/types/serializable/src/commonMain/kotlin/app/meetacy/sdk/types/serializable/notification/NotificationSerializable.kt b/types/serializable/src/commonMain/kotlin/app/meetacy/sdk/types/serializable/notification/NotificationSerializable.kt index c84b2568..e4bc2070 100644 --- a/types/serializable/src/commonMain/kotlin/app/meetacy/sdk/types/serializable/notification/NotificationSerializable.kt +++ b/types/serializable/src/commonMain/kotlin/app/meetacy/sdk/types/serializable/notification/NotificationSerializable.kt @@ -17,6 +17,7 @@ public sealed class NotificationSerializable { public abstract val isNew: Boolean public abstract val date: DateTimeSerializable + @SerialName("subscription") @Serializable public class Subscription( override val isNew: Boolean, @@ -25,6 +26,7 @@ public sealed class NotificationSerializable { public val subscriber: UserSerializable, ) : NotificationSerializable() + @SerialName("meeting_invitation") @Serializable public class Invitation( override val id: NotificationIdSerializable,