예제 #1
0
        private void SendAnswerInternal(Answer answer)
        {
            Dictionary<string, string> answerDictionary = answer.AsDictionary();
            answerDictionary["uid"] = FileName.UID.ToString();

            SendRequest(((int)Status.ANSWER).ToString(), converter.ToJson(answerDictionary));
        }
예제 #2
0
 public void SendAnswer(Answer answer)
 {
     Thread sendAnswerThread = new Thread(() => SendAnswerInternal(answer));
     sendAnswerThread.Start();
 }
예제 #3
0
 public string ToJson(Answer answer)
 {
     return JsonConvert.SerializeObject(answer.AsDictionary());
 }