Struct ResponseParseType
Defines how to parse sample response.
[JsonConverter(typeof(ResponseParseTypeConverter))]
public readonly record struct ResponseParseType : IEquatable<ResponseParseType>
- Implements
- Inherited Members
Properties
AllValues
public static IReadOnlyList<ResponseParseType> AllValues { get; }
Property Value
Identity
Use the sample response as is.
public static ResponseParseType Identity { get; }
Property Value
RegexExtract
Use regex to extract the important part of sample response.
public static ResponseParseType RegexExtract { get; }
Property Value
ResponseParseTypeUnspecified
Default value. This value is unused.
public static ResponseParseType ResponseParseTypeUnspecified { get; }
Property Value
Value
public string Value { get; }
Property Value
Methods
Equals(ResponseParseType)
public bool Equals(ResponseParseType other)
Parameters
otherResponseParseType
Returns
FromString(string)
public static ResponseParseType FromString(string value)
Parameters
valuestring
Returns
GetHashCode()
public override int GetHashCode()
Returns
ToString()
public override string ToString()
Returns
Operators
implicit operator ResponseParseType(string)
public static implicit operator ResponseParseType(string value)
Parameters
valuestring