Class AgreementStateExtensions
Extension methods for the AgreementState enum
Inheritance
System.Object
AgreementStateExtensions
Namespace: ImageVault.Common.Data
Assembly: ImageVault.Common.dll
Syntax
public static class AgreementStateExtensions : Object
Fields
SoonSpan
The timespan where Soon is defined (default 90 days)
Declaration
public static readonly TimeSpan SoonSpan
Field Value
Type | Description |
---|---|
System.TimeSpan |
Methods
AdjustByExpiration(AgreementState, Nullable<DateTime>)
Parses the supplied date and returns a AgreementState
Declaration
public static AgreementState AdjustByExpiration(this AgreementState state, Nullable<DateTime> validToDate)
Parameters
Type | Name | Description |
---|---|---|
AgreementState | state | |
System.Nullable<System.DateTime> | validToDate |
Returns
Type | Description |
---|---|
AgreementState |
AdjustByExpiration(AgreementState, Nullable<DateTimeOffset>)
Parses the supplied date and returns a AgreementState
Declaration
public static AgreementState AdjustByExpiration(this AgreementState state, Nullable<DateTimeOffset> validToDate)
Parameters
Type | Name | Description |
---|---|---|
AgreementState | state | |
System.Nullable<System.DateTimeOffset> | validToDate |
Returns
Type | Description |
---|---|
AgreementState |
GetAgreementSymbolState(AgreementState)
Gets the AgreementSymbolState for a agreement state
Declaration
public static AgreementSymbolStates GetAgreementSymbolState(this AgreementState agreementState)
Parameters
Type | Name | Description |
---|---|---|
AgreementState | agreementState |
Returns
Type | Description |
---|---|
AgreementSymbolStates |