Skip to content

Commit

Permalink
Make MultiPolygon and PolygonCoordinates classes public. (#1239)
Browse files Browse the repository at this point in the history
* Made MultiPolygon and PolygonCoordinates classes public.

* Updated the changelog and the DotNetSDKAPI.json
  • Loading branch information
mcpappas committed Mar 16, 2020
1 parent 4bcc82d commit d3d3a22
Show file tree
Hide file tree
Showing 4 changed files with 136 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Microsoft.Azure.Cosmos/src/Spatial/MultiPolygon.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ namespace Microsoft.Azure.Cosmos.Spatial
/// </summary>
/// <seealso cref="Polygon"/>
[DataContract]
internal sealed class MultiPolygon : Geometry, IEquatable<MultiPolygon>
public sealed class MultiPolygon : Geometry, IEquatable<MultiPolygon>
{
/// <summary>
/// Initializes a new instance of the <see cref="MultiPolygon"/> class.
Expand Down
2 changes: 1 addition & 1 deletion Microsoft.Azure.Cosmos/src/Spatial/PolygonCoordinates.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ namespace Microsoft.Azure.Cosmos.Spatial
/// <seealso cref="MultiPolygon"/>
[DataContract]
[JsonConverter(typeof(PolygonCoordinatesJsonConverter))]
internal sealed class PolygonCoordinates : IEquatable<PolygonCoordinates>
public sealed class PolygonCoordinates : IEquatable<PolygonCoordinates>
{
/// <summary>
/// Initializes a new instance of the <see cref="PolygonCoordinates"/> class.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6482,6 +6482,52 @@
},
"NestedTypes": {}
},
"MultiPolygon": {
"Subclasses": {},
"Members": {
"Boolean Equals(Microsoft.Azure.Cosmos.Spatial.MultiPolygon)": {
"Type": "Method",
"Attributes": [],
"MethodInfo": "Boolean Equals(Microsoft.Azure.Cosmos.Spatial.MultiPolygon)"
},
"Boolean Equals(System.Object)": {
"Type": "Method",
"Attributes": [],
"MethodInfo": "Boolean Equals(System.Object)"
},
"Int32 GetHashCode()": {
"Type": "Method",
"Attributes": [],
"MethodInfo": "Int32 GetHashCode()"
},
"System.Collections.ObjectModel.ReadOnlyCollection`1[Microsoft.Azure.Cosmos.Spatial.PolygonCoordinates] get_Polygons()[System.Runtime.CompilerServices.CompilerGeneratedAttribute()]": {
"Type": "Method",
"Attributes": [
"CompilerGeneratedAttribute"
],
"MethodInfo": "System.Collections.ObjectModel.ReadOnlyCollection`1[Microsoft.Azure.Cosmos.Spatial.PolygonCoordinates] get_Polygons()"
},
"System.Collections.ObjectModel.ReadOnlyCollection`1[Microsoft.Azure.Cosmos.Spatial.PolygonCoordinates] Polygons[System.Runtime.Serialization.DataMemberAttribute(Name = \"coordinates\")]-[Newtonsoft.Json.JsonPropertyAttribute(\"coordinates\", Order = 1, Required = 2)]": {
"Type": "Property",
"Attributes": [
"DataMemberAttribute",
"JsonPropertyAttribute"
],
"MethodInfo": null
},
"Void .ctor(System.Collections.Generic.IList`1[Microsoft.Azure.Cosmos.Spatial.PolygonCoordinates])": {
"Type": "Constructor",
"Attributes": [],
"MethodInfo": "Void .ctor(System.Collections.Generic.IList`1[Microsoft.Azure.Cosmos.Spatial.PolygonCoordinates])"
},
"Void .ctor(System.Collections.Generic.IList`1[Microsoft.Azure.Cosmos.Spatial.PolygonCoordinates], Microsoft.Azure.Cosmos.Spatial.GeometryParams)": {
"Type": "Constructor",
"Attributes": [],
"MethodInfo": "Void .ctor(System.Collections.Generic.IList`1[Microsoft.Azure.Cosmos.Spatial.PolygonCoordinates], Microsoft.Azure.Cosmos.Spatial.GeometryParams)"
}
},
"NestedTypes": {}
},
"Point": {
"Subclasses": {},
"Members": {
Expand Down Expand Up @@ -7022,6 +7068,52 @@
},
"NestedTypes": {}
},
"MultiPolygon": {
"Subclasses": {},
"Members": {
"Boolean Equals(Microsoft.Azure.Cosmos.Spatial.MultiPolygon)": {
"Type": "Method",
"Attributes": [],
"MethodInfo": "Boolean Equals(Microsoft.Azure.Cosmos.Spatial.MultiPolygon)"
},
"Boolean Equals(System.Object)": {
"Type": "Method",
"Attributes": [],
"MethodInfo": "Boolean Equals(System.Object)"
},
"Int32 GetHashCode()": {
"Type": "Method",
"Attributes": [],
"MethodInfo": "Int32 GetHashCode()"
},
"System.Collections.ObjectModel.ReadOnlyCollection`1[Microsoft.Azure.Cosmos.Spatial.PolygonCoordinates] get_Polygons()[System.Runtime.CompilerServices.CompilerGeneratedAttribute()]": {
"Type": "Method",
"Attributes": [
"CompilerGeneratedAttribute"
],
"MethodInfo": "System.Collections.ObjectModel.ReadOnlyCollection`1[Microsoft.Azure.Cosmos.Spatial.PolygonCoordinates] get_Polygons()"
},
"System.Collections.ObjectModel.ReadOnlyCollection`1[Microsoft.Azure.Cosmos.Spatial.PolygonCoordinates] Polygons[System.Runtime.Serialization.DataMemberAttribute(Name = \"coordinates\")]-[Newtonsoft.Json.JsonPropertyAttribute(\"coordinates\", Order = 1, Required = 2)]": {
"Type": "Property",
"Attributes": [
"DataMemberAttribute",
"JsonPropertyAttribute"
],
"MethodInfo": null
},
"Void .ctor(System.Collections.Generic.IList`1[Microsoft.Azure.Cosmos.Spatial.PolygonCoordinates])": {
"Type": "Constructor",
"Attributes": [],
"MethodInfo": "Void .ctor(System.Collections.Generic.IList`1[Microsoft.Azure.Cosmos.Spatial.PolygonCoordinates])"
},
"Void .ctor(System.Collections.Generic.IList`1[Microsoft.Azure.Cosmos.Spatial.PolygonCoordinates], Microsoft.Azure.Cosmos.Spatial.GeometryParams)": {
"Type": "Constructor",
"Attributes": [],
"MethodInfo": "Void .ctor(System.Collections.Generic.IList`1[Microsoft.Azure.Cosmos.Spatial.PolygonCoordinates], Microsoft.Azure.Cosmos.Spatial.GeometryParams)"
}
},
"NestedTypes": {}
},
"NamedCrs": {
"Subclasses": {},
"Members": {
Expand Down Expand Up @@ -7159,6 +7251,46 @@
},
"NestedTypes": {}
},
"PolygonCoordinates": {
"Subclasses": {},
"Members": {
"Boolean Equals(Microsoft.Azure.Cosmos.Spatial.PolygonCoordinates)": {
"Type": "Method",
"Attributes": [],
"MethodInfo": "Boolean Equals(Microsoft.Azure.Cosmos.Spatial.PolygonCoordinates)"
},
"Boolean Equals(System.Object)": {
"Type": "Method",
"Attributes": [],
"MethodInfo": "Boolean Equals(System.Object)"
},
"Int32 GetHashCode()": {
"Type": "Method",
"Attributes": [],
"MethodInfo": "Int32 GetHashCode()"
},
"System.Collections.ObjectModel.ReadOnlyCollection`1[Microsoft.Azure.Cosmos.Spatial.LinearRing] get_Rings()[System.Runtime.CompilerServices.CompilerGeneratedAttribute()]": {
"Type": "Method",
"Attributes": [
"CompilerGeneratedAttribute"
],
"MethodInfo": "System.Collections.ObjectModel.ReadOnlyCollection`1[Microsoft.Azure.Cosmos.Spatial.LinearRing] get_Rings()"
},
"System.Collections.ObjectModel.ReadOnlyCollection`1[Microsoft.Azure.Cosmos.Spatial.LinearRing] Rings[System.Runtime.Serialization.DataMemberAttribute(Name = \"rings\")]": {
"Type": "Property",
"Attributes": [
"DataMemberAttribute"
],
"MethodInfo": null
},
"Void .ctor(System.Collections.Generic.IList`1[Microsoft.Azure.Cosmos.Spatial.LinearRing])": {
"Type": "Constructor",
"Attributes": [],
"MethodInfo": "Void .ctor(System.Collections.Generic.IList`1[Microsoft.Azure.Cosmos.Spatial.LinearRing])"
}
},
"NestedTypes": {}
},
"Position": {
"Subclasses": {},
"Members": {
Expand Down
2 changes: 2 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Added
- [#1268](https://github.com/Azure/azure-cosmos-dotnet-v3/pull/1268) Add GetElapsedClientLatency to CosmosDiagnostics

- [#1239](https://github.com/Azure/azure-cosmos-dotnet-v3/pull/1239) Made MultiPolygon and PolygonCoordinates classes public.

### Fixed

- [#1213](https://github.com/Azure/azure-cosmos-dotnet-v3/pull/1213) CosmosException now returns the original stack trace.
Expand Down

0 comments on commit d3d3a22

Please sign in to comment.