Files
UnrealEngine/Engine/Source/Programs/Shared/EpicGames.Horde/Secrets/SecretMessages.cs
2025-05-18 13:04:45 +08:00

52 lines
1.1 KiB
C#

// Copyright Epic Games, Inc. All Rights Reserved.
using System.Collections.Generic;
using System.Diagnostics;
#pragma warning disable CA2227 // Collection properties should be read only
namespace EpicGames.Horde.Secrets
{
/// <summary>
/// Response listing all the secrets available to the current user
/// </summary>
public class GetSecretsResponse
{
/// <summary>
/// List of secret ids
/// </summary>
public List<SecretId> Ids { get; set; }
/// <summary>
/// Constructor
/// </summary>
public GetSecretsResponse(List<SecretId> ids) => Ids = ids;
}
/// <summary>
/// Gets data for a particular secret
/// </summary>
[DebuggerDisplay("{Id}")]
public class GetSecretResponse
{
/// <summary>
/// Id of the secret
/// </summary>
public SecretId Id { get; }
/// <summary>
/// Key value pairs for the secret
/// </summary>
public Dictionary<string, string> Data { get; set; }
/// <summary>
/// Constructor
/// </summary>
public GetSecretResponse(SecretId id, Dictionary<string, string> data)
{
Id = id;
Data = data;
}
}
}