Skip to content

Commit d48cf76

Browse files
committed
yeet sampleId
1 parent 3acff0c commit d48cf76

3 files changed

Lines changed: 7 additions & 7 deletions

File tree

firebase-ai/app/src/main/java/com/google/firebase/quickstart/ai/feature/live/BidiViewModel.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,13 @@ import kotlinx.serialization.json.jsonPrimitive
3030
import java.io.ByteArrayOutputStream
3131

3232
@Serializable
33-
class StreamRealtimeRoute(val sampleId: String)
33+
object StreamRealtimeRoute
3434

3535
@Serializable
36-
class StreamRealtimeVideoRoute(val sampleId: String)
36+
object StreamRealtimeVideoRoute
3737

3838
@OptIn(PublicPreviewAPI::class)
39-
class BidiViewModel(savedStateHandle: SavedStateHandle) : ViewModel() {
39+
class BidiViewModel : ViewModel() {
4040
// Firebase AI Logic
4141
private var liveSession: LiveSession
4242

firebase-ai/app/src/main/java/com/google/firebase/quickstart/ai/feature/text/SvgViewModel.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ import kotlinx.coroutines.flow.asStateFlow
1919
import kotlinx.coroutines.launch
2020

2121
@Serializable
22-
class SvgRoute(val sampleId: String? = null)
22+
object SvgRoute
2323

2424
class SvgViewModel : ViewModel() {
2525
private val _uiState = MutableStateFlow<SvgUiState>(SvgUiState.Success())

firebase-ai/app/src/main/java/com/google/firebase/quickstart/ai/ui/navigation/FirebaseAISamples.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ val FIREBASE_AI_SAMPLES = listOf(
163163
title = "ForecastTalk",
164164
description = "Use bidirectional streaming to get information about" +
165165
" weather conditions for a specific US city on a specific date",
166-
route = StreamRealtimeRoute("forecast-talk"),
166+
route = StreamRealtimeRoute,
167167
screenType = ScreenType.BIDI,
168168
viewModelClass = BidiViewModel::class,
169169
categories = listOf(Category.LIVE_API, Category.AUDIO, Category.FUNCTION_CALLING)
@@ -172,7 +172,7 @@ val FIREBASE_AI_SAMPLES = listOf(
172172
title = "Gemini Live (Video input)",
173173
description = "Use bidirectional streaming to chat with Gemini using your" +
174174
" phone's camera",
175-
route = StreamRealtimeVideoRoute("gemini-live-video"),
175+
route = StreamRealtimeVideoRoute,
176176
screenType = ScreenType.BIDI_VIDEO,
177177
viewModelClass = BidiViewModel::class,
178178
categories = listOf(Category.LIVE_API, Category.VIDEO, Category.FUNCTION_CALLING)
@@ -224,7 +224,7 @@ val FIREBASE_AI_SAMPLES = listOf(
224224
Sample(
225225
title = "SVG Generator",
226226
description = "Use Gemini 3 Flash preview to create SVG illustrations",
227-
route = SvgRoute("svg-generator"),
227+
route = SvgRoute,
228228
screenType = ScreenType.SVG,
229229
viewModelClass = SvgViewModel::class,
230230
categories = listOf(Category.IMAGE, Category.TEXT)

0 commit comments

Comments
 (0)