public ArchivedEntryPictureFileContract(EntryPictureFile entryPictureFile) { ParamIs.NotNull(() => entryPictureFile); Author = new ObjectRefContract(entryPictureFile.Author); Created = entryPictureFile.Created; Id = entryPictureFile.Id; Mime = entryPictureFile.Mime; Name = entryPictureFile.Name; }
public EntryPictureFileContract(EntryPictureFile picture) { ParamIs.NotNull(() => picture); EntryType = picture.EntryType; FileName = picture.FileName; Id = picture.Id; Mime = picture.Mime; Name = picture.Name; }
public EntryPictureFileContract(EntryPictureFile picture) { ParamIs.NotNull(() => picture); EntryType = picture.EntryType; FileName = picture.FileName; Id = picture.Id; Mime = picture.Mime; Name = picture.Name; ThumbUrl = ImageHelper.GetImageUrlThumb(this); }
public EntryPictureFileContract(EntryPictureFile picture, IEntryImagePersister imageStore) { ParamIs.NotNull(() => picture); EntryType = picture.EntryType; Id = picture.Id; Mime = picture.Mime; Name = picture.Name; OwnerEntryId = picture.OwnerEntryId; ThumbUrl = imageStore.GetUrlAbsolute(picture, ImageSize.Thumb, true); }
public EntryPictureFileContract(EntryPictureFile picture, IAggregatedEntryImageUrlFactory imageStore) { ParamIs.NotNull(() => picture); EntryType = picture.EntryType; Id = picture.Id; Mime = picture.Mime; Name = picture.Name; OwnerEntryId = picture.OwnerEntryId; ThumbUrl = imageStore.GetUrlAbsolute(picture, ImageSize.Thumb, true); Purpose = picture.Purpose; }
public static string GetImageUrlThumb(EntryPictureFileContract picture) { return(GetImageUrl(picture.EntryType, EntryPictureFile.GetFileNameThumb(picture.Id, picture.Mime))); }
public static string GetImagePathThumb(EntryPictureFile picture) { return(GetImagePath(picture.EntryType, EntryPictureFile.GetFileNameThumb(picture.Id, picture.Mime))); }
public static string GetImagePath(EntryPictureFileContract picture) { return(GetImagePath(picture.EntryType, EntryPictureFile.GetFileName(picture.Id, picture.Mime))); }