// Token: 0x0600743A RID: 29754 RVA: 0x00200918 File Offset: 0x001FEB18 public bool AddNewOperationalActivity(ProOperationalActivityBasicInfo operationalActivityBasicInfo) { if (!BJLuaObjHelper.IsSkipLuaHotfix && this.TryInitHotFix("") && this.m_AddNewOperationalActivityProOperationalActivityBasicInfo_hotfix != null) { return Convert.ToBoolean(this.m_AddNewOperationalActivityProOperationalActivityBasicInfo_hotfix.call(new object[] { this, operationalActivityBasicInfo })); } BJLuaObjHelper.IsSkipLuaHotfix = false; ConfigDataOperationalActivityInfo configDataOperationalActivityInfo = this.m_configDataLoader.GetConfigDataOperationalActivityInfo(operationalActivityBasicInfo.ActivityId); if (configDataOperationalActivityInfo == null) { return false; } OperationalActivityBase operationalActivityBase = OperationalActivityFactory.CreateOperationalActivity(operationalActivityBasicInfo.InstanceId, operationalActivityBasicInfo.ActivityId, configDataOperationalActivityInfo.ActivityType); operationalActivityBase.InitOperationalActivityTime(new DateTime(operationalActivityBasicInfo.OperationStartTime), new DateTime(operationalActivityBasicInfo.OperationEndTime), new DateTime(operationalActivityBasicInfo.GainRewardEndTime), new DateTime(operationalActivityBasicInfo.OperationShowTime)); operationalActivityBase.Config = configDataOperationalActivityInfo; if (operationalActivityBase.IsExpiredOperationalActivity(this.m_basicInfo.GetCurrentTime())) { return false; } base.AddNewOperationalActivity(operationalActivityBase); return true; }
public static int InitOperationalActivityTime(IntPtr l) { int result; try { OperationalActivityBase operationalActivityBase = (OperationalActivityBase)LuaObject.checkSelf(l); DateTime operationStartTime; LuaObject.checkValueType <DateTime>(l, 2, out operationStartTime); DateTime operationEndTime; LuaObject.checkValueType <DateTime>(l, 3, out operationEndTime); DateTime gainRewardEndTime; LuaObject.checkValueType <DateTime>(l, 4, out gainRewardEndTime); DateTime operationShowTime; LuaObject.checkValueType <DateTime>(l, 5, out operationShowTime); operationalActivityBase.InitOperationalActivityTime(operationStartTime, operationEndTime, gainRewardEndTime, operationShowTime); LuaObject.pushValue(l, true); result = 1; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }
// Token: 0x0600743B RID: 29755 RVA: 0x00200A20 File Offset: 0x001FEC20 public bool AddRedeemActivity(int activityId, RedeemInfoAck info) { if (!BJLuaObjHelper.IsSkipLuaHotfix && this.TryInitHotFix("") && this.m_AddRedeemActivityInt32RedeemInfoAck_hotfix != null) { return Convert.ToBoolean(this.m_AddRedeemActivityInt32RedeemInfoAck_hotfix.call(new object[] { this, activityId, info })); } BJLuaObjHelper.IsSkipLuaHotfix = false; ConfigDataOperationalActivityInfo configDataOperationalActivityInfo = this.m_configDataLoader.GetConfigDataOperationalActivityInfo(activityId); OperationalActivityBase operationalActivityBase = new OperationalActivityBase(0UL, activityId, OperationalActivityType.OperationalActivityType_Redeem); operationalActivityBase.InitOperationalActivityTime(new DateTime(info.StartDate), new DateTime(info.EndDate), new DateTime(info.EndDate), new DateTime(info.EndDate)); operationalActivityBase.Config = configDataOperationalActivityInfo; if (operationalActivityBase.IsExpiredOperationalActivity(this.m_basicInfo.GetCurrentTime())) { return false; } base.AddNewOperationalActivity(operationalActivityBase); return true; }