private static void FetchEntitlementsCallbackImpl(IntPtr ptr, Result result)
        {
            GCHandle h = GCHandle.FromIntPtr(ptr);
            FetchEntitlementsHandler callback = (FetchEntitlementsHandler)h.Target;

            h.Free();
            callback(result);
        }
        /// <summary>
        ///     Fetches a list of entitlements to which the user is entitled. Applications, DLC, and Bundles will always be
        ///     returned.
        ///     Consumables will be returned until they are consumed by the application via the HTTP endpoint.
        /// </summary>
        /// <param name="callback"></param>
        public void FetchEntitlements(FetchEntitlementsHandler callback)
        {
            GCHandle wrapped = GCHandle.Alloc(callback);

            Methods.FetchEntitlements(methodsPtr, GCHandle.ToIntPtr(wrapped), FetchEntitlementsCallbackImpl);
        }