mirror of
https://github.com/actions/runner.git
synced 2025-12-15 06:26:46 +00:00
44 lines
876 B
C#
44 lines
876 B
C#
using System;
|
|
using System.Runtime.Serialization;
|
|
|
|
namespace GitHub.DistributedTask.WebApi
|
|
{
|
|
[DataContract]
|
|
public class VariableValue
|
|
{
|
|
public VariableValue()
|
|
{
|
|
}
|
|
|
|
public VariableValue(VariableValue value)
|
|
: this(value.Value, value.IsSecret)
|
|
{
|
|
}
|
|
|
|
public VariableValue(String value, Boolean isSecret)
|
|
{
|
|
Value = value;
|
|
IsSecret = isSecret;
|
|
}
|
|
|
|
[DataMember(EmitDefaultValue = true)]
|
|
public String Value
|
|
{
|
|
get;
|
|
set;
|
|
}
|
|
|
|
[DataMember(EmitDefaultValue = false)]
|
|
public Boolean IsSecret
|
|
{
|
|
get;
|
|
set;
|
|
}
|
|
|
|
public static implicit operator VariableValue(String value)
|
|
{
|
|
return new VariableValue(value, false);
|
|
}
|
|
}
|
|
}
|