using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.Text;

// Uwaga: W przypadku zmiany nazwy interfejsu "IStockTickerServiceWcf", należy również uaktualnić
// odwołanie do "IStockTickerServiceWcf" w pliku Web.config.
[ServiceContract]
public interface IStockTickerServiceWcf
{
    [OperationContract]
    int GetStockTickerCount();

    [OperationContract]
    string GetTickerSymbol(int index);

    [OperationContract]
    StockInfo GetStockInfo(string ticker);
}

[DataContract]
public class StockInfo
{
    [DataMember]
    public string Ticker { get; set; }
    [DataMember]
    public string Name { get; set; }
    [DataMember]
    public double Price { get; set; }
}
