Table of Contents

Interface IDepartureMapper

Namespace
DotVgn.Client.Mapper.Base
Assembly
DotVgn.Client.dll

Converts departure API DTOs into strongly typed departure objects.

public interface IDepartureMapper

Methods

Map(DepartureContract)

Maps a single API departure response object to a domain Departure instance.

Departure Map(DepartureResponseContract.DepartureContract source)

Parameters

source DepartureResponseContract.DepartureContract

The API departure response object to convert.

Returns

Departure

The mapped Departure.

Map(IEnumerable<DepartureContract>)

Maps a collection of DotVgn.Common.Contracts.DepartureResponseContract to a read-only list of domain Departure instances.

IReadOnlyList<Departure> Map(IEnumerable<DepartureResponseContract.DepartureContract> source)

Parameters

source IEnumerable<DepartureResponseContract.DepartureContract>

The collection of API departure response objects to convert. Cannot be null.

Returns

IReadOnlyList<Departure>

A read-only list of Departure objects representing the mapped departures. The list will be empty if the source collection contains no items.