File tree Expand file tree Collapse file tree
app/src/main/java/ch/fhnw/pepper_realtime Expand file tree Collapse file tree Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -20,7 +20,6 @@ class PerceptionData {
2020 var attentionState: String = " Unknown"
2121 var smileState: String = " Unknown"
2222 var distanceMeters: Double = - 1.0
23- var basicEmotion: BasicEmotion = BasicEmotion .UNKNOWN
2423
2524 // --- Position relative to robot (for bird's eye view) ---
2625 var positionX: Double = 0.0 // Meters in front of robot (positive = in front)
Original file line number Diff line number Diff line change @@ -128,14 +128,6 @@ class HttpClientManager @Inject constructor() {
128128
129129 // ==================== COROUTINE-BASED API ====================
130130
131- /* *
132- * Execute a request using the API client as a suspend function.
133- * This is the preferred way to make network calls in Kotlin code.
134- */
135- suspend fun executeApiRequest (request : Request ): Response {
136- return apiClient.executeAsync(request)
137- }
138-
139131 /* *
140132 * Execute a request using the quick API client as a suspend function.
141133 */
Original file line number Diff line number Diff line change 11package ch.fhnw.pepper_realtime.service
22
33import android.util.Log
4- import ch.fhnw.pepper_realtime.di.IoDispatcher
54import ch.fhnw.pepper_realtime.network.HttpClientManager
6- import kotlinx.coroutines.CoroutineDispatcher
75import kotlinx.coroutines.Dispatchers
86import kotlinx.coroutines.withContext
97import okhttp3.Request
108import org.json.JSONObject
119import java.io.IOException
1210import java.net.URLEncoder
13- import javax.inject.Inject
1411
1512/* *
1613 * Service for searching YouTube videos via the YouTube Data API v3.
1714 */
1815class YouTubeSearchService (
1916 private val apiKey : String
2017) {
21- // Secondary constructor for DI (if needed in future)
22- @Inject
23- constructor (
24- apiKey: String ,
25- @Suppress(" UNUSED_PARAMETER" ) httpClientManager: HttpClientManager ,
26- @Suppress(" UNUSED_PARAMETER" ) @IoDispatcher ioDispatcher: CoroutineDispatcher
27- ) : this (apiKey)
2818 companion object {
2919 private const val TAG = " YouTubeSearchService"
3020 private const val YOUTUBE_API_BASE_URL = " https://www.googleapis.com/youtube/v3/search"
Original file line number Diff line number Diff line change @@ -30,7 +30,6 @@ object ChatColors {
3030
3131 // Primary theme colors - Professional Blue
3232 val Primary = Color (0xFF1E40AF )
33- val PrimaryVariant = Color (0xFF1E3A8A )
3433}
3534
3635private val LightColorScheme = lightColorScheme(
Original file line number Diff line number Diff line change @@ -46,7 +46,6 @@ private object RulesColors {
4646 val SuccessGreen = Color (0xFF059669 )
4747 val DeleteRed = Color (0xFFDC2626 )
4848 val WarningOrange = Color (0xFFEA580C )
49- val BorderColor = Color (0xFFE5E7EB )
5049 val DisabledGray = Color (0xFF9CA3AF )
5150}
5251
Original file line number Diff line number Diff line change @@ -44,7 +44,6 @@ private object DrawingColors {
4444 val UnsavedIndicator = Color (0xFFFF9800 )
4545 val ClearButton = Color (0xFFFF9800 )
4646 val CloseButton = Color (0xFFF44336 )
47- val ToolbarBackground = Color (0xFFF5F5F5 )
4847
4948 // Available colors for drawing
5049 val PaletteColors = listOf (
Original file line number Diff line number Diff line change @@ -20,7 +20,6 @@ import androidx.compose.ui.unit.sp
2020import ch.fhnw.pepper_realtime.ui.MelodyPlayerState
2121
2222private object MelodyColors {
23- val Background = Color (0xFF1A1A2E )
2423 val CardBackground = Color (0xFF16213E )
2524 val AccentPrimary = Color (0xFFE94560 )
2625 val AccentSecondary = Color (0xFF0F3460 )
Original file line number Diff line number Diff line change @@ -29,7 +29,6 @@ import ch.fhnw.pepper_realtime.ui.MemoryGameInternalState
2929private object MemoryColors {
3030 val CardFaceDown = Color (0xFF1E40AF ) // Professional Blue
3131 val CardFaceUp = Color .White
32- val TextOnBlue = Color .White
3332 val TextOnWhite = Color .Black
3433 val Background = Color (0xFFF5F5F5 )
3534}
Original file line number Diff line number Diff line change @@ -323,14 +323,6 @@ class SettingsViewModel @Inject constructor(
323323 }
324324 }
325325
326- fun setGoogleAffectiveDialog (enabled : Boolean ) {
327- if (enabled != settingsRepository.googleAffectiveDialog) {
328- settingsRepository.googleAffectiveDialog = enabled
329- _settingsState .update { it.copy(googleAffectiveDialog = enabled) }
330- triggerGoogleSettingChange()
331- }
332- }
333-
334326 fun setGoogleProactiveAudio (enabled : Boolean ) {
335327 if (enabled != settingsRepository.googleProactiveAudio) {
336328 settingsRepository.googleProactiveAudio = enabled
You can’t perform that action at this time.
0 commit comments