/* Options: Date: 2026-04-04 03:04:19 Version: 8.52 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://pfapi.pstpf.com.au/api //GlobalNamespace: //MakePartial: True //MakeVirtual: True //MakeInternal: False //MakeDataContractsExtensible: False //AddNullableAnnotations: False //AddReturnMarker: True //AddDescriptionAsComments: True //AddDataContractAttributes: False //AddIndexesToDataMembers: False //AddGeneratedCodeAttributes: False //AddResponseStatus: False //AddImplicitVersion: //InitializeCollections: False //ExportValueTypes: False IncludeTypes: DeleteMedia.* //ExcludeTypes: //AddNamespaces: //AddDefaultXmlNamespace: http://schemas.servicestack.net/types */ using System; using System.IO; using System.Collections; using System.Collections.Generic; using System.Runtime.Serialization; using ServiceStack; using ServiceStack.DataAnnotations; using Eros.Saguna.Common.WebAPIModel.ServiceModels; namespace Eros.Saguna.Common.WebAPIModel.ServiceModels { [Route("/media", "DELETE")] [Route("/attachments", "DELETE")] public partial class DeleteMedia : IReturn { /// ///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 virtual Guid MediaFileId { get; set; } /// ///File Name to be deleted. /// [ApiMember(DataType="string", Description="File Name to be deleted.", IsRequired=true, Name="FileName")] public virtual string FileName { get; set; } /// ///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 virtual Guid ApplianceId { get; set; } /// ///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 virtual string ContainerName { get; set; } /// ///Object connected to the attachment being deleted. /// [ApiMember(DataType="Guid", Description="Object connected to the attachment being deleted.", IsRequired=true, Name="ConnectedObjectId")] public virtual Guid ConnectedObjectId { get; set; } /// ///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 virtual Guid ConnectedObjectLicenseeId { get; set; } /// ///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 virtual bool IsPrimary { get; set; } } public partial class DeleteMediaResponse { public virtual ResponseStatus ResponseStatus { get; set; } } } namespace ServiceStack { [DataContract] public partial class ResponseStatus : IMeta { [DataMember(Order=1)] public virtual string ErrorCode { get; set; } [DataMember(Order=2)] public virtual string Message { get; set; } [DataMember(Order=3)] public virtual string StackTrace { get; set; } [DataMember(Order=4)] public virtual List Errors { get; set; } [DataMember(Order=5)] public virtual Dictionary Meta { get; set; } } }