// Copyright Epic Games, Inc. All Rights Reserved. // This file is automatically generated. Changes to this file may be overwritten. namespace Epic.OnlineServices.KWS { /// /// Output parameters for the Function. These parameters are received through the callback provided to /// public struct QueryAgeGateCallbackInfo : ICallbackInfo { /// /// The code for the operation. indicates that the operation succeeded; other codes indicate errors. /// public Result ResultCode { get; set; } /// /// Context that was passed into /// public object ClientData { get; set; } /// /// Country code determined for this request based on the local client's ip address that the backend resolves /// public Utf8String CountryCode { get; set; } /// /// Age of consent in the given country /// public uint AgeOfConsent { get; set; } public Result? GetResultCode() { return ResultCode; } internal void Set(ref QueryAgeGateCallbackInfoInternal other) { ResultCode = other.ResultCode; ClientData = other.ClientData; CountryCode = other.CountryCode; AgeOfConsent = other.AgeOfConsent; } } [System.Runtime.InteropServices.StructLayout(System.Runtime.InteropServices.LayoutKind.Sequential, Pack = 8)] internal struct QueryAgeGateCallbackInfoInternal : ICallbackInfoInternal, IGettable, ISettable, System.IDisposable { private Result m_ResultCode; private System.IntPtr m_ClientData; private System.IntPtr m_CountryCode; private uint m_AgeOfConsent; public Result ResultCode { get { return m_ResultCode; } set { m_ResultCode = value; } } public object ClientData { get { object value; Helper.Get(m_ClientData, out value); return value; } set { Helper.Set(value, ref m_ClientData); } } public System.IntPtr ClientDataAddress { get { return m_ClientData; } } public Utf8String CountryCode { get { Utf8String value; Helper.Get(m_CountryCode, out value); return value; } set { Helper.Set(value, ref m_CountryCode); } } public uint AgeOfConsent { get { return m_AgeOfConsent; } set { m_AgeOfConsent = value; } } public void Set(ref QueryAgeGateCallbackInfo other) { ResultCode = other.ResultCode; ClientData = other.ClientData; CountryCode = other.CountryCode; AgeOfConsent = other.AgeOfConsent; } public void Set(ref QueryAgeGateCallbackInfo? other) { if (other.HasValue) { ResultCode = other.Value.ResultCode; ClientData = other.Value.ClientData; CountryCode = other.Value.CountryCode; AgeOfConsent = other.Value.AgeOfConsent; } } public void Dispose() { Helper.Dispose(ref m_ClientData); Helper.Dispose(ref m_CountryCode); } public void Get(out QueryAgeGateCallbackInfo output) { output = new QueryAgeGateCallbackInfo(); output.Set(ref this); } } }