private void SendAnswerInternal(Answer answer) { Dictionary<string, string> answerDictionary = answer.AsDictionary(); answerDictionary["uid"] = FileName.UID.ToString(); SendRequest(((int)Status.ANSWER).ToString(), converter.ToJson(answerDictionary)); }
public void SendAnswer(Answer answer) { Thread sendAnswerThread = new Thread(() => SendAnswerInternal(answer)); sendAnswerThread.Start(); }
public string ToJson(Answer answer) { return JsonConvert.SerializeObject(answer.AsDictionary()); }