Set all Route Info parameters from the Route struct

This commit is contained in:
Oliver Jakoubek 2020-06-28 19:50:13 +02:00
parent 5387d9b9ae
commit dc9728eb06

View file

@ -32,6 +32,18 @@ func (r *Route) GetRouteListEntry() *RouteListEntry {
func (r *Route) GetRouteMessage() string { func (r *Route) GetRouteMessage() string {
ri := NewRouteInfo() ri := NewRouteInfo()
ri.SetRouteName(r.routeName) ri.SetRouteName(r.routeName)
ri.SetLimit(r.limit)
ri.SetMaxStack(r.maxStack)
ri.SetStandard(r.standard)
ri.SetParameterN(r.parameterN)
ri.SetMaxBundle(r.maxBundle)
ri.SetParameterSz(r.parameterSz)
ri.SetTopsheetMarker(r.topsheetMarker)
ri.SetEaMarker(r.eaMarker)
ri.SetEaAddressDefinition(r.eaAddressDefinition)
ri.SetTopsheetTemplateDirectory(r.topsheetTemplateDirectory)
ri.SetEditionName(r.editionName)
ri.SetProductReferenceNumber(r.productReferenceNumber)
info := ri.Message() info := ri.Message()
for _, pd := range r.ProductionDrops { for _, pd := range r.ProductionDrops {