53 lines
1.1 KiB
C#
53 lines
1.1 KiB
C#
using UnityEngine;
|
|
using System;
|
|
using TapjoyUnity.Internal;
|
|
|
|
namespace TapjoyUnity {
|
|
|
|
/**
|
|
* @deprecated Deprecated since version 14.5.0
|
|
* @brief Request of an action to be performed.
|
|
*/
|
|
[Obsolete("Deprecated since 14.5.0.")]
|
|
public sealed class TJActionRequest {
|
|
|
|
/**
|
|
* @brief ID of this action request
|
|
*
|
|
* For OnPurchaseRequest, this is a campaign id.
|
|
* For OnRewardRequest, this is the unique identifier of this reward to prevent the reuse attack.
|
|
*/
|
|
public string requestID;
|
|
|
|
/**
|
|
* @brief the token to verify reward request
|
|
*/
|
|
public string token;
|
|
|
|
~TJActionRequest() {
|
|
if (requestID != null) {
|
|
//no-op
|
|
}
|
|
}
|
|
|
|
internal TJActionRequest(string requestID, string token) {
|
|
this.requestID = requestID;
|
|
this.token = token;
|
|
}
|
|
|
|
/**
|
|
* @brief Notify this action request is completed.
|
|
*/
|
|
public void Completed() {
|
|
//no-op
|
|
}
|
|
|
|
/**
|
|
* @brief Notify this action request is cancelled.
|
|
*/
|
|
public void Cancelled() {
|
|
//no-op
|
|
}
|
|
}
|
|
}
|