Skip to content

Latest commit

 

History

History
86 lines (73 loc) · 2.25 KB

EduResourceResource.md

File metadata and controls

86 lines (73 loc) · 2.25 KB

EduResourceResource

Properties

Name Type
id string
type AssignmentType
capabilities AssignmentCapabilities
title string
description string
descriptionHtml string
teacherInstructions string
teacherInstructionsHtml string
cover string
coverFile string
attachments Array<MediaAttachment>
useDedicatedAttachments boolean
maxPoints number
releaseGrades string
shuffleExercises boolean
toolset string
nbPlaybackAuthorized number
restrictPlayNote boolean
restrictToAudioTracks boolean
submissionStudentsMode AssignmentSubmissionStudentsMode
recordingType string
allowMetronome boolean
allowBackingTrack boolean
allowSpeedChange boolean
freeRecord boolean
assignmentsTypes Array<AssignmentType>
resourcesCount number

Example

import type { EduResourceResource } from 'flat-api'

// TODO: Update the object below with actual values
const example = {
  "id": null,
  "type": null,
  "capabilities": null,
  "title": null,
  "description": null,
  "descriptionHtml": null,
  "teacherInstructions": null,
  "teacherInstructionsHtml": null,
  "cover": null,
  "coverFile": null,
  "attachments": null,
  "useDedicatedAttachments": null,
  "maxPoints": null,
  "releaseGrades": null,
  "shuffleExercises": null,
  "toolset": null,
  "nbPlaybackAuthorized": null,
  "restrictPlayNote": null,
  "restrictToAudioTracks": null,
  "submissionStudentsMode": null,
  "recordingType": null,
  "allowMetronome": null,
  "allowBackingTrack": null,
  "allowSpeedChange": null,
  "freeRecord": null,
  "assignmentsTypes": null,
  "resourcesCount": null,
} satisfies EduResourceResource

console.log(example)

// Convert the instance to a JSON string
const exampleJSON: string = JSON.stringify(example)
console.log(exampleJSON)

// Parse the JSON string back to an object
const exampleParsed = JSON.parse(exampleJSON) as EduResourceResource
console.log(exampleParsed)

[Back to top] [Back to API list] [Back to Model list] [Back to README]