using BO.BO;
|
|
using Forks.JsonRpc.Client;
|
|
using Forks.JsonRpc.Client.Data;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace BO.Utils
|
|
{
|
|
public static class BaseInfoRpcUtil
|
|
{
|
|
//public static List<BaseInfoEntity> GetBaseInfoEntity(string rpcName)
|
|
//{
|
|
// var list = RpcFacade.Call<List<RpcObject>>(string.Format("/MainSystem/B3ClientService/Rpcs/BaseInfoRpc/{0}", rpcName));
|
|
// var result = new List<BaseInfoEntity>();
|
|
// foreach (RpcObject o in list)
|
|
// {
|
|
// var entity = new BaseInfoEntity();
|
|
// entity.ID = o.Get<long>("ID");
|
|
// entity.Name = o.Get<string>("Name");
|
|
// entity.Spell = o.Get<string>("Spell");
|
|
// result.Add(entity);
|
|
// }
|
|
// return result;
|
|
//}
|
|
}
|
|
}
|