Class ResourceFilter
public record ResourceFilter : IResourceFilter, IEquatable<ResourceFilter>
- Inheritance
-
ResourceFilter
- Implements
- Inherited Members
- Extension Methods
Constructors
ResourceFilter()
public ResourceFilter()
ResourceFilter(ResourceFilter)
protected ResourceFilter(ResourceFilter original)
Parameters
originalResourceFilter
Properties
EqualityContract
protected virtual Type EqualityContract { get; }
Property Value
IsBindToOperation
Gets or sets a value indicating whether the filter should bind the resource to the current operation.
public bool? IsBindToOperation { get; set; }
Property Value
- bool?
IsFirstResponder
Gets or sets a value indicating whether the filter should prioritize first responders.
public bool? IsFirstResponder { get; set; }
Property Value
- bool?
IsNotVolunteer
Gets or sets a value indicating whether the filter excludes volunteer units.
public bool? IsNotVolunteer { get; set; }
Property Value
- bool?
UnitAvailabilities
Gets or sets a collection of UnitAvailability to filter resources by how soon they are available (any of them matches).
public IEnumerable<UnitAvailability>? UnitAvailabilities { get; set; }
Property Value
UnitCategories
Gets or sets a collection of UnitCategory to filter resources by unit categories.
public IEnumerable<UnitCategory>? UnitCategories { get; set; }
Property Value
UnitCategoryGroups
Gets or sets a collection of UnitCategoryGroup to filter resources by the kind of unit (any of the groups matches).
public IEnumerable<UnitCategoryGroup>? UnitCategoryGroups { get; set; }
Property Value
UnitDisplayCategories
Gets or sets a collection of string to filter resources by unit display categories see CategoryOverride.
public IEnumerable<string>? UnitDisplayCategories { get; set; }
Property Value
UnitEquipments
Gets or sets a collection of UnitEquipment to filter resources based on equipment types.
public IEnumerable<UnitEquipment>? UnitEquipments { get; set; }
Property Value
UnitStatus
Gets or sets a collection of UnitStatus to filter resources by their current status.
public IEnumerable<UnitStatus>? UnitStatus { get; set; }
Property Value
Methods
Equals(object?)
public override bool Equals(object? obj)
Parameters
objobject
Returns
Equals(ResourceFilter?)
public virtual bool Equals(ResourceFilter? other)
Parameters
otherResourceFilter
Returns
GetHashCode()
public override int GetHashCode()
Returns
PrintMembers(StringBuilder)
protected virtual bool PrintMembers(StringBuilder builder)
Parameters
builderStringBuilder
Returns
ToString()
public override string ToString()
Returns
Operators
operator ==(ResourceFilter?, ResourceFilter?)
public static bool operator ==(ResourceFilter? left, ResourceFilter? right)
Parameters
leftResourceFilterrightResourceFilter
Returns
operator !=(ResourceFilter?, ResourceFilter?)
public static bool operator !=(ResourceFilter? left, ResourceFilter? right)
Parameters
leftResourceFilterrightResourceFilter