Vehicle Tracker Extension
Vehicle.cs
// Copyright 2011 ESRI
// 
// All rights reserved under the copyright laws of the United States
// and applicable international laws, treaties, and conventions.
// 
// You may freely redistribute and use this sample code, with or
// without modification, provided you include the original copyright
// notice and use restrictions.
// 
// See the use restrictions.
// 

using ESRI.ArcGISExplorer.Mapping;

namespace VehicleTrackingExtCS
{
  /// <summary>
  /// The vehicle's update status
  /// </summary>
  public enum UpdateStatus
  {
    None,
    Update,
    Delete
  }

  /// <summary>
  /// This class describes a vehicle object displayed on the map. This is a thread
  /// safe object with the exception of the Graphic property which should only
  /// be accessed on the UI thread.
  /// </summary>
  public class Vehicle
  {
    public double X { get; set; }
    public double Y { get; set; }
    public string Status { get; set; }
    public string ID { get; set; }
    public string Speed { get; set; }
    public string Bearing { get; set; }
    public string Name { get; set; }
    public UpdateStatus GraphicUpdateStatus { get; set; }
    public Graphic MapGraphic { get; set; }
  }
}