Example #1
0
 public CarModel(TelemetryDataModel telemetry, int carIdx)
 {
     this.telemetry = telemetry;
     this.carIdx    = carIdx;
     this.driver    = telemetry.SessionData.DriverInfo.CompetingDrivers[carIdx];
     this.Details   = new CarDetailsModel(telemetry, carIdx);
 }
 public LeaderboardModel(ResultsPositionsModel result, DriverModel driver)
 {
     CarIdx = driver.CarIdx;
     UserID = driver.UserID;
     UserName = driver.UserName;
     CarNumber = driver.CarNumber;
     IRating = driver.IRating;
     LicString = driver.LicString;
     LicColor = driver.LicColor;
     Position = result.Position;
     ClassPosition = result.ClassPosition;
     CarClassColor = driver.CarClassColor;
     CarScreenName = driver.CarScreenName;
     ClubName = driver.ClubName;
     DivisionName = driver.DivisionName;
     CarScreenNameShort = driver.CarScreenNameShort;
     CarClassShortName = driver.CarClassShortName;
     Time = result.Time;
     FastestLap = result.FastestLap;
     FastestTime = result.FastestTime;
     LastTime = result.LastTime;
     LapsLed = result.LapsLed;
     LapsComplete = result.LapsComplete;
     LapsDriven = result.LapsDriven;
     Incidents = result.Incidents;
     ReasonOutId = result.ReasonOutId;
     ReasonOutStr = result.ReasonOutStr;
     Lap = result.Lap;
     Time = result.Time;
 }
Example #3
0
 public LeaderboardModel(ResultsPositionsModel result, DriverModel driver)
 {
     CarIdx             = driver.CarIdx;
     UserID             = driver.UserID;
     UserName           = driver.UserName;
     CarNumber          = driver.CarNumber;
     IRating            = driver.IRating;
     LicString          = driver.LicString;
     LicColor           = driver.LicColor;
     Position           = result.Position;
     ClassPosition      = result.ClassPosition;
     CarClassColor      = driver.CarClassColor;
     CarScreenName      = driver.CarScreenName;
     ClubName           = driver.ClubName;
     DivisionName       = driver.DivisionName;
     CarScreenNameShort = driver.CarScreenNameShort;
     CarClassShortName  = driver.CarClassShortName;
     Time         = result.Time;
     FastestLap   = result.FastestLap;
     FastestTime  = result.FastestTime;
     LastTime     = result.LastTime;
     LapsLed      = result.LapsLed;
     LapsComplete = result.LapsComplete;
     LapsDriven   = result.LapsDriven;
     Incidents    = result.Incidents;
     ReasonOutId  = result.ReasonOutId;
     ReasonOutStr = result.ReasonOutStr;
     Lap          = result.Lap;
     Time         = result.Time;
 }
 public CarModel(TelemetryDataModel telemetry, int carIdx)
 {
     this.telemetry = telemetry;
     this.carIdx = carIdx;
     this.driver = telemetry.SessionData.DriverInfo.CompetingDrivers[carIdx];
     this.Details = new CarDetailsModel(telemetry, carIdx);
 }