Exemple #1
0
 public void SetMachineInformation(MachineInformationEntity entity)
 {
     m_machineName.text      = string.Format(entity.Name);
     m_machineCategory.text  = string.Format(entity.Category);
     m_machineStatus.text    = string.Format(entity.CurrentStatus);
     m_machineStartDate.text = string.Format(entity.StartDate);
 }
    /// <summary>
    /// Identifierの検索を行う処理を呼び出す
    /// </summary>
    public IEnumerator CallLoadFunctions(string bodyString)
    {
        Debug.Log("CallLoadFunctions Start:" + bodyString);
        MachineInformationEntity machineinformationentity = null;

        UnityWebRequest request = new UnityWebRequest(LoadFunctionsEndpoint + "?InfoKey=" + bodyString, "GET");

        request.downloadHandler = (DownloadHandler) new DownloadHandlerBuffer();
        yield return(request.SendWebRequest());

        string Response = request.downloadHandler.text;

        machineinformationentity = JsonConvert.DeserializeObject <MachineInformationEntity>(Response);
        Debug.Log("CallLoadFunctions Status Code: " + request.responseCode);
        Debug.Log("Load MachineInformation: " + Response);
        Debug.Log("CallLoadFunctions End");
        MachineInformation1Management.Instance.SetMachineInformation(machineinformationentity);
    }