// Copyright (c) Microsoft Corporation. All rights reserved. See License.txt in the project root for license information.
using System;
using System.Globalization;
using Microsoft.Internal.Web.Utils;
namespace WebMatrix.WebData
{
///
/// Represents an OpenAuth and OpenID account.
///
public class OAuthAccountData
{
///
/// Initializes a new instance of the class.
///
/// The provider.
/// The provider user id.
public OAuthAccountData(string provider, string providerUserId)
{
if (String.IsNullOrEmpty(provider))
{
throw new ArgumentException(
String.Format(CultureInfo.CurrentCulture, CommonResources.Argument_Cannot_Be_Null_Or_Empty, "provider"),
"provider");
}
if (String.IsNullOrEmpty(providerUserId))
{
throw new ArgumentException(
String.Format(CultureInfo.CurrentCulture, CommonResources.Argument_Cannot_Be_Null_Or_Empty, "providerUserId"),
"providerUserId");
}
Provider = provider;
ProviderUserId = providerUserId;
}
///
/// Gets the provider name.
///
public string Provider { get; private set; }
///
/// Gets the provider user id.
///
public string ProviderUserId { get; private set; }
}
}