/* Options: Date: 2025-01-08 03:10:37 Version: 8.53 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://blazordiffusion.com //GlobalNamespace: //MakePropertiesOptional: False //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: CreateArtist.* //ExcludeTypes: //DefaultImports: */ export interface IReturn { createResponse(): T; } export interface ICreateDb { } // @DataContract export class AuditBase { // @DataMember(Order=1) public createdDate: string; // @DataMember(Order=2) // @Required() public createdBy: string; // @DataMember(Order=3) public modifiedDate: string; // @DataMember(Order=4) // @Required() public modifiedBy: string; // @DataMember(Order=5) public deletedDate?: string; // @DataMember(Order=6) public deletedBy: string; public constructor(init?: Partial) { (Object as any).assign(this, init); } } export class Artist extends AuditBase { public id: number; public firstName?: string; public lastName: string; public yearDied?: number; public type?: string[]; public score: number; public rank: number; public constructor(init?: Partial) { super(init); (Object as any).assign(this, init); } } // @ValidateRequest(Validator="HasRole(`Moderator`)") export class CreateArtist implements IReturn, ICreateDb { public firstName?: string; // @Validate(Validator="NotEmpty") // @Required() public lastName: string; public yearDied?: number; public type?: string[]; public constructor(init?: Partial) { (Object as any).assign(this, init); } public getTypeName() { return 'CreateArtist'; } public getMethod() { return 'POST'; } public createResponse() { return new Artist(); } }