Пример #1
0
        /// <summary>
        /// Handle this event, everytime a student response to the survey
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void SurveyRequest_ResponseReceived(object sender, SurveyResponseBto e)
        {
            SurveyStudentResponseBto oneResponse = new SurveyStudentResponseBto()
            {
                Answer = e.Answer.Trim()
            };

            if (InvokeRequired)
            {
                Invoke(_delUpdateUI, oneResponse);
            }
            else
            {
                updateAnswerDashBoard(oneResponse);
            }
        }
Пример #2
0
 /// <summary>
 /// Students uses this method to respond to survey requests
 /// </summary>
 /// <param name="responseBto"></param>
 public void SendSurveyResponse(SurveyResponseBto responseBto)
 {
     //Teacher App constantly monitory for this method for all the survey answers
     Clients.All.publishSurveyAnswer(responseBto);
 }
 protected virtual void OnSurveyResponseReceived(SurveyResponseBto survey) => ResponseReceived?.Invoke(this, survey);
Пример #4
0
        public async Task <bool> SendAsync(SurveyResponseBto responseBto)
        {
            await _hub.Invoke("SendSurveyResponse", responseBto);

            return(true);
        }