2023-10-28 10:52:06 +02:00
|
|
|
package session
|
|
|
|
|
|
|
|
import (
|
|
|
|
"net/http"
|
2023-10-30 11:38:56 +01:00
|
|
|
|
|
|
|
"github.com/google/uuid"
|
2023-10-28 10:52:06 +02:00
|
|
|
"streifling.com/jason/sicherheitsunterweisung/packages/data"
|
|
|
|
)
|
|
|
|
|
|
|
|
type Mux struct {
|
|
|
|
*http.ServeMux
|
|
|
|
}
|
|
|
|
|
2023-10-30 11:38:56 +01:00
|
|
|
type BriefingParticipant struct {
|
|
|
|
*data.Participant
|
|
|
|
Login string
|
|
|
|
GivenAnswers []int
|
|
|
|
NoIncorrect int
|
|
|
|
AllowRetry bool
|
|
|
|
}
|
|
|
|
|
2023-10-28 10:52:06 +02:00
|
|
|
type Session struct {
|
|
|
|
ID uuid.UUID
|
|
|
|
*data.Briefing
|
2023-10-30 11:38:56 +01:00
|
|
|
Participants []*BriefingParticipant
|
2023-10-28 10:52:06 +02:00
|
|
|
Questions []data.Question
|
|
|
|
}
|