public void Set(QueryActivePlayerSanctionsOptions other)
 {
     if (other != null)
     {
         m_ApiVersion = SanctionsInterface.QueryactiveplayersanctionsApiLatest;
         TargetUserId = other.TargetUserId;
         LocalUserId  = other.LocalUserId;
     }
 }
Beispiel #2
0
        /// <summary>
        /// Start an asynchronous query to retrieve any active sanctions for a specified user.
        /// Call <see cref="GetPlayerSanctionCount" /> and <see cref="CopyPlayerSanctionByIndex" /> to retrieve the data.
        /// <seealso cref="GetPlayerSanctionCount" />
        /// <seealso cref="CopyPlayerSanctionByIndex" />
        /// </summary>
        /// <param name="options">Structure containing the input parameters</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 QueryActivePlayerSanctions(QueryActivePlayerSanctionsOptions options, object clientData, OnQueryActivePlayerSanctionsCallback completionDelegate)
        {
            System.IntPtr optionsAddress = new System.IntPtr();
            Helper.TryMarshalSet <QueryActivePlayerSanctionsOptionsInternal, QueryActivePlayerSanctionsOptions>(ref optionsAddress, options);

            var clientDataAddress = System.IntPtr.Zero;

            var completionDelegateInternal = new OnQueryActivePlayerSanctionsCallbackInternal(OnQueryActivePlayerSanctionsCallbackInternalImplementation);

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

            EOS_Sanctions_QueryActivePlayerSanctions(InnerHandle, optionsAddress, clientDataAddress, completionDelegateInternal);

            Helper.TryMarshalDispose(ref optionsAddress);
        }