Space Ad Mobile 9.5.1
Space Ad Mobile makes ads easy to add into your mobile game: one unified workflow for LevelPlay, AdMob, Yandex.Ads across banners, interstitials and rewarded.
Loading...
Searching...
No Matches
SCG.SpaceAdMobile.AdReward Class Reference

Concrete adapter that wraps an SDK-specific reward object and exposes it through the SDK-agnostic AdRewardBase interface. More...

Inheritance diagram for SCG.SpaceAdMobile.AdReward:

Public Member Functions

 AdReward (object reward)
 Initializes a new adapter from an SDK-specific reward object.
 AdReward (object reward)
 Initializes a new adapter from an SDK-specific reward object.
 AdReward (object reward)
 Initializes a new adapter from an SDK-specific reward object.

Static Public Member Functions

static implicit operator Reward (AdReward adRewardBase)
 Implicitly converts the adapter to the underlying SDK-specific reward object.
static implicit operator AdReward (Reward adReward)
 Implicitly wraps an SDK-specific reward object into the adapter.
static implicit operator LevelPlayReward (AdReward adRewardBase)
 Implicitly converts the adapter to the underlying SDK-specific reward object.
static implicit operator AdReward (LevelPlayReward adReward)
 Implicitly wraps an SDK-specific reward object into the adapter.
static implicit operator Reward (AdReward adRewardBase)
 Implicitly converts the adapter to the underlying SDK-specific reward object.
static implicit operator AdReward (Reward adReward)
 Implicitly wraps an SDK-specific reward object into the adapter.

Properties

Reward Reward [get, set]
 The underlying SDK-specific reward object.
override double AmountAsDouble [get]
override int Amount [get]
override string Name [get]
LevelPlayReward Reward [get, set]
 The underlying SDK-specific reward object.
Properties inherited from SCG.SpaceAdMobile.AdRewardBase
int Amount [get]
 The numeric amount of the reward.
virtual double AmountAsDouble [get]
 Amount exposed as a double for APIs that expect floating-point values.
string Name [get]
 The semantic type or name of the reward.

Detailed Description

Concrete adapter that wraps an SDK-specific reward object and exposes it through the SDK-agnostic AdRewardBase interface.

This type is intentionally minimal: it forwards values from the underlying SDK payload to Amount and Name while keeping game logic independent from any specific ad provider.

The Reward property stores the original SDK object so that advanced integrations can access SDK-specific data if needed.

Definition at line 18 of file AdReward.cs.


The documentation for this class was generated from the following files: