C# Class TrainNotifier.Service.ScheduleRepository

Inheritance: DbRepository
Datei anzeigen Open project: blueghostuk/trainnotifier-server Class Usage Examples

Public Methods

Method Description
DeleteSchedule ( ScheduleTrain train ) : void
GetScheduleDetails ( string trainUid ) : IEnumerable
GetStopsById ( System.Guid scheduleId ) : IEnumerable

Get stops for a schedule

InsertSchedule ( ScheduleTrain train, ScheduleSource source = ScheduleSource.CIF ) : void
InsertScheduleStops ( System.Guid scheduleId, IEnumerable stops ) : void

Method Details

DeleteSchedule() public method

public DeleteSchedule ( ScheduleTrain train ) : void
train TrainNotifier.Common.Model.Schedule.ScheduleTrain
return void

GetScheduleDetails() public method

public GetScheduleDetails ( string trainUid ) : IEnumerable
trainUid string
return IEnumerable

GetStopsById() public method

Get stops for a schedule
public GetStopsById ( System.Guid scheduleId ) : IEnumerable
scheduleId System.Guid schedule id
return IEnumerable

InsertSchedule() public method

public InsertSchedule ( ScheduleTrain train, ScheduleSource source = ScheduleSource.CIF ) : void
train TrainNotifier.Common.Model.Schedule.ScheduleTrain
source ScheduleSource
return void

InsertScheduleStops() public method

public InsertScheduleStops ( System.Guid scheduleId, IEnumerable stops ) : void
scheduleId System.Guid
stops IEnumerable
return void