using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using ServerCommon; using ServerCommon.BusinessLogDomain; namespace GameServer { static public class UserReportBusinessLogHelper { static public UserReportLogData toLogInfo(UserReportAttrib user_report_attrib) { var userReport = new UserReportLogData(); userReport.setInfo(user_report_attrib); return userReport; } static public void setInfo(this UserReportLogData logData, UserReportAttrib user_report_attrib) { logData.ReporterGuid = user_report_attrib.ReporterGuid; logData.ReporterNickName = user_report_attrib.ReporterNickName; logData.TargetGuid = user_report_attrib.TargetGuid; logData.TargetNickName = user_report_attrib.TargetNickName; logData.Reason = user_report_attrib.Reason; logData.Title = user_report_attrib.Title; logData.Detail = user_report_attrib.Detail; logData.State = user_report_attrib.State; logData.CreateTime = user_report_attrib.CreateTime; } } }