Brainix.Common.Dataload 1.0.0-beta-818

.NET 5.0
This is a prerelease version of Brainix.Common.Dataload.
NuGet\Install-Package Brainix.Common.Dataload -Version 1.0.0-beta-818
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
dotnet add package Brainix.Common.Dataload --version 1.0.0-beta-818
<PackageReference Include="Brainix.Common.Dataload" Version="1.0.0-beta-818" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Brainix.Common.Dataload --version 1.0.0-beta-818
#r "nuget: Brainix.Common.Dataload, 1.0.0-beta-818"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. Copy this into the interactive tool or source code of the script to reference the package.
// Install Brainix.Common.Dataload as a Cake Addin
#addin nuget:?package=Brainix.Common.Dataload&version=1.0.0-beta-818&prerelease

// Install Brainix.Common.Dataload as a Cake Tool
#tool nuget:?package=Brainix.Common.Dataload&version=1.0.0-beta-818&prerelease

Brainix.Common.Dataload

Description

This package enables a very easy and convient Dataload process. For this it a Dataload class was written, which contains all important methods to add and work with Exercises, Tasks and Collections.

Initialization

The constructor of the Dataload class taskes two arguments:

  • collectionServiceUrl (Url of the Collection Service)
  • exerciseServiceUrl (Url of the Exercise Service)

Methods

AddExercise

The Add Exercise method not only adds an Exercise to the Collection Service it also uploads the Exercise Data to the Exercise Service and publishes the CorrectAnswers to the Feedback Service. It takes 6 parameters:

  • exerciseId (The Id of the Exercise)
  • exerciseDetails (The data of the Exercise)
  • exerciseCorrectAnswer (The correct answers for the exercise)
  • taskId (The TaskId which the Exercise gets added to)
  • orderNumber (The order number of the Exercise inside of the Task)
  • merkeExerciseId (The optional ExerciseId of the corresponding MerkeExercise)

AddTask

The AddTask methods adds a Task inside of the CollectionService. It takes 5 parameters:

  • taskId (The Id of the Task)
  • type (The Type of the Task)
  • competenceLevel (The competence level of the Task)
  • estimatedTime (The estimated time of the Task)
  • backgroundImagePath (The Path to the image which should be shown in the background)

AddCollection

The AddCollection methods adds a Collection inside of the CollectionService. It takes 5 parameters:

  • collectionId (The Id of the Collection)
  • type (The Type of the Collection)
  • fixedOrder (Wheater the Collection should be in a fixed order or not)
  • ownerId (The OwnerId(UserId) which owns the Collection)
  • lessonId (The LessonId to which the Collection belongs)

AddCollectionTaskRelation

The AddCollection methods adds a realation from a Collection to a Task (adds a Task to a Collection). It takes 3 parameters:

  • collectionId (The Id of the Collection)
  • taskId (The Id of the Task)
  • orderNumber (The order number of the Task inside of the Collection)
Product Versions
.NET net5.0 net5.0-windows net6.0 net6.0-android net6.0-ios net6.0-maccatalyst net6.0-macos net6.0-tvos net6.0-windows
Compatible target framework(s)
Additional computed target framework(s)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.0.0-beta-818 88 1/17/2022
1.0.0-beta-806 80 1/10/2022
1.0.0-beta-781 87 1/5/2022
1.0.0-beta-777 83 1/5/2022
1.0.0-beta-774 86 1/5/2022
1.0.0-beta-772 82 1/4/2022
1.0.0-beta-771 83 1/4/2022
1.0.0-beta-755 87 12/21/2021
1.0.0-beta-737 77 12/17/2021
1.0.0-beta-736 84 12/17/2021
1.0.0-beta-731 118 12/16/2021
1.0.0-beta-726 86 12/16/2021
1.0.0-beta-722 87 12/16/2021
1.0.0-beta-606 2,927 11/25/2021
1.0.0-beta-600 2,652 11/25/2021
1.0.0-beta-591 6,380 11/23/2021
1.0.0-beta-509 183 10/10/2021