docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class VirtualPurchaseResourceResponseRewardsInner

    VirtualPurchaseResourceResponseRewardsInner

    Inheritance
    object
    VirtualPurchaseResourceResponseRewardsInner
    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_response_rewards_inner")]
    [Preserve]
    public class VirtualPurchaseResourceResponseRewardsInner

    Constructors

    VirtualPurchaseResourceResponseRewardsInner(string, int, object)

    Initializes a new instance of the VirtualPurchaseResourceResponseRewardsInner class.

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

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

    int amount

    The amount of the resource 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 resource credited as part of the purchase.

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

    The amount of the resource 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)