Table of Contents

Class ModelVersionModel

Namespace
CivitaiSharp.Core.Models
Assembly
CivitaiSharp.Core.dll

Abbreviated model information included in a standalone model version response.

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

Constructors

ModelVersionModel(string, ModelType, bool, bool)

Abbreviated model information included in a standalone model version response.

public ModelVersionModel(string Name, ModelType Type, bool IsNsfw, bool IsPersonOfInterest)

Parameters

Name string

The name of the model. Maps to JSON property "name".

Type ModelType

The model type. Maps to JSON property "type".

IsNsfw bool

Indicates whether the model is not safe for work content. Maps to JSON property "nsfw".

IsPersonOfInterest bool

Indicates whether the model is of a person of interest. Maps to JSON property "poi".

Properties

IsNsfw

Indicates whether the model is not safe for work content. Maps to JSON property "nsfw".

[JsonPropertyName("nsfw")]
public bool IsNsfw { get; init; }

Property Value

bool

IsPersonOfInterest

Indicates whether the model is of a person of interest. Maps to JSON property "poi".

[JsonPropertyName("poi")]
public bool IsPersonOfInterest { get; init; }

Property Value

bool

Name

The name of the model. Maps to JSON property "name".

[JsonPropertyName("name")]
public string Name { get; init; }

Property Value

string

Type

The model type. Maps to JSON property "type".

[JsonPropertyName("type")]
public ModelType Type { get; init; }

Property Value

ModelType