using System;
using Yavsc.Model.FrontOffice.Catalog.Billing;
namespace Yavsc.Model.FrontOffice.Catalog
{
///
/// Service.
///
public class Service : Product
{
///
/// Initializes a new instance of the class.
///
public Service ()
{
}
///
/// Gets or sets the hour price.
///
/// The hour price.
public Price HourPrice { get; set; }
///
/// Gets or sets the set prices.
///
/// The set prices.
public PriceOnItemCount[] SetPrices { get; set; }
///
/// Role names involved in this kind of service
///
/// The providers.
public string[] Providers { get; set; }
#region implemented abstract members of Product
///
/// Gets the sales conditions.
///
/// The sales conditions.
public override string [] GetSalesConditions ()
{
return new string [] { string.Format(
"Prix horaire de la prestation : {0} {1}",
HourPrice.Quantity.ToString(),
HourPrice.Unit.Name) } ;
}
#endregion
///
/// Returns a that represents the current .
///
/// A that represents the current .
public override string ToString ()
{
return string.Format ("[Service: HourPrice={0}]", HourPrice);
}
}
}