//------------------------------------------------------------------------------
//
// This code was generated by a tool.
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
//
//------------------------------------------------------------------------------
using Luban;
namespace Server.Config
{
public sealed partial class RedisConfig : Luban.BeanBase
{
public RedisConfig(ByteBuf _buf)
{
Id = _buf.ReadInt();
Name = _buf.ReadString();
ConnectTimeOut = _buf.ReadInt();
Port = _buf.ReadInt();
Host = _buf.ReadString();
}
public static RedisConfig DeserializeRedisConfig(ByteBuf _buf)
{
return new RedisConfig(_buf);
}
///
/// id
///
public readonly int Id;
///
/// 名称
///
public readonly string Name;
///
/// 超时时间(单位毫秒)
///
public readonly int ConnectTimeOut;
///
/// 端口
///
public readonly int Port;
///
/// 地址
///
public readonly string Host;
public const int __ID__ = -731728771;
public override int GetTypeId() => __ID__;
public override string ToString()
{
return "{ "
+ "id:" + Id + ","
+ "name:" + Name + ","
+ "connectTimeOut:" + ConnectTimeOut + ","
+ "port:" + Port + ","
+ "host:" + Host + ","
+ "}";
}
}
}