Class BowireManualField

Namespace
Kuestenlogik.Bowire
Assembly
Kuestenlogik.Bowire.dll

One field of a hand-entry form.

public sealed record BowireManualField : IEquatable<BowireManualField>
Inheritance
BowireManualField
Implements
Inherited Members

Constructors

BowireManualField(string, string, BowireManualFieldPlacement)

One field of a hand-entry form.

public BowireManualField(string Key, string Label, BowireManualFieldPlacement Placement)

Parameters

Key string

The template placeholder or metadata key, e.g. topic or soap_action.

Label string

What the form shows.

Placement BowireManualFieldPlacement

Where the value goes.

Properties

CallKinds

The ids of the call kinds the field belongs to; empty means every call kind. Kafka's key belongs to produce, not to consume.

public IReadOnlyList<string> CallKinds { get; init; }

Property Value

IReadOnlyList<string>

DefaultValue

The value the field starts with.

public string? DefaultValue { get; init; }

Property Value

string

Description

Help text below the field.

public string? Description { get; init; }

Property Value

string

Key

The template placeholder or metadata key, e.g. topic or soap_action.

public string Key { get; init; }

Property Value

string

Label

What the form shows.

public string Label { get; init; }

Property Value

string

Options

The choices of a select field.

public IReadOnlyList<BowireManualFieldOption> Options { get; init; }

Property Value

IReadOnlyList<BowireManualFieldOption>

Placeholder

An example value shown in the empty field.

public string? Placeholder { get; init; }

Property Value

string

Placement

Where the value goes.

public BowireManualFieldPlacement Placement { get; init; }

Property Value

BowireManualFieldPlacement

Required

Whether the call cannot be made without a value.

public bool Required { get; init; }

Property Value

bool

Type

string (default), number, bool or select.

public string Type { get; init; }

Property Value

string

Methods

Deconstruct(out string, out string, out BowireManualFieldPlacement)

public void Deconstruct(out string Key, out string Label, out BowireManualFieldPlacement Placement)

Parameters

Key string
Label string
Placement BowireManualFieldPlacement

Equals(BowireManualField?)

public bool Equals(BowireManualField? other)

Parameters

other BowireManualField

Returns

bool

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

ToString()

public override string ToString()

Returns

string

Operators

operator ==(BowireManualField?, BowireManualField?)

public static bool operator ==(BowireManualField? left, BowireManualField? right)

Parameters

left BowireManualField
right BowireManualField

Returns

bool

operator !=(BowireManualField?, BowireManualField?)

public static bool operator !=(BowireManualField? left, BowireManualField? right)

Parameters

left BowireManualField
right BowireManualField

Returns

bool