-
Notifications
You must be signed in to change notification settings - Fork 275
Expand file tree
/
Copy pathResponseExpression.cs
More file actions
35 lines (31 loc) · 1.03 KB
/
ResponseExpression.cs
File metadata and controls
35 lines (31 loc) · 1.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT license.
namespace Microsoft.OpenApi
{
/// <summary>
/// $response. expression.
/// </summary>
public sealed class ResponseExpression : RuntimeExpression
{
/// <summary>
/// $response. string
/// </summary>
public const string Response = "$response.";
/// <summary>
/// Initializes a new instance of the <see cref="ResponseExpression"/> class.
/// </summary>
/// <param name="source">The source of the response.</param>
public ResponseExpression(SourceExpression source)
{
Source = Utils.CheckArgumentNull(source);
}
/// <summary>
/// Gets the expression string.
/// </summary>
public override string Expression => Response + Source.Expression;
/// <summary>
/// The <see cref="SourceExpression"/> expression.
/// </summary>
public SourceExpression Source { get; }
}
}