mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-02-23 19:49:43 +01:00
Co-authored-by: Sophia Chen <sophia.six.chen@gmail.com> Co-authored-by: Niels Laute <niels.laute@live.nl> Co-authored-by: Sophia Chen <sophchen@microsoft.com>
49 lines
1.5 KiB
C#
49 lines
1.5 KiB
C#
// Copyright (c) Microsoft Corporation
|
|
// The Microsoft Corporation licenses this file to you under the MIT license.
|
|
// See the LICENSE file in the project root for more information.
|
|
|
|
// The goal of this class is to just mock out the Microsoft.VariantAssignment close source objects
|
|
namespace Microsoft.VariantAssignment.Contract
|
|
{
|
|
/// <summary>
|
|
/// Mutable implementation of <see cref="IVariantAssignmentResponse"/> for (de)serialization.
|
|
/// </summary>
|
|
internal class VariantAssignmentServiceResponse : IVariantAssignmentResponse, IDisposable
|
|
{
|
|
/// <inheritdoc />
|
|
public virtual long DataVersion { get; set; }
|
|
|
|
public virtual IReadOnlyCollection<IAssignedVariant> AssignedVariants { get; set; } = Array.Empty<IAssignedVariant>();
|
|
|
|
public IFeatureVariable GetFeatureVariable(IReadOnlyList<string> path)
|
|
{
|
|
throw new NotImplementedException();
|
|
}
|
|
|
|
public IReadOnlyList<IFeatureVariable> GetFeatureVariables(IReadOnlyList<string> prefix)
|
|
{
|
|
throw new NotImplementedException();
|
|
}
|
|
|
|
protected virtual void Dispose(bool disposing)
|
|
{
|
|
}
|
|
|
|
public void Dispose()
|
|
{
|
|
Dispose(true);
|
|
GC.SuppressFinalize(this);
|
|
}
|
|
|
|
public IReadOnlyList<IFeatureVariable> GetFeatureVariables()
|
|
{
|
|
throw new NotImplementedException();
|
|
}
|
|
|
|
public string GetAssignmentContext()
|
|
{
|
|
return string.Empty;
|
|
}
|
|
}
|
|
}
|