You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

85 lines
1.9 KiB

// Copyright Epic Games, Inc. All Rights Reserved.
// This file is automatically generated. Changes to this file may be overwritten.
namespace Epic.OnlineServices.KWS
{
/// <summary>
/// Input parameters for the <see cref="KWSInterface.CreateUser" /> function.
/// </summary>
public struct CreateUserOptions
{
/// <summary>
/// Local user creating a KWS entry
/// </summary>
public ProductUserId LocalUserId { get; set; }
/// <summary>
/// Date of birth in ISO8601 form (YYYY-MM-DD)
/// </summary>
public Utf8String DateOfBirth { get; set; }
/// <summary>
/// Parent email
/// </summary>
public Utf8String ParentEmail { get; set; }
}
[System.Runtime.InteropServices.StructLayout(System.Runtime.InteropServices.LayoutKind.Sequential, Pack = 8)]
internal struct CreateUserOptionsInternal : ISettable<CreateUserOptions>, System.IDisposable
{
private int m_ApiVersion;
private System.IntPtr m_LocalUserId;
private System.IntPtr m_DateOfBirth;
private System.IntPtr m_ParentEmail;
public ProductUserId LocalUserId
{
set
{
Helper.Set(value, ref m_LocalUserId);
}
}
public Utf8String DateOfBirth
{
set
{
Helper.Set(value, ref m_DateOfBirth);
}
}
public Utf8String ParentEmail
{
set
{
Helper.Set(value, ref m_ParentEmail);
}
}
public void Set(ref CreateUserOptions other)
{
m_ApiVersion = KWSInterface.CreateuserApiLatest;
LocalUserId = other.LocalUserId;
DateOfBirth = other.DateOfBirth;
ParentEmail = other.ParentEmail;
}
public void Set(ref CreateUserOptions? other)
{
if (other.HasValue)
{
m_ApiVersion = KWSInterface.CreateuserApiLatest;
LocalUserId = other.Value.LocalUserId;
DateOfBirth = other.Value.DateOfBirth;
ParentEmail = other.Value.ParentEmail;
}
}
public void Dispose()
{
Helper.Dispose(ref m_LocalUserId);
Helper.Dispose(ref m_DateOfBirth);
Helper.Dispose(ref m_ParentEmail);
}
}
}