This repository has been archived by the owner on Aug 28, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #7 from cmu-sei/launchpoint
Launchpoint
- Loading branch information
Showing
31 changed files
with
682 additions
and
129 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
// Copyright 2020 Carnegie Mellon University. | ||
// Released under a MIT (SEI) license. See LICENSE.md in the project root. | ||
|
||
using System.Collections.Generic; | ||
|
||
namespace TopoMojo.Models | ||
{ | ||
public class Registration | ||
{ | ||
public string SubjectId { get; set; } | ||
public string SubjectName { get; set; } | ||
public string ResourceId { get; set; } | ||
public string GamespaceId { get; set; } | ||
public string ClientId { get; set; } | ||
public string Token { get; set; } | ||
public string RedirectUrl { get; set; } | ||
public Challenge Challenge { get; set; } | ||
} | ||
|
||
public class RegistrationRequest | ||
{ | ||
public string SubjectId { get; set; } | ||
public string SubjectName { get; set; } | ||
public string ResourceId { get; set; } | ||
} | ||
|
||
public class Challenge | ||
{ | ||
public string GamespaceId { get; set; } | ||
public ICollection<Question> Questions { get; set; } | ||
} | ||
|
||
public class Question | ||
{ | ||
public string Text { get; set; } | ||
public string Hint { get; set; } | ||
public string Answer { get; set; } | ||
public float Points { get; set; } | ||
public bool IsCorrect => Points > 0; | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.