docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class VirtualPurchaseResourceRequestRewardsInner

    VirtualPurchaseResourceRequestRewardsInner

    Inheritance
    object
    VirtualPurchaseResourceRequestRewardsInner
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Unity.Services.Apis.Admin.Economy
    Assembly: Unity.Services.Apis.dll
    Syntax
    [DataContract(Name = "virtual_purchase_resource_request_rewards_inner")]
    [Preserve]
    public class VirtualPurchaseResourceRequestRewardsInner

    Constructors

    VirtualPurchaseResourceRequestRewardsInner(string, decimal, object)

    Initializes a new instance of the VirtualPurchaseResourceRequestRewardsInner class.

    Declaration
    [Preserve]
    public VirtualPurchaseResourceRequestRewardsInner(string resourceId = null, decimal amount = 0, object defaultInstanceData = null)
    Parameters
    Type Name Description
    string resourceId

    The ID of the currency or inventory item used as a reward. (required).

    decimal amount

    The amount of the item credited as part of the purchase. (required).

    object defaultInstanceData

    Instance data saved against the new inventory item. Max size when serialised 5 kilobits. This property has been deprecated and will only return "null"..

    Properties

    Amount

    The amount of the item credited as part of the purchase.

    Declaration
    [DataMember(Name = "amount", IsRequired = true, EmitDefaultValue = true)]
    [Preserve]
    public decimal Amount { get; set; }
    Property Value
    Type Description
    decimal

    The amount of the item credited as part of the purchase.

    DefaultInstanceData

    Instance data saved against the new inventory item. Max size when serialised 5 kilobits. This property has been deprecated and will only return "null".

    Declaration
    [DataMember(Name = "defaultInstanceData", EmitDefaultValue = true)]
    [Obsolete]
    [Preserve]
    public object DefaultInstanceData { get; set; }
    Property Value
    Type Description
    object

    Instance data saved against the new inventory item. Max size when serialised 5 kilobits. This property has been deprecated and will only return "null".

    ResourceId

    The ID of the currency or inventory item used as a reward.

    Declaration
    [DataMember(Name = "resourceId", IsRequired = true, EmitDefaultValue = true)]
    [Preserve]
    public string ResourceId { get; set; }
    Property Value
    Type Description
    string

    The ID of the currency or inventory item used as a reward.

    In This Article
    Back to top
    Copyright © 2024 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)