35 lines
726 B
C#
35 lines
726 B
C#
using BS.Shared.Core;
|
|
using BS.Shared.DataContracts;
|
|
using DevExpress.DataAccess.Native.EntityFramework;
|
|
using Newtonsoft.Json;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Net;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace BeWo.Service.ServiceProxy
|
|
{
|
|
public class MikePHPScriptFacade : WebClientFacade
|
|
{
|
|
public List<AiModelDC> GetAiModelle()
|
|
{
|
|
var url = "https://ai1.ownsoft.de/osaimodels.php?show";
|
|
var dictList = SendGet<List<Dictionary<string, int>>>(url);
|
|
|
|
var rtn = new List<AiModelDC>();
|
|
|
|
foreach (var item in dictList)
|
|
{
|
|
foreach (var kvp in item)
|
|
{
|
|
rtn.Add(new AiModelDC(kvp.Key, kvp.Value));
|
|
}
|
|
}
|
|
|
|
return rtn;
|
|
}
|
|
}
|
|
}
|