Code Cleanup: Assemblies

This commit is contained in:
Rick Falkvinge
2014-12-04 23:55:03 +01:00
parent 93abb92c67
commit fa3b05da6f
458 changed files with 13969 additions and 13709 deletions
+13 -13
View File
@@ -4,25 +4,25 @@ using Swarmops.Basic.Interfaces;
namespace Swarmops.Basic.Types
{
/// <summary>
/// A geographical node.
/// A geographical node.
/// </summary>
[Serializable]
public class BasicGeography : IHasIdentity
{
public BasicGeography (int geographyId, int parentGeographyId, string name)
public BasicGeography(int geographyId, int parentGeographyId, string name)
: this(geographyId, parentGeographyId, name, 0)
{
}
public BasicGeography (int geographyId, int parentGeographyId, string name, int generation)
public BasicGeography(int geographyId, int parentGeographyId, string name, int generation)
{
this.GeographyId = geographyId;
this.ParentGeographyId = parentGeographyId;
this.Name = name;
this.Generation = generation;
GeographyId = geographyId;
ParentGeographyId = parentGeographyId;
Name = name;
Generation = generation;
}
public BasicGeography (BasicGeography original)
public BasicGeography(BasicGeography original)
: this(original.GeographyId, original.ParentGeographyId, original.Name, original.Generation)
{
}
@@ -34,22 +34,22 @@ namespace Swarmops.Basic.Types
}
/// <summary>
/// The database id of this geography.
/// The database id of this geography.
/// </summary>
public int GeographyId { get; private set; }
/// <summary>
/// The database id of the parent geography, for linking in a tree structure.
/// The database id of the parent geography, for linking in a tree structure.
/// </summary>
public int ParentGeographyId { get; protected set; }
/// <summary>
/// The friendly name of the node (city, county, region, etc).
/// The friendly name of the node (city, county, region, etc).
/// </summary>
public string Name { get; protected set; }
/// <summary>
/// The generation of this node. Used in tree-style listings.
/// The generation of this node. Used in tree-style listings.
/// </summary>
public int Generation { get; protected set; }
@@ -57,7 +57,7 @@ namespace Swarmops.Basic.Types
public int Identity
{
get { return this.GeographyId; }
get { return GeographyId; }
}
#endregion