C# Class Stumps.Server.RuleContract

A class that represents a contract for a rule.
Show file Open project: Cayan-LLC/stumps Class Usage Examples

Public Methods

Method Description
AppendRuleSetting ( RuleSetting setting ) : void

Appends a T:Stumps.RuleSetting to the contract.

GetRuleSettings ( ) : RuleSetting[]

Gets an array of the T:Stumps.RuleSetting objects for the contract.

RuleContract ( ) : System.Collections.Generic

Initializes a new instance of the T:Stumps.Server.RuleContract class.

RuleContract ( IStumpRule rule ) : System.Collections.Generic

Initializes a new instance of the T:Stumps.Server.RuleContract class.

Method Details

AppendRuleSetting() public method

Appends a T:Stumps.RuleSetting to the contract.
public AppendRuleSetting ( RuleSetting setting ) : void
setting RuleSetting The to add to the contract.
return void

GetRuleSettings() public method

Gets an array of the T:Stumps.RuleSetting objects for the contract.
public GetRuleSettings ( ) : RuleSetting[]
return RuleSetting[]

RuleContract() public method

Initializes a new instance of the T:Stumps.Server.RuleContract class.
public RuleContract ( ) : System.Collections.Generic
return System.Collections.Generic

RuleContract() public method

Initializes a new instance of the T:Stumps.Server.RuleContract class.
public RuleContract ( IStumpRule rule ) : System.Collections.Generic
rule IStumpRule The used to create the instance.
return System.Collections.Generic