Guest User

Untitled

a guest
Sep 25th, 2018
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.86 KB | None | 0 0
  1. namespace GameOfferCurrency
  2. {
  3.     typedef int Type;
  4.    
  5.     enum
  6.     {
  7.         MeteorPoints = 0,
  8.         HawkenPoints,
  9.        
  10.         NumGameOfferCurrencies
  11.     };
  12. }   //namespace GameOfferCurrency
  13.  
  14. class GameOffer
  15. {
  16. public:
  17.  
  18.     const char* GetOfferId();
  19.    
  20.     unsigned int NumGameItems();
  21.     const char* GetGameItemId(unsigned int index);
  22.    
  23.     unsigned int GetOfferPrice();
  24.     GameOfferCurrency::Type GetOfferCurrency();
  25. };
  26.  
  27. class GameOfferCollection
  28. {
  29. public:
  30.  
  31.     unsigned int NumGameOffers();
  32.     GameOffer GetGameOffer(unsigned int index);
  33.  
  34. private:
  35.  
  36.     class GameOfferCollection_Private* m_private;
  37. };
  38.  
  39. class IGameOfferConsumer
  40. {
  41. public:
  42.  
  43.     virtual ApiResult<GameOfferCollection> ListGameOffers(const char* gameItemTypeId = 0) = 0;  ///<gameItemTypeId is optional.  Omitting it will return all the available offers.
  44.    
  45.     virtual ApiResult<bool> PurchaseGameOffer(const char* itemOfferId) = 0;
  46. };
Add Comment
Please, Sign In to add comment