From e2f7a6235ae9621efe5dcdc111a18f268d33e1cc Mon Sep 17 00:00:00 2001 From: Olegas Goncarovas Date: Mon, 27 Aug 2018 15:00:29 +0300 Subject: [PATCH 1/4] Add TimeInfo to ServiceDescriptionDetailsResponse --- .../Operation/ServiceDescriptionDetails.cs | 28 +++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/src/Anywhere.ArcGIS/Operation/ServiceDescriptionDetails.cs b/src/Anywhere.ArcGIS/Operation/ServiceDescriptionDetails.cs index 5ac4518..2d082e5 100644 --- a/src/Anywhere.ArcGIS/Operation/ServiceDescriptionDetails.cs +++ b/src/Anywhere.ArcGIS/Operation/ServiceDescriptionDetails.cs @@ -82,6 +82,9 @@ public class ServiceDescriptionDetailsResponse : PortalResponse [DataMember(Name = "fullExtent")] public Extent FullExtent { get; set; } + [DataMember(Name = "timeInfo")] + public TimeInfo TimeInfo { get; set; } + [DataMember(Name = "documentInfo")] public DocumentInfo DocumentInfo { get; set; } @@ -89,6 +92,31 @@ public class ServiceDescriptionDetailsResponse : PortalResponse public List Layers { get; set; } } + [DataContract] + public class TimeInfo + { + [DataMember(Name = "timeExtent")] + public List TimeExtent { get; set; } + + [DataMember(Name = "timeRelation")] + public string TimeRelation { get; set; } + + [DataMember(Name = "defaultTimeInterval")] + public int DefaultTimeInterval { get; set; } + + [DataMember(Name = "defaultTimeIntervalUnits")] + public string DefaultTimeIntervalUnits { get; set; } + + [DataMember(Name = "defaultTimeWindow")] + public double DefaultTimeWindow { get; set; } + + [DataMember(Name = "defaultTimeWindowUnits")] + public string DefaultTimeWindowUnits { get; set; } + + [DataMember(Name = "hasLiveData")] + public bool HasLiveData { get; set; } + } + [DataContract] public class DocumentInfo { From d53fa11c24578ed8f5ca1998a0f2c64e38ffe643 Mon Sep 17 00:00:00 2001 From: Olegas Goncarovas Date: Wed, 5 Sep 2018 14:34:28 +0300 Subject: [PATCH 2/4] Add TimeInfo to ServiceLayerDescriptionResponse --- .../Operation/ServiceLayerDescription.cs | 60 +++++++++++++++++++ 1 file changed, 60 insertions(+) diff --git a/src/Anywhere.ArcGIS/Operation/ServiceLayerDescription.cs b/src/Anywhere.ArcGIS/Operation/ServiceLayerDescription.cs index fc931c0..46b1c42 100644 --- a/src/Anywhere.ArcGIS/Operation/ServiceLayerDescription.cs +++ b/src/Anywhere.ArcGIS/Operation/ServiceLayerDescription.cs @@ -72,6 +72,9 @@ public class ServiceLayerDescriptionResponse : PortalResponse [DataMember(Name = "extent")] public Extent Extent { get; set; } + [DataMember(Name = "timeInfo")] + public LayerTimeInfo TimeInfo { get; set; } + [DataMember(Name = "hasAttachments")] public bool HasAttachments { get; set; } @@ -191,4 +194,61 @@ public class AdvancedQueryCapabilities [DataMember(Name = "supportsQueryWithDistance")] public bool SupportsQueryWithDistance { get; set; } } + + [DataContract] + public class LayerTimeInfo + { + [DataMember(Name = "startTimeField")] + public string startTimeField { get; set; } + + [DataMember(Name = "endTimeField")] + public string endTimeField { get; set; } + + [DataMember(Name = "trackIdField")] + public string trackIdField { get; set; } + + [DataMember(Name = "timeExtent")] + public List timeExtent { get; set; } + + [DataMember(Name = "timeReference")] + public TimeReference timeReference { get; set; } + + [DataMember(Name = "timeInterval")] + public int timeInterval { get; set; } + + [DataMember(Name = "timeIntervalUnits")] + public string timeIntervalUnits { get; set; } + + [DataMember(Name = "exportOptions")] + public ExportOptions exportOptions { get; set; } + + [DataMember(Name = "hasLiveData")] + public bool hasLiveData { get; set; } + } + + [DataContract] + public class ExportOptions + { + [DataMember(Name = "useTime")] + public bool useTime { get; set; } + + [DataMember(Name = "timeDataCumulative")] + public bool timeDataCumulative { get; set; } + + [DataMember(Name = "timeOffset")] + public int timeOffset { get; set; } + + [DataMember(Name = "timeOffsetUnits")] + public string timeOffsetUnits { get; set; } + } + + [DataContract] + public class TimeReference + { + [DataMember(Name = "timeZone")] + public string timeZone { get; set; } + + [DataMember(Name = "respectsDaylightSaving")] + public bool respectsDaylightSaving { get; set; } + } } From dcdefa88962f3606402efe54593f2e319b76422c Mon Sep 17 00:00:00 2001 From: Olegas Goncarovas Date: Wed, 5 Sep 2018 23:20:33 +0300 Subject: [PATCH 3/4] Make properties camel case --- .../Operation/ServiceLayerDescription.cs | 30 +++++++++---------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/src/Anywhere.ArcGIS/Operation/ServiceLayerDescription.cs b/src/Anywhere.ArcGIS/Operation/ServiceLayerDescription.cs index 46b1c42..3dbac85 100644 --- a/src/Anywhere.ArcGIS/Operation/ServiceLayerDescription.cs +++ b/src/Anywhere.ArcGIS/Operation/ServiceLayerDescription.cs @@ -199,56 +199,56 @@ public class AdvancedQueryCapabilities public class LayerTimeInfo { [DataMember(Name = "startTimeField")] - public string startTimeField { get; set; } + public string StartTimeField { get; set; } [DataMember(Name = "endTimeField")] - public string endTimeField { get; set; } + public string EndTimeField { get; set; } [DataMember(Name = "trackIdField")] - public string trackIdField { get; set; } + public string TrackIdField { get; set; } [DataMember(Name = "timeExtent")] - public List timeExtent { get; set; } + public List TimeExtent { get; set; } [DataMember(Name = "timeReference")] - public TimeReference timeReference { get; set; } + public TimeReference TimeReference { get; set; } [DataMember(Name = "timeInterval")] - public int timeInterval { get; set; } + public int TimeInterval { get; set; } [DataMember(Name = "timeIntervalUnits")] - public string timeIntervalUnits { get; set; } + public string TimeIntervalUnits { get; set; } [DataMember(Name = "exportOptions")] - public ExportOptions exportOptions { get; set; } + public ExportOptions ExportOptions { get; set; } [DataMember(Name = "hasLiveData")] - public bool hasLiveData { get; set; } + public bool HasLiveData { get; set; } } [DataContract] public class ExportOptions { [DataMember(Name = "useTime")] - public bool useTime { get; set; } + public bool UseTime { get; set; } [DataMember(Name = "timeDataCumulative")] - public bool timeDataCumulative { get; set; } + public bool TimeDataCumulative { get; set; } [DataMember(Name = "timeOffset")] - public int timeOffset { get; set; } + public int TimeOffset { get; set; } [DataMember(Name = "timeOffsetUnits")] - public string timeOffsetUnits { get; set; } + public string TimeOffsetUnits { get; set; } } [DataContract] public class TimeReference { [DataMember(Name = "timeZone")] - public string timeZone { get; set; } + public string TimeZone { get; set; } [DataMember(Name = "respectsDaylightSaving")] - public bool respectsDaylightSaving { get; set; } + public bool RespectsDaylightSaving { get; set; } } } From 2632c664e02b7fc95f71d7f2cabfb6f18c3a2429 Mon Sep 17 00:00:00 2001 From: Dave Timmins Date: Mon, 10 Sep 2018 07:49:00 +1200 Subject: [PATCH 4/4] v 1.8.0 --- build.cake | 2 +- src/Anywhere.ArcGIS/Anywhere.ArcGIS.csproj | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/build.cake b/build.cake index 9452e2e..2770fa4 100644 --- a/build.cake +++ b/build.cake @@ -9,7 +9,7 @@ var target = Argument("target", "Default"); var configuration = Argument("configuration", "Release"); var solution = "./Anywhere.ArcGIS.sln"; -var version = "1.7.1"; +var version = "1.8.0"; var versionSuffix = Environment.GetEnvironmentVariable("VERSION_SUFFIX"); ////////////////////////////////////////////////////////////////////// diff --git a/src/Anywhere.ArcGIS/Anywhere.ArcGIS.csproj b/src/Anywhere.ArcGIS/Anywhere.ArcGIS.csproj index ff4bfcf..d8fe952 100644 --- a/src/Anywhere.ArcGIS/Anywhere.ArcGIS.csproj +++ b/src/Anywhere.ArcGIS/Anywhere.ArcGIS.csproj @@ -15,7 +15,7 @@ https://github.com/davetimmins/Anywhere.ArcGIS git ArcGIS ArcGISServer ArcGISOnline Esri REST netstandard anywhere GIS Mapping Map Location GeoLocation OAuth - 1.7.1 + 1.8.0