* Use interfaces for API media return values + introduce dedicated models for crops and focal points * Move content and media controllers to their own namespaces
18 lines
418 B
C#
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; }
|
|
}
|