// ----------------------------------------------------------------------------------
// Microsoft Developer & Platform Evangelism
// 
// Copyright (c) Microsoft Corporation. All rights reserved.
// 
// THIS CODE AND INFORMATION ARE PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, 
// EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES 
// OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE.
// ----------------------------------------------------------------------------------
// The example companies, organizations, products, domain names,
// e-mail addresses, logos, people, places, and events depicted
// herein are fictitious.  No association with any real company,
// organization, product, domain name, email address, logo, person,
// places, or events is intended or should be inferred.
// ----------------------------------------------------------------------------------

namespace Microsoft.Samples.WindowsAzureMmc.SnapIn.Configuration
{
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;

  /// <summary>
  /// What type of service - currently only support Storage services  Blob & Queue
  /// </summary>
  public enum ServiceTypeEnum
  {
    Unknown = -1, Blob = 0, Queue = 1, Table = 2
  }
  
  /// <summary>
  /// Configuration data for a single Azure service
  /// </summary>
  public class Service
  {
    /// <summary>
    /// The Url used to access the service
    /// </summary>
    public string Url { get; set; }
    /// <summary>
    /// The type of the service - must be one of the supported ones
    /// </summary>
    public ServiceTypeEnum ServiceType { get; private set; }

    /// <summary>
    /// Base constructor
    /// </summary>
    /// <param name="serviceType"></param>
    public Service(ServiceTypeEnum serviceType)
    {
      ServiceType = serviceType;
    }

    /// <summary>
    /// A slightly better constructor
    /// </summary>
    /// <param name="serviceType"></param>
    /// <param name="url"></param>
    public Service(ServiceTypeEnum serviceType, string url)
      : this(serviceType)
    {
      Url = url;
    }
  }

}