Пример #1
0
        /// <summary>
        /// Starts an asynchronous task that rejects a friend invitation from another user. The completion delegate is executed after the backend response has been received.
        /// </summary>
        /// <param name="options">structure containing the logged in account and the inviting account</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 RejectInvite(RejectInviteOptions options, object clientData, OnRejectInviteCallback completionDelegate)
        {
            var optionsInternal = Helper.CopyProperties <RejectInviteOptionsInternal>(options);

            var completionDelegateInternal = new OnRejectInviteCallbackInternal(OnRejectInvite);
            var clientDataAddress          = IntPtr.Zero;

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

            EOS_Friends_RejectInvite(InnerHandle, ref optionsInternal, clientDataAddress, completionDelegateInternal);
            Helper.TryMarshalDispose(ref optionsInternal);
        }
        /// <summary>
        /// Starts an asynchronous task that rejects a friend invitation from another user. The completion delegate is executed after the backend response has been received.
        /// </summary>
        /// <param name="options">structure containing the logged in account and the inviting account</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 RejectInvite(RejectInviteOptions options, object clientData, OnRejectInviteCallback completionDelegate)
        {
            System.IntPtr optionsAddress = new System.IntPtr();
            Helper.TryMarshalSet <RejectInviteOptionsInternal, RejectInviteOptions>(ref optionsAddress, options);

            var clientDataAddress = System.IntPtr.Zero;

            var completionDelegateInternal = new OnRejectInviteCallbackInternal(OnRejectInviteCallbackInternalImplementation);

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

            EOS_Friends_RejectInvite(InnerHandle, optionsAddress, clientDataAddress, completionDelegateInternal);

            Helper.TryMarshalDispose(ref optionsAddress);
        }
 internal static extern void EOS_Friends_RejectInvite(System.IntPtr handle, System.IntPtr options, System.IntPtr clientData, OnRejectInviteCallbackInternal completionDelegate);
Пример #4
0
 private static extern void EOS_Friends_RejectInvite(IntPtr handle, ref RejectInviteOptionsInternal options, IntPtr clientData, OnRejectInviteCallbackInternal completionDelegate);