Constructor Price
Price(List<InputItem>, string)
Constructor for defining a price with multiple items of input.
Declaration
public Price(List<InputItem> inputItems, string name = "default")
Parameters
Type | Name | Description |
---|---|---|
List<InputItem> | inputItems | The input items for this price. |
string | name | name of this price point |
Price(InputItem, string)
Constructor for defining a price with only a single input item. Many prices will be simple like this so this constructor avoids the need of passing a whole list.
Declaration
public Price(InputItem inputItem, string name = "default")
Parameters
Type | Name | Description |
---|---|---|
InputItem | inputItem | The input of this price. |
string | name | name of this price point |
Price(Price)
Copy constructor for setting up a new Price based off on a existing one.
Declaration
public Price(Price other)
Parameters
Type | Name | Description |
---|---|---|
Price | other | The other price to base this one off of. |