|
namespace IranianExperts.RSS
{
public class RSSImage
{
private string _uRL = "";
private string _link = "";
private string _title = "";
private string _description = "";
private int _width = 0;
private int _height = 0;
/// <summary>
/// [Required] - The URL of the image file.
/// </summary>
public string URL
{
get
{
return(_uRL);
}
set
{
_uRL = value;
}
}
/// <summary>
/// [Required] - The URL of the site, when the channel is rendered, the image is a link to the site. (Note, in practice the image <title> and <link> should have the same value as the channel's <title> and <link>
/// </summary>
public string Link
{
get
{
return(_link);
}
set
{
_link = value;
}
}
/// <summary>
/// [Required] - Describes the image, it's used in the ALT attribute of the HTML <img> tag when the channel is rendered in HTML.
/// </summary>
public string Title
{
get
{
return(_title);
}
set
{
_title = value;
}
}
/// <summary>
/// [Optional] - Text that is included in the TITLE attribute of the link formed around the image in the HTML rendering.
/// </summary>
public string Description
{
get
{
return(_description);
}
set
{
_description = value;
}
}
/// <summary>
/// [Optional] - The width of the image in pixels. Default value is 0. Maximum value must be 400.
/// </summary>
public int Width
{
get
{
return(_width);
}
set
{
if(_width < 400)
_width = value;
}
}
/// <summary>
/// [Optional] - The height of the image in pixels. Default value is 0. Maximum value must be 144.
/// </summary>
public int Height
{
get
{
return(_height);
}
set
{
if(_width < 144)
_height = value;
}
}
/// <summary>
/// Constructor
/// </summary>
/// <param name="url"></param>
/// <param name="link"></param>
/// <param name="title"></param>
public RSSImage(string url, string link, string title)
{
_uRL = url;
_link = link;
_title = title;
}
#region Support
public static string Owner
{
get
{
return("Dariush Tasdighi - From Tehran, Iran");
}
}
public static string Version
{
get
{
return("1.0.0");
}
}
public static string Support
{
get
{
return("Dariush@IranianExperts.com;DariushT@GMail.com;DariushTasdighi@Yahoo.com");
}
}
public static string Homepage
{
get
{
return("http://www.IranianExperts.com;http://groups.yahoo.com/group/IranianExperts");
}
}
public static string UpdatedDate
{
get
{
return("14 Feb 2005");
}
}
#endregion
}
}
|
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.