//// MWPhoto.h// MWPhotoBrowser//// Created by Michael Waterfall on 17/10/2010.// Copyright 2010 d3i. All rights reserved.//#import <Foundation/Foundation.h>#import <Photos/Photos.h>#import "MWPhotoProtocol.h"// This class models a photo/image and it's caption// If you want to handle photos, caching, decompression// yourself then you can simply ensure your custom data model// conforms to MWPhotoProtocol@interfaceMWPhoto:NSObject<MWPhoto>@property(nonatomic,strong)NSString*caption;@property(nonatomic,strong)NSURL*videoURL;@property(nonatomic)BOOLemptyImage;@property(nonatomic)BOOLisVideo;+(MWPhoto*)photoWithImage:(UIImage*)image;+(MWPhoto*)photoWithURL:(NSURL*)url;+(MWPhoto*)photoWithAsset:(PHAsset*)assettargetSize:(CGSize)targetSize;+(MWPhoto*)videoWithURL:(NSURL*)url;// Initialise video with no poster image-(id)init;-(id)initWithImage:(UIImage*)image;-(id)initWithURL:(NSURL*)url;-(id)initWithAsset:(PHAsset*)assettargetSize:(CGSize)targetSize;-(id)initWithVideoURL:(NSURL*)url;@end