LeviLamina
Loading...
Searching...
No Matches
IEntitlementManager.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/client/store/commerce/StorePlatform.h"
7#include "mc/client/store/iap/transactions/TransactionStatus.h"
8#include "mc/deps/core/threading/IAsyncResult.h"
9#include "mc/deps/core/utility/EnableNonOwnerReferences.h"
10#include "mc/events/IMinecraftEventing.h"
11
12// auto generated forward declare list
13// clang-format off
14class ContentIdentity;
15class Entitlement;
17class IEntitlement;
19struct PurchaseInfo;
20namespace Bedrock::Http { class Status; }
21namespace Bedrock::PubSub { class Subscription; }
22namespace mce { class UUID; }
23// clang-format on
24
26public:
27 // virtual functions
28 // NOLINTBEGIN
29 // vIndex: 0
30 virtual ~IEntitlementManager() /*override*/ = default;
31
32 // vIndex: 1
33 virtual void tick() = 0;
34
35 // vIndex: 2
36 virtual void refreshInventoryIfNeeded() = 0;
37
38 // vIndex: 3
39 virtual ::std::shared_ptr<::Bedrock::Threading::IAsyncResult<void>> loadEntitlementCacheIfNeeded() = 0;
40
41 // vIndex: 4
42 virtual void
43 processLegacyOfferOwnership(::std::string const&, bool, ::std::vector<::PurchaseInfo> const&, ::std::string const&) = 0;
44
45 // vIndex: 5
46 virtual void
47 purchaseCoinOffer(::std::string const&, ::PurchaseInfo const&, ::std::string const&, ::std::function<void(bool)>) = 0;
48
49 // vIndex: 6
50 virtual ::std::shared_ptr<::Bedrock::Threading::IAsyncResult<void>> processExternalStorePurchases() = 0;
51
52 // vIndex: 7
53 virtual void
54 processSubscriptionPurchase(::StorePlatform, ::PurchaseInfo const&, ::std::string const&, ::std::function<void(::TransactionStatus, ::Bedrock::Http::Status)>) = 0;
55
56 // vIndex: 8
57 virtual int getBalance() = 0;
58
59 // vIndex: 9
60 virtual bool hasAnActiveDeviceAccount() = 0;
61
62 // vIndex: 10
63 virtual bool hasDeviceAccountBeenUsed() = 0;
64
65 // vIndex: 11
66 virtual bool isRefreshingEntitlements() const = 0;
67
68 // vIndex: 12
69 virtual void refreshEntitlements() = 0;
70
71 // vIndex: 13
72 virtual ::StorePlatform getCommerceStoreNameFromPlatformStoreName(::std::string const&) const = 0;
73
74 // vIndex: 14
75 virtual ::std::string const& getInventoryVersion() const = 0;
76
77 // vIndex: 15
78 virtual void setInventoryVersionAndUpdateInventory(::std::string const&) = 0;
79
80 // vIndex: 16
81 virtual void deleteCachedInventory() = 0;
82
83 // vIndex: 17
84 virtual void forceInventoryRefresh() = 0;
85
86 // vIndex: 18
87 virtual ::std::optional<::PurchaseReceiptPacket> createThirdPartyReceiptPacket(::std::string const&) = 0;
88
89 // vIndex: 19
90 virtual ::IEntitlement const& getEntitlement(::ContentIdentity const&) = 0;
91
92 // vIndex: 20
93 virtual ::std::vector<::mce::UUID> getOwnedEntitlementIds() const = 0;
94
95 // vIndex: 21
96 virtual void getEntitlementsByCreator(::std::string const&, ::std::vector<::Entitlement>&) = 0;
97
98 // vIndex: 22
99 virtual ::std::string const& getThirdPartyReceipt(::std::string const&) = 0;
100
101 // vIndex: 23
102 virtual void
103 purchaseCatalogOffer(::std::string const&, ::std::string const&, ::std::string const&, ::IMinecraftEventing::StoreType, ::std::string const&, ::std::string const&, ::std::function<void(::TransactionStatus)>) = 0;
104
105 // vIndex: 24
106 virtual void
107 redeemRealmsCatalogOffer(::std::string const&, ::std::string const&, ::std::function<void(::TransactionStatus)>) = 0;
108
109 // vIndex: 25
110 virtual void transferDeviceAccountToXboxLive(::std::function<void(bool)>) = 0;
111
112 // vIndex: 26
113 virtual void markDeviceOwnership(::ContentIdentity const&, ::std::string const&) = 0;
114
115 // vIndex: 27
116 virtual void setDeviceEntitlements(::std::vector<::PurchaseInfo> const&) = 0;
117
118 // vIndex: 28
119 virtual void addEntitlementInventoryRefreshListener(::std::weak_ptr<::EntitlementChangeListener>) = 0;
120
121 // vIndex: 29
122 virtual ::Bedrock::PubSub::Subscription
123 subscribeToOfferPurchaseSuccessEvent(::std::function<void(::std::string const&)>) = 0;
124
125 // vIndex: 30
126 virtual bool hasInventoryUpdated() const = 0;
127 // NOLINTEND
128
129public:
130 // destructor thunk
131 // NOLINTBEGIN
132
133 // NOLINTEND
134
135public:
136 // virtual function thunks
137 // NOLINTBEGIN
138
139 // NOLINTEND
140};
Definition EnableNonOwnerReferences.h:7
Definition Status.h:7
Definition ContentIdentity.h:10
Definition EntitlementChangeListener.h:5
Definition Entitlement.h:5
Definition IEntitlementManager.h:25
Definition IEntitlement.h:10
Definition PurchaseReceiptPacket.h:16
Definition PurchaseInfo.h:5