using System.Collections.Generic;
using System.Linq;
using System.Runtime.CompilerServices;

using Sers.SersLoader;
using Vit.Core.Util.ComponentModel.Api;

namespace Sers.Core.Module.LocalApi.MsTest.LocalApi.Controllers
{
    [SsStationName("Test")]
    public class DemoController : IApiController
    {

        public class Arg
        {
            public string name { get; set; }
        }

        [MethodImpl(MethodImplOptions.AggressiveInlining)]
        [SsRoute("/a")]
        public void A()
        {    
        }

        [SsRoute("api/GetDeviceGuidList")]
        public string GetDeviceGuidList(string arg)
        {
            return arg+ "Test";
        }


        public class GetListArg
        {
            public string[] arr;
        }

        [SsRoute("api/getList")]
        public List<string> GetList(GetListArg arg)
        {
            var ret = from i in arg.arr select i + "_1";
            return ret.ToList();
        }


    }
}
