Class PayoutDefinition
Definition of a purchase payout
Inherited Members
Namespace: UnityEngine .Purchasing
Assembly: solution.dll
Syntax
[Serializable]
public class PayoutDefinition
Constructors
PayoutDefinition()
Default constructor
Declaration
public PayoutDefinition()
PayoutDefinition(string, double)
Parametrized constructor
Declaration
public PayoutDefinition(string subtype, double quantity)
Parameters
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 |
---|---|---|
Payout |
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 |
---|---|---|
Payout |
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 = 1024
Field Value
Type | Description |
---|---|
int |
MaxSubtypeLength
Maximum string length of the payout subtype
Declaration
public const int MaxSubtypeLength = 64
Field Value
Type | Description |
---|---|
int |
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 |
---|---|
Payout |
typeString
Type of the payout as a string
Declaration
public string typeString { get; }
Property Value
Type | Description |
---|---|
string |