Files
BeWoPlaner/Service/ServiceImplementations/OperationsEnhancedServiceImp.cs
2025-03-19 16:30:27 +01:00

58 lines
1.2 KiB
C#

using BeWo.Service.ServiceContracts;
using BeWo.Service.ServiceProxy;
using BS.Shared.DataContracts;
using System;
using System.Collections.Generic;
using System.Linq;
using System.ServiceModel;
using System.Text;
using System.Threading.Tasks;
namespace BeWo.Service.ServiceImplementations
{
[ServiceBehavior(InstanceContextMode = InstanceContextMode.PerCall, ConcurrencyMode = ConcurrencyMode.Single)]
public class OperationsEnhancedServiceImp : IOperationsEnhancedService
{
public object Method1(object input, object input2)
{
if(input is int i)
{
if(i == 1)
{
return new AiSettingDC();
}
if(i == 2)
{
return new List<AiConversationDC>();
}
if (i == 3)
{
return ServiceFacade.MikePHPScriptFacade.GetAiModelle();
}
}
throw new NotImplementedException();
}
public object Method2(object input, object input2)
{
throw new NotImplementedException();
}
public object Method3(object input, object input2)
{
throw new NotImplementedException();
}
public object Method4(object input, object input2)
{
throw new NotImplementedException();
}
public List<AiModelDC> GetAiModels()
{
return ServiceFacade.MikePHPScriptFacade.GetAiModelle();
}
}
}