public void Set(SendPlayerBehaviorReportOptions other) { if (other != null) { m_ApiVersion = ReportsInterface.SendplayerbehaviorreportApiLatest; ReporterUserId = other.ReporterUserId; ReportedUserId = other.ReportedUserId; ReportCategory = other.ReportCategory; ReportDescription = other.ReportDescription; } }
/// <summary> /// Sends the provided report directly to the Epic Online Services back-end. /// </summary> /// <param name="options">Structure containing the player report information.</param> /// <param name="clientData">Optional client data provided by the user of the SDK.</param> /// <param name="completionDelegate">This function is called when the send operation completes.</param> public void SendPlayerBehaviorReport(SendPlayerBehaviorReportOptions options, object clientData, OnSendPlayerBehaviorReportCompleteCallback completionDelegate) { System.IntPtr optionsAddress = new System.IntPtr(); Helper.TryMarshalSet <SendPlayerBehaviorReportOptionsInternal, SendPlayerBehaviorReportOptions>(ref optionsAddress, options); var clientDataAddress = System.IntPtr.Zero; var completionDelegateInternal = new OnSendPlayerBehaviorReportCompleteCallbackInternal(OnSendPlayerBehaviorReportCompleteCallbackInternalImplementation); Helper.AddCallback(ref clientDataAddress, clientData, completionDelegate, completionDelegateInternal); EOS_Reports_SendPlayerBehaviorReport(InnerHandle, optionsAddress, clientDataAddress, completionDelegateInternal); Helper.TryMarshalDispose(ref optionsAddress); }