1234567891011121314151617181920212223242526272829303132333435363738394041424344 |
- //
- // IAPProductInfo.h
- // bulldog_sdk
- //
- // Created by zhuge on 2024/3/14.
- //
- #ifndef IAPProductInfo_h
- #define IAPProductInfo_h
- #include <string>
- namespace iap {
- class IAPProductInfo {
- public:
- IAPProductInfo(const std::string& productId, const std::string& name, const std::string& desc, const std::string& displayPrice );
- IAPProductInfo(const std::string& jsonString);
- ~IAPProductInfo();
-
- public:
- // getter & setter
- std::string getProductId() const { return _productId; }
- std::string getName() const { return _name; }
- std::string getDesc() const { return _desc; }
- std::string getDisplayPrice() const { return _displayPrice; }
-
-
- private:
- // 唯一标识后,在GooglePlay和AppStore后台创建时,手动填入
- std::string _productId;
-
- // 显示名字
- std::string _name;
-
- // 详细信息
- std::string _desc;
-
- // 显示价格,按本地格式化的价格显示
- std::string _displayPrice;
- };
- } // end of iap
- #endif /* IAPProductInfo_h */
|