Class PayoutDefinition
Definition of a purchase payout
Namespace: UnityEngine.Purchasing
Syntax
public class PayoutDefinition : object
Constructors
PayoutDefinition()
Default constructor
Declaration
public PayoutDefinition()
PayoutDefinition(String, Double)
Parametrized constructor
Declaration
public PayoutDefinition(string subtype, double quantity)
Parameters
Type | Name | Description |
---|---|---|
String | subtype | The payout subtype. |
Double | quantity | The payout quantity. |
PayoutDefinition(String, Double, String)
Parametrized constructor
Declaration
public PayoutDefinition(string subtype, double quantity, string data)
Parameters
Type | Name | Description |
---|---|---|
String | subtype | The payout subtype. |
Double | quantity | The payout quantity. |
String | data | The payout data. |
PayoutDefinition(String, String, Double)
Parametrized constructor
Declaration
public PayoutDefinition(string typeString, string subtype, double quantity)
Parameters
Type | Name | Description |
---|---|---|
String | typeString | The payout type, as a string. |
String | subtype | The payout subtype. |
Double | quantity | The payout quantity. |
PayoutDefinition(String, String, Double, String)
Parametrized constructor
Declaration
public PayoutDefinition(string typeString, string subtype, double quantity, string data)
Parameters
Type | Name | Description |
---|---|---|
String | typeString | The payout type, as a string. |
String | subtype | The payout subtype. |
Double | quantity | The payout quantity. |
String | data | The payout data. |
PayoutDefinition(PayoutType, String, Double)
Parametrized constructor
Declaration
public PayoutDefinition(PayoutType type, string subtype, double quantity)
Parameters
Type | Name | Description |
---|---|---|
PayoutType | type | The payout type. |
String | subtype | The payout subtype. |
Double | quantity | The payout quantity. |
PayoutDefinition(PayoutType, String, Double, String)
Parametrized constructor
Declaration
public PayoutDefinition(PayoutType type, string subtype, double quantity, string data)
Parameters
Type | Name | Description |
---|---|---|
PayoutType | type | The payout type. |
String | subtype | The payout subtype. |
Double | quantity | The payout quantity. |
String | data | The payout data. |
Fields
MaxDataLength
Maximum number of bytes of the payout data
Declaration
public const int MaxDataLength = null
Field Value
Type | Description |
---|---|
Int32 |
MaxSubtypeLength
Maximum string length of the payout subtype
Declaration
public const int MaxSubtypeLength = null
Field Value
Type | Description |
---|---|
Int32 |
Properties
data
Payload data of the payout
Declaration
public string data { get; }
Property Value
Type | Description |
---|---|
String |
quantity
Quantity or value of the payout
Declaration
public double quantity { get; }
Property Value
Type | Description |
---|---|
Double |
subtype
Subtype of the payout
Declaration
public string subtype { get; }
Property Value
Type | Description |
---|---|
String |
type
Type of the payout
Declaration
public PayoutType type { get; }
Property Value
Type | Description |
---|---|
PayoutType |
typeString
Type of the payout as a string
Declaration
public string typeString { get; }
Property Value
Type | Description |
---|---|
String |