Files
Umbraco-CMS/src/Umbraco.Infrastructure/Models/DeliveryApi/ApiImageCropperValue.cs
Kenn Jacobsen 280d0a236b Breaking changes for the Delivery API (#14745)
* Use interfaces for API media return values + introduce dedicated models for crops and focal points

* Move content and media controllers to their own namespaces
2023-09-06 09:49:44 +02:00

18 lines
418 B
C#

namespace Umbraco.Cms.Core.Models.DeliveryApi;
internal sealed class ApiImageCropperValue
{
public ApiImageCropperValue(string url, ImageFocalPoint? focalPoint, IEnumerable<ImageCrop>? crops)
{
Url = url;
FocalPoint = focalPoint;
Crops = crops;
}
public string Url { get; }
public ImageFocalPoint? FocalPoint { get; }
public IEnumerable<ImageCrop>? Crops { get; }
}