Class AssessmentHandler
Inherited Members
Namespace: Appearition.Assessment
Assembly: Appearition.SDK.dll
Syntax
public class AssessmentHandler : BaseHandler
Methods
View SourceGetAssessments(Action<List<Assessment>>, Action<EmsError>, Action<Boolean>)
Fetches all available assessments.
Offline Capability.
Declaration
public static void GetAssessments(Action<List<Assessment>> onSuccess = null, Action<EmsError> onFailure = null, Action<bool> onComplete = null)
Parameters
Type | Name | Description |
---|---|---|
System.Action<System.Collections.Generic.List<Assessment>> | onSuccess | Contains the Assessment Data as on the EMS. Only called if the request is successful. |
System.Action<EmsError> | onFailure | Contains any error obtained during the request. Only called if the request has failed. |
System.Action<System.Boolean> | onComplete | Always called at the end of the request, defines whether the request was successful or not. |
GetAssessments(Int32, Action<List<Assessment>>, Action<EmsError>, Action<Boolean>)
Fetches all available assessments.
Offline Capability.
Declaration
public static void GetAssessments(int channelId, Action<List<Assessment>> onSuccess = null, Action<EmsError> onFailure = null, Action<bool> onComplete = null)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | channelId | The id of the targeted channel. |
System.Action<System.Collections.Generic.List<Assessment>> | onSuccess | Contains the Assessment Data as on the EMS. Only called if the request is successful. |
System.Action<EmsError> | onFailure | Contains any error obtained during the request. Only called if the request has failed. |
System.Action<System.Boolean> | onComplete | Always called at the end of the request, defines whether the request was successful or not. |
GetAssessmentsProcess(Action<List<Assessment>>, Action<EmsError>, Action<Boolean>)
Fetches all available assessments.
Offline Capability.
Declaration
public static IEnumerator GetAssessmentsProcess(Action<List<Assessment>> onSuccess = null, Action<EmsError> onFailure = null, Action<bool> onComplete = null)
Parameters
Type | Name | Description |
---|---|---|
System.Action<System.Collections.Generic.List<Assessment>> | onSuccess | Contains the Assessment Data as on the EMS. Only called if the request is successful. |
System.Action<EmsError> | onFailure | Contains any error obtained during the request. Only called if the request has failed. |
System.Action<System.Boolean> | onComplete | Always called at the end of the request, defines whether the request was successful or not. |
Returns
Type | Description |
---|---|
System.Collections.IEnumerator |
GetAssessmentsProcess(Int32, Action<List<Assessment>>, Action<EmsError>, Action<Boolean>)
Fetches all available assessments.
Offline Capability.
Declaration
public static IEnumerator GetAssessmentsProcess(int channelId, Action<List<Assessment>> onSuccess = null, Action<EmsError> onFailure = null, Action<bool> onComplete = null)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | channelId | The id of the targeted channel. |
System.Action<System.Collections.Generic.List<Assessment>> | onSuccess | Contains the Assessment Data as on the EMS. Only called if the request is successful. |
System.Action<EmsError> | onFailure | Contains any error obtained during the request. Only called if the request has failed. |
System.Action<System.Boolean> | onComplete | Always called at the end of the request, defines whether the request was successful or not. |
Returns
Type | Description |
---|---|
System.Collections.IEnumerator |
SubmitAssessment(AssessmentSubmissionData, Action, Action<EmsError>, Action<Boolean>)
Submits a completed assessment.
Declaration
public static void SubmitAssessment(AssessmentSubmissionData assessment, Action onSuccess = null, Action<EmsError> onFailure = null, Action<bool> onComplete = null)
Parameters
Type | Name | Description |
---|---|---|
AssessmentSubmissionData | assessment | |
System.Action | onSuccess | Contains the Assessment Data as on the EMS. Only called if the request is successful. |
System.Action<EmsError> | onFailure | Contains any error obtained during the request. Only called if the request has failed. |
System.Action<System.Boolean> | onComplete | Always called at the end of the request, defines whether the request was successful or not. |
SubmitAssessment(Int32, AssessmentSubmissionData, Action, Action<EmsError>, Action<Boolean>)
Submits a completed assessment.
Declaration
public static void SubmitAssessment(int channelId, AssessmentSubmissionData assessment, Action onSuccess = null, Action<EmsError> onFailure = null, Action<bool> onComplete = null)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | channelId | The id of the targeted channel. |
AssessmentSubmissionData | assessment | |
System.Action | onSuccess | Contains the Assessment Data as on the EMS. Only called if the request is successful. |
System.Action<EmsError> | onFailure | Contains any error obtained during the request. Only called if the request has failed. |
System.Action<System.Boolean> | onComplete | Always called at the end of the request, defines whether the request was successful or not. |
SubmitAssessmentProcess(AssessmentSubmissionData, Action, Action<EmsError>, Action<Boolean>)
Submits a completed assessment.
Declaration
public static IEnumerator SubmitAssessmentProcess(AssessmentSubmissionData assessment, Action onSuccess = null, Action<EmsError> onFailure = null, Action<bool> onComplete = null)
Parameters
Type | Name | Description |
---|---|---|
AssessmentSubmissionData | assessment | |
System.Action | onSuccess | Contains the Assessment Data as on the EMS. Only called if the request is successful. |
System.Action<EmsError> | onFailure | Contains any error obtained during the request. Only called if the request has failed. |
System.Action<System.Boolean> | onComplete | Always called at the end of the request, defines whether the request was successful or not. |
Returns
Type | Description |
---|---|
System.Collections.IEnumerator |
SubmitAssessmentProcess(Int32, AssessmentSubmissionData, Action, Action<EmsError>, Action<Boolean>)
Submits a completed assessment.
Declaration
public static IEnumerator SubmitAssessmentProcess(int channelId, AssessmentSubmissionData assessment, Action onSuccess = null, Action<EmsError> onFailure = null, Action<bool> onComplete = null)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | channelId | The id of the targeted channel. |
AssessmentSubmissionData | assessment | |
System.Action | onSuccess | Contains the Assessment Data as on the EMS. Only called if the request is successful. |
System.Action<EmsError> | onFailure | Contains any error obtained during the request. Only called if the request has failed. |
System.Action<System.Boolean> | onComplete | Always called at the end of the request, defines whether the request was successful or not. |
Returns
Type | Description |
---|---|
System.Collections.IEnumerator |