//------------------------------------------------------------------------------
// <copyright company="Telligent Systems">
//     Copyright (c) Telligent Systems Corporation.  All rights reserved.
// </copyright> 
//------------------------------------------------------------------------------

using System;

namespace CommunityServer.Components
{
	/// <summary>
	/// Indicates the return status for renaming an existing user.
	/// </summary>
	public enum RenameUserStatus
	{
		/// <summary>
		/// The member's username was not changed for some unknown reason.
		/// </summary>
		UnknownFailure = 0,

		/// <summary>
		/// The member's username was successfully changed.
		/// </summary>
		Success = 1,

		/// <summary>
		/// The member's username was not changed because the desired username is already being used.
		/// </summary>
		DuplicateUserName = 2,

		/// <summary>
		/// The member's username was not changed because the desired username is not allowed.
		/// </summary>
		DisallowedUserName = 3,

		/// <summary>
		/// The user attempting to change a member's username doesn't have sufficient permissions to do so.
		/// </summary>
		InsufficientPermissions = 4
	}
}
