/// <summary> /// Creates the Location to be set for the Aid Request /// </summary> /// <param name="add">Address object</param> /// <param name="cross">(Optional) AddressCrossStreet Object</param> /// <param name="grid">(Optional) AddressGrid</param> /// <param name="mgrs">(Optional) MGRS Coordinate</param> /// <param name="utm">(Optional) UTM Coordinate</param> /// <param name="ar">(Optional) Area Region</param> /// <param name="intersect">(Optional) Intersection Boolean</param> public void SetLocation(Address add, AddressCrossStreet cross = null, AddressGrid grid = null, MGRSCoordinate mgrs = null, UTMCoordinate utm = null, AreaRegion ar = null, bool?intersect = null) { LocationExtension e = null; if (intersect != null) { e = new LocationExtension(add, cross, grid, mgrs, utm, ar, (bool)intersect); } else { e = new LocationExtension(add, cross, grid, mgrs, utm, ar, false); } SetLocation(e); }
/// <summary> /// Initializes a new instance of the AidRequested class /// </summary> /// <param name="resources">List of resources being requested</param> /// <param name="loc">(Optional) The Location Extension</param> public AidRequested(List <RequestResourceKind> resources, LocationExtension loc = null) { Resources = (resources != null) ? resources : new List <RequestResourceKind>(); Location = loc; }
/// <summary> /// Sets the Location for this Aid Request /// </summary> /// <param name="le">The Location Extension</param> public void SetLocation(LocationExtension le) { Location = le; }