コード例 #1
0
 /// <summary>
 /// Creates and returns a <see cref="ISingleTypeMapper{T}" /> instance for schedule
 /// </summary>
 /// <param name="data">A <see cref="sportTournamentsEndpoint" /> instance which the created <see cref="ISingleTypeMapper{T}" /> will map</param>
 /// <returns>New <see cref="ISingleTypeMapper{T}" /> instance</returns>
 public ISingleTypeMapper <EntityList <TournamentInfoDTO> > CreateMapper(sportTournamentsEndpoint data)
 {
     return(new ListSportAvailableTournamentMapper(data));
 }
コード例 #2
0
        /// <summary>
        /// Initializes a new instance of the <see cref="ListSportAvailableTournamentMapper"/> class
        /// </summary>
        /// <param name="data">>A <see cref="sportTournamentsEndpoint"/> instance containing schedule info</param>
        internal ListSportAvailableTournamentMapper(sportTournamentsEndpoint data)
        {
            Guard.Argument(data, nameof(data)).NotNull();

            _data = data;
        }