// Copyright Epic Games, Inc. All Rights Reserved. // This file is automatically generated. Changes to this file may be overwritten. namespace Epic.OnlineServices.Mods { /// /// Output parameters for the Function. These parameters are received through the callback provided to /// public class UpdateModCallbackInfo : ICallbackInfo, ISettable { /// /// Result code for the operation. is returned if the request to update was successfull, otherwise one of the error codes is returned. /// public Result ResultCode { get; private set; } /// /// The Epic Account ID of the user for which mod update was requested /// public EpicAccountId LocalUserId { get; private set; } /// /// Context that is passed into /// public object ClientData { get; private set; } /// /// Mod for which update was requested /// public ModIdentifier Mod { get; private set; } public Result? GetResultCode() { return ResultCode; } internal void Set(UpdateModCallbackInfoInternal? other) { if (other != null) { ResultCode = other.Value.ResultCode; LocalUserId = other.Value.LocalUserId; ClientData = other.Value.ClientData; Mod = other.Value.Mod; } } public void Set(object other) { Set(other as UpdateModCallbackInfoInternal?); } } [System.Runtime.InteropServices.StructLayout(System.Runtime.InteropServices.LayoutKind.Sequential, Pack = 8)] internal struct UpdateModCallbackInfoInternal : ICallbackInfoInternal { private Result m_ResultCode; private System.IntPtr m_LocalUserId; private System.IntPtr m_ClientData; private System.IntPtr m_Mod; public Result ResultCode { get { return m_ResultCode; } } public EpicAccountId LocalUserId { get { EpicAccountId value; Helper.TryMarshalGet(m_LocalUserId, out value); return value; } } public object ClientData { get { object value; Helper.TryMarshalGet(m_ClientData, out value); return value; } } public System.IntPtr ClientDataAddress { get { return m_ClientData; } } public ModIdentifier Mod { get { ModIdentifier value; Helper.TryMarshalGet(m_Mod, out value); return value; } } } }