Skip to content
Snippets Groups Projects
ApiRichModels.ts 731 B
Newer Older
  • Learn to ignore specific revisions
  • robban64's avatar
    robban64 committed
    import { Component, QuestionAlternative, QuestionAnswer, QuestionType } from './ApiModels'
    
    
    export interface RichCompetition {
      name: string
      id: number
      year: number
    
      city_id: number
    
      slides: RichSlide[]
      teams: RichTeam[]
    }
    
    export interface RichSlide {
      id: number
      order: number
      timer: number
      title: string
      competition_id: number
      components: Component[]
    
      questions: RichQuestion[]
    
    }
    
    export interface RichTeam {
      id: number
      name: string
      question_answers: QuestionAnswer[]
      competition_id: number
    }
    
    export interface RichQuestion {
      id: number
      slide_id: number
      name: string
      title: string
      total_score: number
      question_type: QuestionType
    
      alternatives: QuestionAlternative[]