public ProjectCarsStateData(pCarsDataClass projectCarsData) { CarName = projectCarsData.CarName; TrackLocation = projectCarsData.TrackLocation; TrackVariant = projectCarsData.TrackVariant; LastLapTime = projectCarsData.LastLapTime; LapInvalidated = projectCarsData.LapInvalidated; GameState = projectCarsData.GameState; SessionState = projectCarsData.SessionState; RaceState = projectCarsData.RaceState; }
public ProjectCarsDataModel() { GameData = new pCarsDataClass(); }
public ChallengeResult(pCarsDataClass projectCarsData) { TrackLocationAndVariant = projectCarsData.TrackLocation + " " + projectCarsData.TrackVariant; CarName = projectCarsData.CarName; LastValidLapTime = TimeSpan.FromSeconds(projectCarsData.LastLapTime);; }