コード例 #1
0
        /// <summary>
        /// Query the ownership status for a given list of catalog item ids defined with Epic Online Services.
        /// This data will be cached for a limited time and retrieved again from the backend when necessary
        /// </summary>
        /// <param name="options">structure containing the account and catalog item ids to retrieve</param>
        /// <param name="clientData">arbitrary data that is passed back to you in the CompletionDelegate</param>
        /// <param name="completionDelegate">a callback that is fired when the async operation completes, either successfully or in error</param>
        public void QueryOwnership(QueryOwnershipOptions options, object clientData, OnQueryOwnershipCallback completionDelegate)
        {
            var optionsInternal = Helper.CopyProperties <QueryOwnershipOptionsInternal>(options);

            var completionDelegateInternal = new OnQueryOwnershipCallbackInternal(OnQueryOwnership);
            var clientDataAddress          = IntPtr.Zero;

            Helper.AddCallback(ref clientDataAddress, clientData, completionDelegate, completionDelegateInternal);

            EOS_Ecom_QueryOwnership(InnerHandle, ref optionsInternal, clientDataAddress, completionDelegateInternal);
            Helper.TryMarshalDispose(ref optionsInternal);
        }
コード例 #2
0
 private static extern void EOS_Ecom_QueryOwnership(IntPtr handle, ref QueryOwnershipOptionsInternal options, IntPtr clientData, OnQueryOwnershipCallbackInternal completionDelegate);