Class ProgressModel
- Namespace
- InSite.Domain.CourseObjects
- Assembly
- Shift.Sdk.dll
public class ProgressModel
- Inheritance
-
ProgressModel
- Inherited Members
-
- Extension Methods
-
Constructors
ProgressModel(Course, Guid, string, Guid)
public ProgressModel(Course course, Guid user, string courseUrl, Guid page)
Parameters
course Course
user Guid
courseUrl string
page Guid
ProgressModel(Course, Guid, string, int)
public ProgressModel(Course course, Guid user, string courseUrl, int page)
Parameters
course Course
user Guid
courseUrl string
page int
Fields
_currentPageActivity
public Guid _currentPageActivity
Field Value
- Guid
_currentPageNumber
public int? _currentPageNumber
Field Value
- int?
_nextPageNumber
public int? _nextPageNumber
Field Value
- int?
_previousPageNumber
public int? _previousPageNumber
Field Value
- int?
Properties
Answers
public Dictionary<Guid, AnswerResult> Answers { get; }
Property Value
- Dictionary<Guid, AnswerResult>
Attempts
public Dictionary<Guid, AttemptResult> Attempts { get; }
Property Value
- Dictionary<Guid, AttemptResult>
Course
public Course Course { get; }
Property Value
- Course
CourseUrl
public string CourseUrl { get; }
Property Value
- string
CurrentActivity
public Activity CurrentActivity { get; }
Property Value
- Activity
CurrentActivityResult
public LearningResult CurrentActivityResult { get; }
Property Value
- LearningResult
CurrentModuleResult
public LearningResult CurrentModuleResult { get; }
Property Value
- LearningResult
CurrentPage
public int CurrentPage { get; }
Property Value
- int
CurrentPageIsValid
public bool CurrentPageIsValid { get; }
Property Value
- bool
GradeItems
public Dictionary<Guid, GradeItemResult> GradeItems { get; }
Property Value
- Dictionary<Guid, GradeItemResult>
IsCourseHidden
public bool IsCourseHidden { get; }
Property Value
- bool
NextPage
public int? NextPage { get; }
Property Value
- int?
NextPageUrl
public string NextPageUrl { get; }
Property Value
- string
PreviousPage
public int? PreviousPage { get; }
Property Value
- int?
PreviousPageUrl
public string PreviousPageUrl { get; }
Property Value
- string
Results
public Dictionary<Guid, LearningResult> Results { get; }
Property Value
- Dictionary<Guid, LearningResult>
User
public Guid User { get; }
Property Value
- Guid
Methods
ApplyProgression(ProgressInfo[], IEnumerable<AnswerState>, Guid[])
public void ApplyProgression(ProgressModel.ProgressInfo[] progresses, IEnumerable<AnswerState> answers, Guid[] userGroups)
Parameters
progresses ProgressInfo[]
answers IEnumerable<AnswerState>
userGroups Guid[]
ApplyProgression(Guid, ProgressInfo)
public void ApplyProgression(Guid activity, ProgressModel.ProgressInfo progress)
Parameters
activity Guid
progress ProgressModel.ProgressInfo
CreateCssClassForActivityRow(Guid)
public string CreateCssClassForActivityRow(Guid activityId)
Parameters
activityId Guid
Returns
- string
GetAllActivities()
public List<Activity> GetAllActivities()
Returns
- List<Activity>
GetAllModules()
public List<Module> GetAllModules()
Returns
- List<Module>
GetAllUnits()
public List<Unit> GetAllUnits()
Returns
- List<Unit>
GetAssessmentForms()
public Guid[] GetAssessmentForms()
Returns
- Guid[]
GetVisibleActivities()
public List<Activity> GetVisibleActivities()
Returns
- List<Activity>
GetVisibleModules()
public List<Module> GetVisibleModules()
Returns
- List<Module>
GetVisibleUnits()
public List<Unit> GetVisibleUnits()
Returns
- List<Unit>