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 processLegacyOfferOwnership(
43 ::std::string const&,
44 bool,
45 ::std::vector<::PurchaseInfo> const&,
46 ::std::string const&
47 ) = 0;
48
49 // vIndex: 5
50 virtual void purchaseCoinOffer(::PurchaseInfo const&, ::std::string const&, ::std::function<void(bool)>) = 0;
51
52 // vIndex: 6
53 virtual ::std::shared_ptr<::Bedrock::Threading::IAsyncResult<void>> processExternalStorePurchases() = 0;
54
55 // vIndex: 7
56 virtual void processSubscriptionPurchase(
57 ::StorePlatform,
58 ::PurchaseInfo const&,
59 ::std::string const&,
60 ::std::function<void(::TransactionStatus, ::Bedrock::Http::Status)>
61 ) = 0;
62
63 // vIndex: 8
64 virtual int getBalance() = 0;
65
66 // vIndex: 9
67 virtual bool hasAnActiveDeviceAccount() = 0;
68
69 // vIndex: 10
70 virtual bool hasDeviceAccountBeenUsed() = 0;
71
72 // vIndex: 11
73 virtual bool isRefreshingEntitlements() const = 0;
74
75 // vIndex: 12
76 virtual void refreshEntitlements() = 0;
77
78 // vIndex: 13
79 virtual ::StorePlatform getCommerceStoreNameFromPlatformStoreName(::std::string const&) const = 0;
80
81 // vIndex: 14
82 virtual ::std::string const& getInventoryVersion() const = 0;
83
84 // vIndex: 15
85 virtual void setInventoryVersionAndUpdateInventory(::std::string const&) = 0;
86
87 // vIndex: 16
88 virtual void deleteCachedInventory() = 0;
89
90 // vIndex: 17
91 virtual void forceInventoryRefresh() = 0;
92
93 // vIndex: 18
94 virtual ::std::optional<::PurchaseReceiptPacket> createThirdPartyReceiptPacket(::std::string const&) = 0;
95
96 // vIndex: 19
97 virtual ::IEntitlement const& getEntitlement(::ContentIdentity const&) = 0;
98
99 // vIndex: 20
100 virtual ::std::vector<::mce::UUID> getOwnedEntitlementIds() const = 0;
101
102 // vIndex: 21
103 virtual void getEntitlementsByCreator(::std::string const&, ::std::vector<::Entitlement>&) = 0;
104
105 // vIndex: 22
106 virtual ::std::string const& getThirdPartyReceipt(::std::string const&) = 0;
107
108 // vIndex: 23
109 virtual void purchaseCatalogOffer(
110 ::std::string const&,
111 ::std::string const&,
112 ::std::string const&,
113 ::IMinecraftEventing::StoreType,
114 ::std::string const&,
115 ::std::string const&,
116 ::std::optional<uint64>,
117 ::std::function<void(::TransactionStatus)>
118 ) = 0;
119
120 // vIndex: 24
121 virtual void redeemRealmsCatalogOffer(
122 ::std::string const&,
123 ::std::string const&,
124 ::std::function<void(::TransactionStatus)>
125 ) = 0;
126
127 // vIndex: 25
128 virtual void transferDeviceAccountToXboxLive(::std::function<void(bool)>) = 0;
129
130 // vIndex: 26
131 virtual void markDeviceOwnership(::ContentIdentity const&, ::std::string const&) = 0;
132
133 // vIndex: 27
134 virtual void setDeviceEntitlements(::std::vector<::PurchaseInfo> const&) = 0;
135
136 // vIndex: 28
137 virtual void addEntitlementInventoryRefreshListener(::std::weak_ptr<::EntitlementChangeListener>) = 0;
138
139 // vIndex: 29
140 virtual ::Bedrock::PubSub::Subscription
141 subscribeToOfferPurchaseSuccessEvent(::std::function<void(::std::string const&)>) = 0;
142
143 // vIndex: 30
144 virtual bool hasInventoryUpdated() const = 0;
145 // NOLINTEND
146
147public:
148 // virtual function thunks
149 // NOLINTBEGIN
150
151 // NOLINTEND
152};
Definition EnableNonOwnerReferences.h:7
Definition Status.h:7
Definition ContentIdentity.h:8
Definition EntitlementChangeListener.h:5
Definition Entitlement.h:5
Definition IEntitlementManager.h:25
Definition IEntitlement.h:10
Definition PurchaseReceiptPacket.h:16
Definition PurchaseInfo.h:5