//---------------------------------------------------------------------------------------------
// 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 IBusinessEntityAddressService interface

    ///<summary>
    /// Cross-reference table mapping customers, vendors, and employees to their addresses.
    ///</summary>
    [ServiceContract]
    public interface IBusinessEntityAddressService
    {

        ///<summary>
        /// Reads a list of Business Entity Address objects based on the specified criteria.
        ///</summary>
        [OperationContract]
        Task<Output<ICollection<BusinessEntityAddress_ReadListOutput>>> ReadListAsync(int _businessEntityId);

    }
    #endregion

    #region BusinessEntityAddress_ReadListOutput structure

    ///<summary>
    /// The output structure of operation IBusinessEntityAddressService.ReadListAsync.
    ///</summary>
    [DataContract]
    public class BusinessEntityAddress_ReadListOutput
    {
        
        [DataMember]
        public int AddressId { get; set; }
        
        [DataMember]
        public string AddressType { get; set; }
        
        [DataMember]
        public string AddressLine1 { get; set; }
        
        [DataMember]
        public string AddressLine2 { get; set; }
        
        [DataMember]
        public string City { get; set; }
        
        [DataMember]
        public string State { get; set; }
        
        [DataMember]
        public string PostalCode { get; set; }
        
        [DataMember]
        public string Country { get; set; }
    }
    #endregion

}