Esempio n. 1
0
        public static ImageItem ObtainDocumentPreview(this Attachment attachment, ImageSize imageSize, IImageUrlObtainer obtainer)
        {
            if (attachment.Type != "doc")
            {
                return(null);
            }

            //var obtainer = App.Container.GetInstance<DocumentPreviewUrlObtainer>();
            return(obtainer.Obtain(attachment, imageSize));
        }
Esempio n. 2
0
        public static ImageItem ObtainPhotoUrl(this Attachment attachment, ImageSize imageSize, IImageUrlObtainer obtainer)
        {
            if (attachment.Type != "photo")
            {
                return(null);
            }

            //var obtainer = App.Container.GetInstance<PhotoUrlObtainer>();
            return(obtainer.Obtain(attachment, imageSize));
        }