@@ -111,31 +111,31 @@ data class RedirectMessage(
111111data class OfferMessage (
112112 @SerializedName(" type" ) val type : String = " offer" ,
113113 @SerializedName(" sdp" ) val sdp : String ,
114- @SerializedName(" version" ) val version : String ,
114+ @SerializedName(" version" ) val version : String? = null ,
115115
116- @SerializedName(" multistream" ) val multistream : Boolean ,
116+ @SerializedName(" multistream" ) val multistream : Boolean? = null ,
117117 @SerializedName(" simulcast" ) val simulcast : Boolean ,
118- @SerializedName(" simulcast_multicodec" ) val simulcastMulticodec : Boolean ,
119- @SerializedName(" spotlight" ) val spotlight : Boolean ,
118+ @SerializedName(" simulcast_multicodec" ) val simulcastMulticodec : Boolean? = null ,
119+ @SerializedName(" spotlight" ) val spotlight : Boolean? = null ,
120120
121- @SerializedName(" channel_id" ) val channelId : String ,
121+ @SerializedName(" channel_id" ) val channelId : String? = null ,
122122 @SerializedName(" client_id" ) val clientId : String ,
123123 @SerializedName(" bundle_id" ) val bundleId : String? = null ,
124124 @SerializedName(" connection_id" ) val connectionId : String ,
125- @SerializedName(" session_id" ) val sessionId : String? ,
125+ @SerializedName(" session_id" ) val sessionId : String? = null ,
126126
127127 @SerializedName(" metadata" ) val metadata : Any? ,
128128 @SerializedName(" config" ) val config : OfferConfig ? = null ,
129129 @SerializedName(" mid" ) val mid : Map <String , String >? = null ,
130130 @SerializedName(" encodings" ) val encodings : List <Encoding >? ,
131131 @SerializedName(" data_channels" ) val dataChannels : List <Map <String , Any >>? = null ,
132132
133- @SerializedName(" audio" ) val audio : Boolean? ,
134- @SerializedName(" audio_codec_type" ) val audioCodecType : String? ,
135- @SerializedName(" audio_bit_rate" ) val audioBitRate : Int? ,
136- @SerializedName(" video" ) val video : Boolean? ,
137- @SerializedName(" video_codec_type" ) val videoCodecType : String? ,
138- @SerializedName(" video_bit_rate" ) val videoBitRate : Int? ,
133+ @SerializedName(" audio" ) val audio : Boolean? = null ,
134+ @SerializedName(" audio_codec_type" ) val audioCodecType : String? = null ,
135+ @SerializedName(" audio_bit_rate" ) val audioBitRate : Int? = null ,
136+ @SerializedName(" video" ) val video : Boolean? = null ,
137+ @SerializedName(" video_codec_type" ) val videoCodecType : String? = null ,
138+ @SerializedName(" video_bit_rate" ) val videoBitRate : Int? = null ,
139139)
140140
141141data class SwitchedMessage (
0 commit comments