Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update with new AI events formats #5507

Merged
merged 1 commit into from
Dec 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading