Пример #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());
 }