Exemple #1
0
 public void Set(RejectInviteOptions other)
 {
     if (other != null)
     {
         m_ApiVersion = SessionsInterface.RejectinviteApiLatest;
         LocalUserId  = other.LocalUserId;
         InviteId     = other.InviteId;
     }
 }
 public void Set(RejectInviteOptions other)
 {
     if (other != null)
     {
         m_ApiVersion = FriendsInterface.RejectinviteApiLatest;
         LocalUserId  = other.LocalUserId;
         TargetUserId = other.TargetUserId;
     }
 }
        /// <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);
        }