// Token: 0x06001CAB RID: 7339 RVA: 0x00072A34 File Offset: 0x00070C34 public virtual void ProcessAndFormatSpeechRecognitionResults(string result, out string jsonResponse, out SpeechRecognitionProcessor.SpeechHttpStatus httpStatus) { ExTraceGlobals.SpeechRecognitionTracer.TraceDebug <string>((long)this.GetHashCode(), "Entering FindPeopleSearchRecognitionResultHandler.ProcessAndFormatSpeechRecognitionResults with results '{0}'", result); jsonResponse = null; httpStatus = SpeechRecognitionProcessor.SpeechHttpStatus.Success; List <Persona> uniquePersonaList = this.GetUniquePersonaList(result); jsonResponse = SpeechRecognitionResultHandler.JsonSerialize(uniquePersonaList.ToArray()); ExTraceGlobals.SpeechRecognitionTracer.TraceDebug <string>((long)this.GetHashCode(), "Persona array json:{0}", jsonResponse); }
public override void ProcessAndFormatSpeechRecognitionResults(string result, out string jsonResponse, out SpeechRecognitionProcessor.SpeechHttpStatus httpStatus) { ExTraceGlobals.SpeechRecognitionTracer.TraceDebug <string>((long)this.GetHashCode(), "Entering EmailPeopleSearchRecognitionResultHandler.ProcessAndFormatSpeechRecognitionResults with results '{0}'", result); jsonResponse = null; httpStatus = SpeechRecognitionProcessor.SpeechHttpStatus.Success; List <Persona> uniquePersonaList = base.GetUniquePersonaList(result); List <Persona> list = new List <Persona>(); foreach (Persona persona in uniquePersonaList) { if (persona.EmailAddresses != null && persona.EmailAddresses.Length > 0) { list.Add(persona); } } if (list.Count == 0) { httpStatus = SpeechRecognitionProcessor.SpeechHttpStatus.NoContactWithEmailAddress; return; } jsonResponse = SpeechRecognitionResultHandler.JsonSerialize(list.ToArray()); ExTraceGlobals.SpeechRecognitionTracer.TraceDebug <string>((long)this.GetHashCode(), "Persona array json:{0}", jsonResponse); }
// Token: 0x06001CA3 RID: 7331 RVA: 0x0007236F File Offset: 0x0007056F public static string JsonSerialize(object obj) { return(SpeechRecognitionResultHandler.JsonSerialize(obj)); }