-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d8e1e2f
commit f3f903e
Showing
4 changed files
with
39 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Text; | ||
|
||
namespace LegoSharp | ||
{ | ||
public class Facet | ||
{ | ||
public string id { get; set; } | ||
public string key { get; set; } | ||
public IEnumerable<FacetLabel> labels { get; set; } | ||
} | ||
|
||
public struct FacetLabel | ||
{ | ||
public string name { get; set; } | ||
public string value { get; set; } | ||
} | ||
|
||
public class FacetLabelComparaer : IEqualityComparer<FacetLabel> | ||
{ | ||
public bool Equals(FacetLabel a, FacetLabel b) | ||
{ | ||
return a.value == b.value && a.name == b.name; | ||
} | ||
public int GetHashCode(FacetLabel t) | ||
{ | ||
string code = t.value + "," + t.name; | ||
return code.GetHashCode(); | ||
} | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.