Click here to Skip to main content
15,897,187 members
Articles / Web Development / HTML

Gallery Server Pro - An ASP.NET Gallery for Sharing Photos, Video, Audio and Other Media

Rate me:
Please Sign up or sign in to vote.
4.86/5 (131 votes)
18 Oct 2013GPL331 min read 830.2K   539  
Gallery Server Pro is a complete, stable ASP.NET gallery for sharing photos, video, audio and other media. This article presents the overall architecture and major features.
using System;

namespace GalleryServerPro.Business.Interfaces
{
	/// <summary>
	/// Represents an item of metadata in media objects such as JPEG, TIFF, and PNG image files.
	/// </summary>
	public interface IGalleryObjectMetadataItem : IComparable<IGalleryObjectMetadataItem>
	{
		/// <summary>
		/// Gets or sets a value that uniquely indentifies this metadata item.
		/// </summary>
		/// <value>The value that uniquely indentifies this metadata item.</value>
		int MediaObjectMetadataId { get; set; }

		/// <summary>
		/// Gets or sets the description of the metadata item (e.g. "Exposure time", "Camera model")
		/// </summary>
		/// <value>The description of the metadata item.</value>
		string Description { get; set; }

		/// <summary>
		/// Gets or sets the value of the metadata item (e.g. "F5.7", "1/500 sec.").
		/// </summary>
		/// <value>The value of the metadata item.</value>
		string Value { get; set; }

		/// <summary>
		/// Gets or sets a value indicating whether this metadata item should be extracted from the original image file the
		/// next time the media object is saved. This will cause the existing metadata item in the data store to be overwritten
		/// with the new value. The default value is false.
		/// </summary>
		/// <value>
		/// 	<c>true</c> if this metadata item should be extracted from the original image file the
		/// next time the media object is saved; otherwise, <c>false</c>.
		/// </value>
		bool ExtractFromFileOnSave { get; set; }

		/// <summary>
		/// Gets or sets a value indicating whether this object has changes that have not been persisted to the database.
		/// </summary>
		/// <value>
		/// 	<c>true</c> if this instance has changes; otherwise, <c>false</c>.
		/// </value>
		bool HasChanges { get; set; }

		/// <summary>
		/// Gets or sets the name of this metadata item.
		/// </summary>
		/// <value>The name of the metadata item.</value>
		GalleryServerPro.Business.Metadata.FormattedMetadataItemName MetadataItemName { get; set; }

		/// <summary>
		/// Perform a deep copy of this metadata item.
		/// </summary>
		/// <returns>Returns a deep copy of this metadata item.</returns>
		IGalleryObjectMetadataItem Copy();
	}
}

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The GNU General Public License (GPLv3)


Written By
Software Developer (Senior) Tech Info Systems
United States United States
I have nearly 20 years of industry experience in software development, architecture, and Microsoft Office products. My company Tech Info Systems provides custom software development services for corporations, governments, and other organizations. Tech Info Systems is a registered member of the Microsoft Partner Program and I am a Microsoft Certified Professional Developer (MCPD).

I am the creator and lead developer of Gallery Server Pro, a free, open source ASP.NET gallery for sharing photos, video, audio, documents, and other files over the web. It has been developed over several years and has involved thousands of hours. The end result is a robust, configurable, and professional grade gallery that can be integrated into your web site, whether you are a large corporation, small business, professional photographer, or a local church.

Comments and Discussions