public void Set(SendInviteOptions other)
 {
     if (other != null)
     {
         m_ApiVersion = FriendsInterface.SendinviteApiLatest;
         LocalUserId  = other.LocalUserId;
         TargetUserId = other.TargetUserId;
     }
 }
        /// <summary>
        /// Starts an asynchronous task that sends a friend invitation to another user. The completion delegate is executed after the backend response has been received.
        /// It does not indicate that the target user has responded to the friend invitation.
        /// </summary>
        /// <param name="options">structure containing the account to send the invite from and the account to send the invite to</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 SendInvite(SendInviteOptions options, object clientData, OnSendInviteCallback completionDelegate)
        {
            System.IntPtr optionsAddress = new System.IntPtr();
            Helper.TryMarshalSet <SendInviteOptionsInternal, SendInviteOptions>(ref optionsAddress, options);

            var clientDataAddress = System.IntPtr.Zero;

            var completionDelegateInternal = new OnSendInviteCallbackInternal(OnSendInviteCallbackInternalImplementation);

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

            EOS_Friends_SendInvite(InnerHandle, optionsAddress, clientDataAddress, completionDelegateInternal);

            Helper.TryMarshalDispose(ref optionsAddress);
        }