//---------------------------------------------------------------------------------------------
// This file was AUTO-GENERATED by "Service Contracts" Xomega.Net generator.
//
// Manual CHANGES to this file WILL BE LOST when the code is regenerated.
//---------------------------------------------------------------------------------------------

using System.Collections.Generic;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.Threading.Tasks;
using Xomega.Framework.Services;

namespace AdventureWorks.Services
{
    #region ISpecialOfferService interface

    ///<summary>
    /// Sale discounts lookup table.
    ///</summary>
    [ServiceContract]
    public interface ISpecialOfferService
    {

        ///<summary>
        /// Reads a list of Special Offer objects based on the specified criteria.
        ///</summary>
        [OperationContract]
        Task<Output<ICollection<SpecialOffer_ReadListOutput>>> ReadListAsync();

    }
    #endregion

    #region SpecialOffer_ReadListOutput structure

    ///<summary>
    /// The output structure of operation ISpecialOfferService.ReadListAsync.
    ///</summary>
    [DataContract]
    public class SpecialOffer_ReadListOutput
    {
        
        [DataMember]
        public int SpecialOfferId { get; set; }
        
        ///<summary>
        /// Discount description.
        ///</summary>
        [DataMember]
        public string Description { get; set; }
        
        [DataMember]
        public bool IsActive { get; set; }
        
        ///<summary>
        /// Group the discount applies to such as Reseller or Customer.
        ///</summary>
        [DataMember]
        public string Category { get; set; }
    }
    #endregion

}