package screen_service import ( "time" "evening_detective_server/internal/repos/screen_sessions_repo" ) type ScreenSession struct { ID int GameID *int Sound bool LastSeen time.Time Mode int32 Version int64 Position int64 Command int32 Volume int32 TimerLabel string TimerDurationSeconds int64 TimerRemainingSeconds int64 TimerState int32 TimerEndsAt *time.Time } func mapSession(session *screen_sessions_repo.ScreenSession) *ScreenSession { return &ScreenSession{ ID: session.ID, GameID: session.GameID, Sound: session.Sound, LastSeen: session.LastSeen, Mode: session.Mode, Version: session.Version, Position: session.Position, Command: session.Command, Volume: session.Volume, TimerLabel: session.TimerLabel, TimerDurationSeconds: session.TimerDurationSeconds, TimerRemainingSeconds: session.TimerRemainingSeconds, TimerState: session.TimerState, TimerEndsAt: session.TimerEndsAt, } }