internal ApiObject(Track track, Sector sector, Tram tram) { TrackType = (int)track.Type; TrackNumber = track.Number; SectorNumber = sector.Number; Latitude = sector.Latitude; Longitude = sector.Longitude; if (tram != null) { Tram = new ApiTram(tram.Number, tram.Line); } }
public void SetTram(Tram tram) { OccupyingTram = tram; }