Table of Contents

Class ResourceFilter

Namespace
XENBIT.ResQueServe.Core.Models
Assembly
RQS.Core.dll
public record ResourceFilter : IResourceFilter, IEquatable<ResourceFilter>
Inheritance
ResourceFilter
Implements
Inherited Members
Extension Methods

Constructors

ResourceFilter()

public ResourceFilter()

ResourceFilter(ResourceFilter)

protected ResourceFilter(ResourceFilter original)

Parameters

original ResourceFilter

Properties

EqualityContract

protected virtual Type EqualityContract { get; }

Property Value

Type

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

IEnumerable<UnitAvailability>

UnitCategories

Gets or sets a collection of UnitCategory to filter resources by unit categories.

public IEnumerable<UnitCategory>? UnitCategories { get; set; }

Property Value

IEnumerable<UnitCategory>

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

IEnumerable<UnitCategoryGroup>

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

IEnumerable<string>

UnitEquipments

Gets or sets a collection of UnitEquipment to filter resources based on equipment types.

public IEnumerable<UnitEquipment>? UnitEquipments { get; set; }

Property Value

IEnumerable<UnitEquipment>

UnitStatus

Gets or sets a collection of UnitStatus to filter resources by their current status.

public IEnumerable<UnitStatus>? UnitStatus { get; set; }

Property Value

IEnumerable<UnitStatus>

Methods

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object

Returns

bool

Equals(ResourceFilter?)

public virtual bool Equals(ResourceFilter? other)

Parameters

other ResourceFilter

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

PrintMembers(StringBuilder)

protected virtual bool PrintMembers(StringBuilder builder)

Parameters

builder StringBuilder

Returns

bool

ToString()

public override string ToString()

Returns

string

Operators

operator ==(ResourceFilter?, ResourceFilter?)

public static bool operator ==(ResourceFilter? left, ResourceFilter? right)

Parameters

left ResourceFilter
right ResourceFilter

Returns

bool

operator !=(ResourceFilter?, ResourceFilter?)

public static bool operator !=(ResourceFilter? left, ResourceFilter? right)

Parameters

left ResourceFilter
right ResourceFilter

Returns

bool