//----------------------------------------------------------------------- // // The MIT License (MIT). Copyright (c) 2013 BTU/IIT. // // Stubbfel // 15.10.2013 // Implements the clean URL parameter model class //----------------------------------------------------------------------- namespace CampusAppWPortalLib8.Model.Utility { /// This class is a Model for the URLParameter like GET-Parameter. /// Stubbfel, 15.10.2013. /// 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. /// Stubbfel, 15.10.2013. /// public override string ToString() { if (!this.IsParamValid()) { return string.Empty; } return "/" + this.key + "/" + this.Value; } #endregion } }