/// <summary> /// Initializes a new instance of the <see cref="IGoalScorerV1"/> class /// </summary> /// <param name="data">The <see cref="EventPlayerCI"/> data</param> public GoalScorer(EventPlayerCI data) : base(data.Id, data.Name as IReadOnlyDictionary <CultureInfo, string>) { Guard.Argument(data, nameof(data)).NotNull(); Method = data.Method; }
/// <summary> /// Initializes a new instance of the <see cref="IEventPlayer"/> class /// </summary> /// <param name="data">The <see cref="EventPlayerCI"/> data</param> public EventPlayer(EventPlayerCI data) : base(data.Id, data.Name as IReadOnlyDictionary <CultureInfo, string>) { Guard.Argument(data, nameof(data)).NotNull(); Bench = data.Bench; }