//------------------------------------------------------------------------------
//
// 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 Bright.Serialization;
using System.Collections.Generic;
using SimpleJSON;
namespace cfg
{
public sealed partial class TbEventPartnerConfig
{
private readonly EventPartnerConfig _data;
public TbEventPartnerConfig(JSONNode _json)
{
if(!_json.IsArray)
{
throw new SerializationException();
}
if (_json.Count != 1) throw new SerializationException("table mode=one, but size != 1");
_data = EventPartnerConfig.DeserializeEventPartnerConfig(_json[0]);
PostInit();
}
///
/// 机器人接受邀请概率
///
public float RobotAcceptProb => _data.RobotAcceptProb;
///
/// 机器人接受邀请时间(单位:秒)
///
public System.Collections.Generic.List RobotAcceptTime => _data.RobotAcceptTime;
///
/// 机器人同意时间(单位:秒)
///
public System.Collections.Generic.List RobotAgreeTime => _data.RobotAgreeTime;
///
/// 加的分必须是配置值的整数倍
///
public int RobotPointsMultiple => _data.RobotPointsMultiple;
///
/// 匹配成功后,等待X秒默认接受
///
public int MatchAgreeTime => _data.MatchAgreeTime;
///
/// 活跃好友数量
///
public System.Collections.Generic.List FriendRecommendParam1 => _data.FriendRecommendParam1;
///
/// 推荐伙伴数量
///
public System.Collections.Generic.List FriendRecommendParam2 => _data.FriendRecommendParam2;
///
/// 推荐伙伴列表刷新时间(单位:秒)
///
public int FriendRecommendListRefreshTime => _data.FriendRecommendListRefreshTime;
///
/// 用户发出N次邀请后,开始推荐机器人
///
public int RobotRecommendTriggerCount => _data.RobotRecommendTriggerCount;
///
/// 机器人占推荐列表的比例
///
public float RobotRecommendCount => _data.RobotRecommendCount;
///
/// 机器人单日活跃时间段(单位:秒)
///
public System.Collections.Generic.List RobotDailyActiveTimeWindow => _data.RobotDailyActiveTimeWindow;
///
/// 机器人单次集中加分时间段(单位:秒)
///
public System.Collections.Generic.List RobotSingleAddPointsTimeWindow => _data.RobotSingleAddPointsTimeWindow;
///
/// 机器人单次加分,分几次完成
///
public System.Collections.Generic.List RobotSingleAddPointsOperations => _data.RobotSingleAddPointsOperations;
///
/// 机器人每24小时最多激活几次
///
public int RobotMaxActivationCountPer24h => _data.RobotMaxActivationCountPer24h;
public void Resolve(Dictionary _tables)
{
_data.Resolve(_tables);
PostResolve();
}
public void TranslateText(System.Func translator)
{
_data.TranslateText(translator);
}
partial void PostInit();
partial void PostResolve();
}
}