* Rename Umbraco.Core namespace to Umbraco.Cms.Core * Move extension methods in core project to Umbraco.Extensions * Move extension methods in core project to Umbraco.Extensions * Rename Umbraco.Examine namespace to Umbraco.Cms.Examine * Move examine extensions to Umbraco.Extensions namespace * Reflect changed namespaces in Builder and fix unit tests * Adjust namespace in Umbraco.ModelsBuilder.Embedded * Adjust namespace in Umbraco.Persistence.SqlCe * Adjust namespace in Umbraco.PublishedCache.NuCache * Align namespaces in Umbraco.Web.BackOffice * Align namespaces in Umbraco.Web.Common * Ensure that SqlCeSupport is still enabled after changing the namespace * Align namespaces in Umbraco.Web.Website * Align namespaces in Umbraco.Web.UI.NetCore * Align namespaces in Umbraco.Tests.Common * Align namespaces in Umbraco.Tests.UnitTests * Align namespaces in Umbraco.Tests.Integration * Fix errors caused by changed namespaces * Fix integration tests * Undo the Umbraco.Examine.Lucene namespace change This breaks integration tests on linux, since the namespace wont exists there because it's only used on windows. * Fix merge * Fix Merge
61 lines
1.7 KiB
C#
61 lines
1.7 KiB
C#
using System;
|
|
using System.Runtime.Serialization;
|
|
|
|
namespace Umbraco.Cms.Core.Models
|
|
{
|
|
/// <summary>
|
|
/// A model representing the tours a user has taken/completed
|
|
/// </summary>
|
|
[DataContract(Name = "userTourStatus", Namespace = "")]
|
|
public class UserTourStatus : IEquatable<UserTourStatus>
|
|
{
|
|
/// <summary>
|
|
/// The tour alias
|
|
/// </summary>
|
|
[DataMember(Name = "alias")]
|
|
public string Alias { get; set; }
|
|
|
|
/// <summary>
|
|
/// If the tour is completed
|
|
/// </summary>
|
|
[DataMember(Name = "completed")]
|
|
public bool Completed { get; set; }
|
|
|
|
/// <summary>
|
|
/// If the tour is disabled
|
|
/// </summary>
|
|
[DataMember(Name = "disabled")]
|
|
public bool Disabled { get; set; }
|
|
|
|
public bool Equals(UserTourStatus other)
|
|
{
|
|
if (ReferenceEquals(null, other)) return false;
|
|
if (ReferenceEquals(this, other)) return true;
|
|
return string.Equals(Alias, other.Alias);
|
|
}
|
|
|
|
public override bool Equals(object obj)
|
|
{
|
|
if (ReferenceEquals(null, obj)) return false;
|
|
if (ReferenceEquals(this, obj)) return true;
|
|
if (obj.GetType() != this.GetType()) return false;
|
|
return Equals((UserTourStatus) obj);
|
|
}
|
|
|
|
public override int GetHashCode()
|
|
{
|
|
return Alias.GetHashCode();
|
|
}
|
|
|
|
public static bool operator ==(UserTourStatus left, UserTourStatus right)
|
|
{
|
|
return Equals(left, right);
|
|
}
|
|
|
|
public static bool operator !=(UserTourStatus left, UserTourStatus right)
|
|
{
|
|
return !Equals(left, right);
|
|
}
|
|
}
|
|
}
|