From b0c61cd588aab098c4fceddbf95252ba86c37c80 Mon Sep 17 00:00:00 2001 From: Gian <47775302+gpunto@users.noreply.github.com> Date: Thu, 10 Sep 2026 12:25:48 +0200 Subject: [PATCH] Remove the dead video call, thread request, and upstream channel read DTOs --- ...adDtos.kt => DownstreamChannelUserRead.kt} | 7 ---- .../client/api2/model/dto/VideoCallDto.kt | 20 --------- .../client/api2/model/dto/VideoCallDtos.kt | 40 ------------------ .../api2/model/requests/GetThreadRequest.kt | 42 ------------------- .../model/requests/VideoCallCreateRequest.kt | 25 ----------- .../model/requests/VideoCallTokenRequest.kt | 24 ----------- .../model/response/CreateVideoCallResponse.kt | 29 ------------- 7 files changed, 187 deletions(-) rename stream-chat-android-client/src/main/java/io/getstream/chat/android/client/api2/model/dto/{ChannelUserReadDtos.kt => DownstreamChannelUserRead.kt} (86%) delete mode 100644 stream-chat-android-client/src/main/java/io/getstream/chat/android/client/api2/model/dto/VideoCallDto.kt delete mode 100644 stream-chat-android-client/src/main/java/io/getstream/chat/android/client/api2/model/dto/VideoCallDtos.kt delete mode 100644 stream-chat-android-client/src/main/java/io/getstream/chat/android/client/api2/model/requests/GetThreadRequest.kt delete mode 100644 stream-chat-android-client/src/main/java/io/getstream/chat/android/client/api2/model/requests/VideoCallCreateRequest.kt delete mode 100644 stream-chat-android-client/src/main/java/io/getstream/chat/android/client/api2/model/requests/VideoCallTokenRequest.kt delete mode 100644 stream-chat-android-client/src/main/java/io/getstream/chat/android/client/api2/model/response/CreateVideoCallResponse.kt diff --git a/stream-chat-android-client/src/main/java/io/getstream/chat/android/client/api2/model/dto/ChannelUserReadDtos.kt b/stream-chat-android-client/src/main/java/io/getstream/chat/android/client/api2/model/dto/DownstreamChannelUserRead.kt similarity index 86% rename from stream-chat-android-client/src/main/java/io/getstream/chat/android/client/api2/model/dto/ChannelUserReadDtos.kt rename to stream-chat-android-client/src/main/java/io/getstream/chat/android/client/api2/model/dto/DownstreamChannelUserRead.kt index 4fbbf9044f93..67b03f2c1e19 100644 --- a/stream-chat-android-client/src/main/java/io/getstream/chat/android/client/api2/model/dto/ChannelUserReadDtos.kt +++ b/stream-chat-android-client/src/main/java/io/getstream/chat/android/client/api2/model/dto/DownstreamChannelUserRead.kt @@ -19,13 +19,6 @@ package io.getstream.chat.android.client.api2.model.dto import com.squareup.moshi.JsonClass import java.util.Date -@JsonClass(generateAdapter = true) -internal data class UpstreamChannelUserRead( - val user: UpstreamUserDto, - val last_read: Date, - val unread_messages: Int, -) - @JsonClass(generateAdapter = true) internal data class DownstreamChannelUserRead( val user: DownstreamUserDto, diff --git a/stream-chat-android-client/src/main/java/io/getstream/chat/android/client/api2/model/dto/VideoCallDto.kt b/stream-chat-android-client/src/main/java/io/getstream/chat/android/client/api2/model/dto/VideoCallDto.kt deleted file mode 100644 index 4aea8cfd7e8b..000000000000 --- a/stream-chat-android-client/src/main/java/io/getstream/chat/android/client/api2/model/dto/VideoCallDto.kt +++ /dev/null @@ -1,20 +0,0 @@ -/* - * Copyright (c) 2014-2026 Stream.io Inc. All rights reserved. - * - * Licensed under the Stream License; - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://github.com/GetStream/stream-chat-android/blob/main/LICENSE - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package io.getstream.chat.android.client.api2.model.dto - -/** A generic dto interface for video integrations. */ -internal interface VideoCallDto diff --git a/stream-chat-android-client/src/main/java/io/getstream/chat/android/client/api2/model/dto/VideoCallDtos.kt b/stream-chat-android-client/src/main/java/io/getstream/chat/android/client/api2/model/dto/VideoCallDtos.kt deleted file mode 100644 index 3f5dd620808e..000000000000 --- a/stream-chat-android-client/src/main/java/io/getstream/chat/android/client/api2/model/dto/VideoCallDtos.kt +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright (c) 2014-2026 Stream.io Inc. All rights reserved. - * - * Licensed under the Stream License; - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://github.com/GetStream/stream-chat-android/blob/main/LICENSE - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package io.getstream.chat.android.client.api2.model.dto - -import com.squareup.moshi.Json -import com.squareup.moshi.JsonClass - -@JsonClass(generateAdapter = true) -internal data class HMSDto( - @field:Json(name = "room_id") val roomId: String, - @field:Json(name = "room_name") val roomName: String, -) : VideoCallDto - -@JsonClass(generateAdapter = true) -internal data class AgoraDto( - val channel: String, -) : VideoCallDto - -@JsonClass(generateAdapter = true) -internal data class VideoCallInfoDto( - val id: String, - val provider: String, - val type: String, - val agora: AgoraDto, - val hms: HMSDto, -) diff --git a/stream-chat-android-client/src/main/java/io/getstream/chat/android/client/api2/model/requests/GetThreadRequest.kt b/stream-chat-android-client/src/main/java/io/getstream/chat/android/client/api2/model/requests/GetThreadRequest.kt deleted file mode 100644 index d60c89d275bc..000000000000 --- a/stream-chat-android-client/src/main/java/io/getstream/chat/android/client/api2/model/requests/GetThreadRequest.kt +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Copyright (c) 2014-2026 Stream.io Inc. All rights reserved. - * - * Licensed under the Stream License; - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://github.com/GetStream/stream-chat-android/blob/main/LICENSE - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package io.getstream.chat.android.client.api2.model.requests - -import com.squareup.moshi.JsonClass -import io.getstream.chat.android.client.api2.endpoint.ThreadsApi - -/** - * Gets a thread. - * @see [ThreadsApi.getThread] - * - * @param watch If true, all the channels corresponding to threads returned in response will be watched. - * Defaults to true. - * @param reply_limit The number of latest replies to fetch per thread. Defaults to 2. Max limit is 10. - * @param participant_limit The number of thread participants to request per thread. Defaults to 100. Max limit is 100. - * @param member_limit The number of members to request per thread. Defaults to 100. Max limit is 100. - * @param limit The number of threads to return. Defaults to 10. Max limit is 25. - * @param next The next pagination token. This token can be used to fetch the next page of threads. - */ -@JsonClass(generateAdapter = true) -internal data class GetThreadRequest( - val watch: Boolean = true, - val reply_limit: Int = 2, - val participant_limit: Int = 100, - val member_limit: Int = 100, - val limit: Int = 10, - val next: String? = null, -) diff --git a/stream-chat-android-client/src/main/java/io/getstream/chat/android/client/api2/model/requests/VideoCallCreateRequest.kt b/stream-chat-android-client/src/main/java/io/getstream/chat/android/client/api2/model/requests/VideoCallCreateRequest.kt deleted file mode 100644 index 71563f0b2c6a..000000000000 --- a/stream-chat-android-client/src/main/java/io/getstream/chat/android/client/api2/model/requests/VideoCallCreateRequest.kt +++ /dev/null @@ -1,25 +0,0 @@ -/* - * Copyright (c) 2014-2026 Stream.io Inc. All rights reserved. - * - * Licensed under the Stream License; - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://github.com/GetStream/stream-chat-android/blob/main/LICENSE - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package io.getstream.chat.android.client.api2.model.requests - -import com.squareup.moshi.JsonClass - -@JsonClass(generateAdapter = true) -internal data class VideoCallCreateRequest( - val id: String, - val type: String, -) diff --git a/stream-chat-android-client/src/main/java/io/getstream/chat/android/client/api2/model/requests/VideoCallTokenRequest.kt b/stream-chat-android-client/src/main/java/io/getstream/chat/android/client/api2/model/requests/VideoCallTokenRequest.kt deleted file mode 100644 index 1214342ca6ab..000000000000 --- a/stream-chat-android-client/src/main/java/io/getstream/chat/android/client/api2/model/requests/VideoCallTokenRequest.kt +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (c) 2014-2026 Stream.io Inc. All rights reserved. - * - * Licensed under the Stream License; - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://github.com/GetStream/stream-chat-android/blob/main/LICENSE - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package io.getstream.chat.android.client.api2.model.requests - -import com.squareup.moshi.JsonClass - -@JsonClass(generateAdapter = true) -internal data class VideoCallTokenRequest( - val callId: String, -) diff --git a/stream-chat-android-client/src/main/java/io/getstream/chat/android/client/api2/model/response/CreateVideoCallResponse.kt b/stream-chat-android-client/src/main/java/io/getstream/chat/android/client/api2/model/response/CreateVideoCallResponse.kt deleted file mode 100644 index 97f0a9ae6c5b..000000000000 --- a/stream-chat-android-client/src/main/java/io/getstream/chat/android/client/api2/model/response/CreateVideoCallResponse.kt +++ /dev/null @@ -1,29 +0,0 @@ -/* - * Copyright (c) 2014-2026 Stream.io Inc. All rights reserved. - * - * Licensed under the Stream License; - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://github.com/GetStream/stream-chat-android/blob/main/LICENSE - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package io.getstream.chat.android.client.api2.model.response - -import com.squareup.moshi.Json -import com.squareup.moshi.JsonClass -import io.getstream.chat.android.client.api2.model.dto.VideoCallInfoDto - -@JsonClass(generateAdapter = true) -internal data class CreateVideoCallResponse( - val call: VideoCallInfoDto, - val token: String, - @field:Json(name = "agora_uid") val agoraUid: Int?, - @field:Json(name = "agora_app_id") val agoraAppId: String?, -)