Are you sure you want to report the post shown below? This will send an email to the ATVO administrators. Please include a short reason for reporting.
Users reporting for no reason may be locked out.
// If you bind to 'entity_object':
var entity = (IEntity)value;
// If you bind to 'entitysessionresult_object':
var result = (IEntitySessionResult)value;
var entity = result.Entity;
var id = entity.Id;
var name = entity.Name;
// If it's a team session:
// - id will be Team ID, name will be Team name
// If it's a single driver session:
// - id will be driver customer ID, name will be driver name
// Check if it's a team
if (entity is ITeam)
{
// Team object
var driver = entity.CurrentDriver;
var otherDrivers = entity.Drivers;
}
else
{
// Single driver
var driver = entity.CurrentDriver;
// or this is probably the same:
var driver = (IDriver)entity;
}