public Thumbnail(long rating, PhotoLink link, bool canIncrement, ThumbnailUser user) { Rating = rating; Link = link; CanIncrement = canIncrement; User = user; }
public PhotoFile GetThumbnail(PhotoLink link) { WebRequest request = WebRequest.Create(THUMBLINK); var response = request.GetResponse(); var stream = response.GetResponseStream(); return new PhotoFile(stream, response.ContentType); }
public RatingIncrementRequest(PhotoLink link) { Photo = link; }
public ActionResult Thumbnail(PhotoLink link) { var thumb = _photo.GetThumbnail(link); return new FileStreamResult(thumb.Stream, thumb.Type.ToString()); }
public ActionResult Full(PhotoLink link) { var photo = _photo.GetThumbnail(link); return new FileStreamResult(photo.Stream, photo.Type.ToString()); }