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.
160 lines
6.4 KiB
160 lines
6.4 KiB
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
// This file is automatically generated. Changes to this file may be overwritten.
|
|
|
|
namespace Epic.OnlineServices.Presence
|
|
{
|
|
public sealed partial class PresenceModification : Handle
|
|
{
|
|
public PresenceModification()
|
|
{
|
|
}
|
|
|
|
public PresenceModification(System.IntPtr innerHandle) : base(innerHandle)
|
|
{
|
|
}
|
|
|
|
public const int PresencemodificationDatarecordidApiLatest = 1;
|
|
|
|
/// <summary>
|
|
/// Most recent version of the <see cref="DeleteData" /> API.
|
|
/// </summary>
|
|
public const int PresencemodificationDeletedataApiLatest = 1;
|
|
|
|
public const int PresencemodificationJoininfoMaxLength = PresenceInterface.DataMaxValueLength;
|
|
|
|
/// <summary>
|
|
/// The most recent version of the <see cref="SetData" /> API.
|
|
/// </summary>
|
|
public const int PresencemodificationSetdataApiLatest = 1;
|
|
|
|
public const int PresencemodificationSetjoininfoApiLatest = 1;
|
|
|
|
/// <summary>
|
|
/// The most recent version of the <see cref="SetRawRichText" /> function.
|
|
/// </summary>
|
|
public const int PresencemodificationSetrawrichtextApiLatest = 1;
|
|
|
|
/// <summary>
|
|
/// The most recent version of the <see cref="SetStatus" /> API.
|
|
/// </summary>
|
|
public const int PresencemodificationSetstatusApiLatest = 1;
|
|
|
|
/// <summary>
|
|
/// Removes one or more rows of user-defined presence data for a local user. At least one DeleteDataInfo object
|
|
/// must be specified.
|
|
/// <seealso cref="PresenceInterface.DataMaxKeys" />
|
|
/// <seealso cref="PresenceInterface.DataMaxKeyLength" />
|
|
/// <seealso cref="PresenceInterface.DataMaxValueLength" />
|
|
/// </summary>
|
|
/// <param name="options">Object containing an array of new presence data.</param>
|
|
/// <returns>
|
|
/// Success if modification was added successfully, otherwise an error code related to the problem
|
|
/// </returns>
|
|
public Result DeleteData(PresenceModificationDeleteDataOptions options)
|
|
{
|
|
var optionsAddress = System.IntPtr.Zero;
|
|
Helper.TryMarshalSet<PresenceModificationDeleteDataOptionsInternal, PresenceModificationDeleteDataOptions>(ref optionsAddress, options);
|
|
|
|
var funcResult = Bindings.EOS_PresenceModification_DeleteData(InnerHandle, optionsAddress);
|
|
|
|
Helper.TryMarshalDispose(ref optionsAddress);
|
|
|
|
return funcResult;
|
|
}
|
|
|
|
/// <summary>
|
|
/// Release the memory associated with an <see cref="PresenceModification" /> handle. This must be called on Handles retrieved from <see cref="PresenceInterface.CreatePresenceModification" />.
|
|
/// This can be safely called on a NULL presence modification handle. This also may be safely called while a call to SetPresence is still pending.
|
|
/// <seealso cref="PresenceInterface.CreatePresenceModification" />
|
|
/// </summary>
|
|
/// <param name="presenceModificationHandle">The presence modification handle to release</param>
|
|
public void Release()
|
|
{
|
|
Bindings.EOS_PresenceModification_Release(InnerHandle);
|
|
}
|
|
|
|
/// <summary>
|
|
/// Modifies one or more rows of user-defined presence data for a local user. At least one InfoData object
|
|
/// must be specified.
|
|
/// <seealso cref="PresenceInterface.DataMaxKeys" />
|
|
/// <seealso cref="PresenceInterface.DataMaxKeyLength" />
|
|
/// <seealso cref="PresenceInterface.DataMaxValueLength" />
|
|
/// </summary>
|
|
/// <param name="options">Object containing an array of new presence data.</param>
|
|
/// <returns>
|
|
/// Success if modification was added successfully, otherwise an error code related to the problem
|
|
/// </returns>
|
|
public Result SetData(PresenceModificationSetDataOptions options)
|
|
{
|
|
var optionsAddress = System.IntPtr.Zero;
|
|
Helper.TryMarshalSet<PresenceModificationSetDataOptionsInternal, PresenceModificationSetDataOptions>(ref optionsAddress, options);
|
|
|
|
var funcResult = Bindings.EOS_PresenceModification_SetData(InnerHandle, optionsAddress);
|
|
|
|
Helper.TryMarshalDispose(ref optionsAddress);
|
|
|
|
return funcResult;
|
|
}
|
|
|
|
/// <summary>
|
|
/// Sets your new join info custom game-data string. This is a helper function for reading the presence data related to how a user can be joined.
|
|
/// Its meaning is entirely application dependent.
|
|
/// <seealso cref="PresencemodificationJoininfoMaxLength" />
|
|
/// </summary>
|
|
/// <param name="options">Object containing a join info string and associated user data</param>
|
|
/// <returns>
|
|
/// Success if modification was added successfully, otherwise an error code related to the problem
|
|
/// </returns>
|
|
public Result SetJoinInfo(PresenceModificationSetJoinInfoOptions options)
|
|
{
|
|
var optionsAddress = System.IntPtr.Zero;
|
|
Helper.TryMarshalSet<PresenceModificationSetJoinInfoOptionsInternal, PresenceModificationSetJoinInfoOptions>(ref optionsAddress, options);
|
|
|
|
var funcResult = Bindings.EOS_PresenceModification_SetJoinInfo(InnerHandle, optionsAddress);
|
|
|
|
Helper.TryMarshalDispose(ref optionsAddress);
|
|
|
|
return funcResult;
|
|
}
|
|
|
|
/// <summary>
|
|
/// Modifies a user's Rich Presence string to a new state. This is the exact value other users will see
|
|
/// when they query the local user's presence.
|
|
/// <seealso cref="PresenceInterface.RichTextMaxValueLength" />
|
|
/// </summary>
|
|
/// <param name="options">Object containing properties related to setting a user's RichText string</param>
|
|
/// <returns>
|
|
/// Success if modification was added successfully, otherwise an error code related to the problem
|
|
/// </returns>
|
|
public Result SetRawRichText(PresenceModificationSetRawRichTextOptions options)
|
|
{
|
|
var optionsAddress = System.IntPtr.Zero;
|
|
Helper.TryMarshalSet<PresenceModificationSetRawRichTextOptionsInternal, PresenceModificationSetRawRichTextOptions>(ref optionsAddress, options);
|
|
|
|
var funcResult = Bindings.EOS_PresenceModification_SetRawRichText(InnerHandle, optionsAddress);
|
|
|
|
Helper.TryMarshalDispose(ref optionsAddress);
|
|
|
|
return funcResult;
|
|
}
|
|
|
|
/// <summary>
|
|
/// Modifies a user's online status to be the new state.
|
|
/// </summary>
|
|
/// <param name="options">Object containing properties related to setting a user's Status</param>
|
|
/// <returns>
|
|
/// Success if modification was added successfully, otherwise an error code related to the problem
|
|
/// </returns>
|
|
public Result SetStatus(PresenceModificationSetStatusOptions options)
|
|
{
|
|
var optionsAddress = System.IntPtr.Zero;
|
|
Helper.TryMarshalSet<PresenceModificationSetStatusOptionsInternal, PresenceModificationSetStatusOptions>(ref optionsAddress, options);
|
|
|
|
var funcResult = Bindings.EOS_PresenceModification_SetStatus(InnerHandle, optionsAddress);
|
|
|
|
Helper.TryMarshalDispose(ref optionsAddress);
|
|
|
|
return funcResult;
|
|
}
|
|
}
|
|
}
|