26 lines
654 B
C#
Executable File
26 lines
654 B
C#
Executable File
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using System.Text;
|
|
using UnityEngine;
|
|
|
|
public class RequestDataModel
|
|
{
|
|
public string InputText;
|
|
|
|
public Dictionary<string, string> PossibleIntents = new Dictionary<string, string>();
|
|
|
|
public string GetRequestText()
|
|
{
|
|
StringBuilder sb = new StringBuilder();
|
|
|
|
foreach (KeyValuePair<string, string> keyValuePair in this.PossibleIntents)
|
|
{
|
|
sb.AppendLine($"Key=\"{keyValuePair.Key}\",Text=\"{keyValuePair.Value}\",");
|
|
}
|
|
|
|
sb.AppendLine($"Input=\"{this.InputText}\"");
|
|
|
|
return sb.ToString();
|
|
}
|
|
}
|