Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- namespace GameOfferCurrency
- {
- typedef int Type;
- enum
- {
- MeteorPoints = 0,
- HawkenPoints,
- NumGameOfferCurrencies
- };
- } //namespace GameOfferCurrency
- class GameOffer
- {
- public:
- const char* GetOfferId();
- unsigned int NumGameItems();
- const char* GetGameItemId(unsigned int index);
- unsigned int GetOfferPrice();
- GameOfferCurrency::Type GetOfferCurrency();
- };
- class GameOfferCollection
- {
- public:
- unsigned int NumGameOffers();
- GameOffer GetGameOffer(unsigned int index);
- private:
- class GameOfferCollection_Private* m_private;
- };
- class IGameOfferConsumer
- {
- public:
- virtual ApiResult<GameOfferCollection> ListGameOffers(const char* gameItemTypeId = 0) = 0; ///<gameItemTypeId is optional. Omitting it will return all the available offers.
- virtual ApiResult<bool> PurchaseGameOffer(const char* itemOfferId) = 0;
- };
Add Comment
Please, Sign In to add comment