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
NamestringThe name of the model. Maps to JSON property "name".
TypeModelTypeThe model type. Maps to JSON property "type".
IsNsfwboolIndicates whether the model is not safe for work content. Maps to JSON property "nsfw".
IsPersonOfInterestboolIndicates 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
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
Name
The name of the model. Maps to JSON property "name".
[JsonPropertyName("name")]
public string Name { get; init; }
Property Value
Type
The model type. Maps to JSON property "type".
[JsonPropertyName("type")]
public ModelType Type { get; init; }