Table of Contents

Class Result

Namespace
Styra.Opa.OpenApi.Models.Components
Assembly
Styra.Opa.dll

The base or virtual document referred to by the URL path. If the path is undefined, this key will be omitted.

[JsonConverter(typeof(Result.ResultConverter))]
public class Result
Inheritance
Result
Inherited Members

Constructors

Result(ResultType)

public Result(ResultType type)

Parameters

type ResultType

Properties

ArrayOfAny

public List<object>? ArrayOfAny { get; set; }

Property Value

List<object>

Boolean

public bool? Boolean { get; set; }

Property Value

bool?

MapOfAny

public Dictionary<string, object>? MapOfAny { get; set; }

Property Value

Dictionary<string, object>

Number

public double? Number { get; set; }

Property Value

double?

Str

public string? Str { get; set; }

Property Value

string

Type

public ResultType Type { get; set; }

Property Value

ResultType

Methods

CreateArrayOfAny(List<object>)

public static Result CreateArrayOfAny(List<object> arrayOfAny)

Parameters

arrayOfAny List<object>

Returns

Result

CreateBoolean(bool)

public static Result CreateBoolean(bool boolean)

Parameters

boolean bool

Returns

Result

CreateMapOfAny(Dictionary<string, object>)

public static Result CreateMapOfAny(Dictionary<string, object> mapOfAny)

Parameters

mapOfAny Dictionary<string, object>

Returns

Result

CreateNull()

public static Result CreateNull()

Returns

Result

CreateNumber(double)

public static Result CreateNumber(double number)

Parameters

number double

Returns

Result

CreateStr(string)

public static Result CreateStr(string str)

Parameters

str string

Returns

Result