Skip to content

Commit

Permalink
Update with new AI events formats (#5507)
Browse files Browse the repository at this point in the history
  • Loading branch information
skydoves authored Dec 4, 2024
1 parent 5ab5390 commit 7696376
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 12 deletions.
8 changes: 3 additions & 5 deletions stream-chat-android-client/api/stream-chat-android-client.api
Original file line number Diff line number Diff line change
Expand Up @@ -978,10 +978,9 @@ public final class io/getstream/chat/android/client/events/AIIndicatorStopEvent
}

public final class io/getstream/chat/android/client/events/AIIndicatorUpdatedEvent : io/getstream/chat/android/client/events/CidEvent, io/getstream/chat/android/client/events/UserEvent {
public fun <init> (Ljava/lang/String;Ljava/util/Date;Ljava/lang/String;Lio/getstream/chat/android/models/User;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/util/Date;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V
public fun <init> (Ljava/lang/String;Ljava/util/Date;Ljava/lang/String;Lio/getstream/chat/android/models/User;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/util/Date;Ljava/lang/String;Ljava/lang/String;)V
public final fun component1 ()Ljava/lang/String;
public final fun component10 ()Ljava/lang/String;
public final fun component11 ()Ljava/lang/String;
public final fun component2 ()Ljava/util/Date;
public final fun component3 ()Ljava/lang/String;
public final fun component4 ()Lio/getstream/chat/android/models/User;
Expand All @@ -990,10 +989,9 @@ public final class io/getstream/chat/android/client/events/AIIndicatorUpdatedEve
public final fun component7 ()Ljava/lang/String;
public final fun component8 ()Ljava/util/Date;
public final fun component9 ()Ljava/lang/String;
public final fun copy (Ljava/lang/String;Ljava/util/Date;Ljava/lang/String;Lio/getstream/chat/android/models/User;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/util/Date;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Lio/getstream/chat/android/client/events/AIIndicatorUpdatedEvent;
public static synthetic fun copy$default (Lio/getstream/chat/android/client/events/AIIndicatorUpdatedEvent;Ljava/lang/String;Ljava/util/Date;Ljava/lang/String;Lio/getstream/chat/android/models/User;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/util/Date;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;ILjava/lang/Object;)Lio/getstream/chat/android/client/events/AIIndicatorUpdatedEvent;
public final fun copy (Ljava/lang/String;Ljava/util/Date;Ljava/lang/String;Lio/getstream/chat/android/models/User;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/util/Date;Ljava/lang/String;Ljava/lang/String;)Lio/getstream/chat/android/client/events/AIIndicatorUpdatedEvent;
public static synthetic fun copy$default (Lio/getstream/chat/android/client/events/AIIndicatorUpdatedEvent;Ljava/lang/String;Ljava/util/Date;Ljava/lang/String;Lio/getstream/chat/android/models/User;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/util/Date;Ljava/lang/String;Ljava/lang/String;ILjava/lang/Object;)Lio/getstream/chat/android/client/events/AIIndicatorUpdatedEvent;
public fun equals (Ljava/lang/Object;)Z
public final fun getAiMessage ()Ljava/lang/String;
public final fun getAiState ()Ljava/lang/String;
public fun getChannelId ()Ljava/lang/String;
public fun getChannelLastMessageAt ()Ljava/util/Date;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -935,9 +935,8 @@ private fun AIIndicatorUpdatedEventDto.toDomain(currentUserId: UserId?): AIIndic
channelType = channelType,
channelId = channelId,
channelLastMessageAt = channel_last_message_at,
aiState = aiState,
aiMessage = aiMessage,
messageId = messageId,
aiState = ai_state,
messageId = message_id,
)
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -585,12 +585,11 @@ internal data class VoteRemovedEventDto(
@JsonClass(generateAdapter = true)
internal data class AIIndicatorUpdatedEventDto(
val type: String,
val aiState: String,
val ai_state: String,
val cid: String,
val user: DownstreamUserDto,
val created_at: ExactDate,
val messageId: String,
val aiMessage: String,
val message_id: String,
val channel_last_message_at: Date?,
) : ChatEventDto()

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -848,7 +848,6 @@ public data class AIIndicatorUpdatedEvent(
override val channelLastMessageAt: Date?,
val aiState: String,
val messageId: String,
val aiMessage: String,
) : CidEvent(), UserEvent

/**
Expand Down

0 comments on commit 7696376

Please sign in to comment.