//-----------------------------------------------------------------------
//
// Company copyright tag.
//
// stubbfel
// 06.08.2013
//----------------------------------------------------------------------
namespace CampusAppWPortalLib8.Model.Utility
{
///
/// This class is a Model for the URLParameter like GET-Parameter
///
public class CleanUrlParamModel : UrlParamModel
{
#region Constructor
/// Initializes a new instance of the CleanUrlParamModel class.
/// Stubbfel, 12.09.2013.
/// the key for the parameter.
public CleanUrlParamModel(string key)
: base(key)
{
}
/// Initializes a new instance of the CleanUrlParamModel class.
/// Stubbfel, 12.09.2013.
/// the key for the parameter.
/// The value.
public CleanUrlParamModel(string key, string value)
: base(key, value)
{
}
#endregion
#region Proberty
///
/// Gets the token, which indicate that the parameterList started
///
public override string ParamToken
{
get
{
return string.Empty;
}
}
#endregion
#region Methods
///
/// Method return a formatted string like Key=Value
///
/// return formatted string
public override string ToString()
{
if (!this.IsParamValid())
{
return string.Empty;
}
return "/" + this.key + "/" + this.Value;
}
#endregion
}
}