Class BowireUploadedSchemaKind

Namespace
Kuestenlogik.Bowire
Assembly
Kuestenlogik.Bowire.dll

One schema format a plugin imports (#994).

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

Constructors

BowireUploadedSchemaKind(string, string, IReadOnlyList<string>)

One schema format a plugin imports (#994).

public BowireUploadedSchemaKind(string Kind, string DisplayName, IReadOnlyList<string> Extensions)

Parameters

Kind string

The stored kind, e.g. protoset or graphql-sdl. Lower case, unique across plugins; it names the document in the workspace's schema index.

DisplayName string

What the workbench calls the format, e.g. GraphQL SDL.

Extensions IReadOnlyList<string>

The file extensions the format arrives under, with the leading dot and in lower case. The first one is given to a document uploaded without one.

Properties

DisplayName

What the workbench calls the format, e.g. GraphQL SDL.

public string DisplayName { get; init; }

Property Value

string

Extensions

The file extensions the format arrives under, with the leading dot and in lower case. The first one is given to a document uploaded without one.

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

Property Value

IReadOnlyList<string>

Kind

The stored kind, e.g. protoset or graphql-sdl. Lower case, unique across plugins; it names the document in the workspace's schema index.

public string Kind { get; init; }

Property Value

string

Methods

Deconstruct(out string, out string, out IReadOnlyList<string>)

public void Deconstruct(out string Kind, out string DisplayName, out IReadOnlyList<string> Extensions)

Parameters

Kind string
DisplayName string
Extensions IReadOnlyList<string>

Equals(BowireUploadedSchemaKind?)

public bool Equals(BowireUploadedSchemaKind? other)

Parameters

other BowireUploadedSchemaKind

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 ==(BowireUploadedSchemaKind?, BowireUploadedSchemaKind?)

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

Parameters

left BowireUploadedSchemaKind
right BowireUploadedSchemaKind

Returns

bool

operator !=(BowireUploadedSchemaKind?, BowireUploadedSchemaKind?)

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

Parameters

left BowireUploadedSchemaKind
right BowireUploadedSchemaKind

Returns

bool