/* Options: Date: 2026-04-04 04:53:57 Version: 8.52 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://pfapi.pstpf.com.au/api //GlobalNamespace: //MakePropertiesOptional: False //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: DeleteMedia.* //ExcludeTypes: //DefaultImports: */ export interface IReturn { createResponse(): T; } // @DataContract export class ResponseStatus { // @DataMember(Order=1) public ErrorCode: string; // @DataMember(Order=2) public Message: string; // @DataMember(Order=3) public StackTrace: string; // @DataMember(Order=4) public Errors: ResponseError[]; // @DataMember(Order=5) public Meta: { [index:string]: string; }; public constructor(init?: Partial) { (Object as any).assign(this, init); } } export class DeleteMediaResponse { public ResponseStatus: ResponseStatus; public constructor(init?: Partial) { (Object as any).assign(this, init); } } // @Route("/media", "DELETE") // @Route("/attachments", "DELETE") export class DeleteMedia implements IReturn { /** @description Guid of the Media File to be deleted. */ // @ApiMember(DataType="Guid", Description="Guid of the Media File to be deleted.", IsRequired=true, Name="MediaFileId") public MediaFileId: string; /** @description File Name to be deleted. */ // @ApiMember(DataType="string", Description="File Name to be deleted.", IsRequired=true, Name="FileName") public FileName: string; /** @description Appliance from which media file is to be deleted. */ // @ApiMember(DataType="Guid", Description="Appliance from which media file is to be deleted.", IsRequired=true, Name="ApplianceId") public ApplianceId: string; /** @description Container from which media file is to be deleted. Defaults to 'attachments' container for attachments. */ // @ApiMember(DataType="string", Description="Container from which media file is to be deleted. Defaults to 'attachments' container for attachments.", IsRequired=true, Name="ContainerName") public ContainerName: string; /** @description Object connected to the attachment being deleted. */ // @ApiMember(DataType="Guid", Description="Object connected to the attachment being deleted.", IsRequired=true, Name="ConnectedObjectId") public ConnectedObjectId: string; /** @description Licensee Id of the Object owner for which primary image is to be uploaded. */ // @ApiMember(DataType="Guid", Description="Licensee Id of the Object owner for which primary image is to be uploaded.", IsRequired=true, Name="ConnectedObjectLicenseeId") public ConnectedObjectLicenseeId: string; /** @description Is the media file being deleted the primary file linked to the object?. */ // @ApiMember(DataType="bool", Description="Is the media file being deleted the primary file linked to the object?.", Name="IsPrimary") public IsPrimary: boolean; public constructor(init?: Partial) { (Object as any).assign(this, init); } public getTypeName() { return 'DeleteMedia'; } public getMethod() { return 'DELETE'; } public createResponse() { return new DeleteMediaResponse(); } }