Skip to content

Commit fc322fc

Browse files
committed
F!! Moved PTZ namespaces to Common
1 parent 4c03863 commit fc322fc

File tree

4 files changed

+12
-11
lines changed

4 files changed

+12
-11
lines changed

src/Directory.Build.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<AllowUnsafeBlocks>True</AllowUnsafeBlocks>
55
<Nullable>disable</Nullable>
66
<Title>$(ProjectName)</Title>
7-
<Version>0.1.1</Version>
7+
<Version>0.1.2</Version>
88
<Authors>Lukas Volf</Authors>
99
<Copyright>MIT</Copyright>
1010
<PackageProjectUrl>https://github.com/jimm98y/SharpOnvif</PackageProjectUrl>

src/OnvifService/Onvif/MediaImpl.cs

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
using CoreWCF;
22
using Microsoft.AspNetCore.Hosting.Server;
3+
using SharpOnvifCommon.PTZ;
34
using SharpOnvifServer;
45
using SharpOnvifServer.Media;
5-
using System;
66

77
namespace OnvifService.Onvif
88
{
@@ -165,23 +165,23 @@ private static PTZConfiguration GetMyPtzConfiguration()
165165
{
166166
XRange = new FloatRange() { Min = -1, Max = 1 },
167167
YRange = new FloatRange() { Min = -1, Max = 1 },
168-
URI = SharpOnvifServer.PTZ.SpacesPanTilt.POSITION_GENERIC_SPACE
168+
URI = SpacesPanTilt.POSITION_GENERIC_SPACE
169169
},
170170
},
171171
ZoomLimits = new ZoomLimits()
172172
{
173173
Range = new Space1DDescription()
174174
{
175175
XRange = new FloatRange() { Min = 0, Max = 1 },
176-
URI = SharpOnvifServer.PTZ.SpacesZoom.POSITION_GENERIC_SPACE
176+
URI = SpacesZoom.POSITION_GENERIC_SPACE
177177
}
178178
},
179-
DefaultAbsolutePantTiltPositionSpace = SharpOnvifServer.PTZ.SpacesPanTilt.POSITION_GENERIC_SPACE,
180-
DefaultAbsoluteZoomPositionSpace = SharpOnvifServer.PTZ.SpacesZoom.POSITION_GENERIC_SPACE,
181-
DefaultRelativePanTiltTranslationSpace = SharpOnvifServer.PTZ.SpacesPanTilt.TRANSLATION_GENERIC_SPACE,
182-
DefaultRelativeZoomTranslationSpace = SharpOnvifServer.PTZ.SpacesZoom.TRANSLATION_GENERIC_SPACE,
183-
DefaultContinuousPanTiltVelocitySpace = SharpOnvifServer.PTZ.SpacesPanTilt.VELOCITY_GENERIC_SPACE,
184-
DefaultContinuousZoomVelocitySpace = SharpOnvifServer.PTZ.SpacesZoom.VELOCITY_GENERIC_SPACE,
179+
DefaultAbsolutePantTiltPositionSpace = SpacesPanTilt.POSITION_GENERIC_SPACE,
180+
DefaultAbsoluteZoomPositionSpace = SpacesZoom.POSITION_GENERIC_SPACE,
181+
DefaultRelativePanTiltTranslationSpace = SpacesPanTilt.TRANSLATION_GENERIC_SPACE,
182+
DefaultRelativeZoomTranslationSpace = SpacesZoom.TRANSLATION_GENERIC_SPACE,
183+
DefaultContinuousPanTiltVelocitySpace = SpacesPanTilt.VELOCITY_GENERIC_SPACE,
184+
DefaultContinuousZoomVelocitySpace = SpacesZoom.VELOCITY_GENERIC_SPACE,
185185
DefaultPTZTimeout = "PT5S",
186186
Name = "PTZConfig",
187187
UseCount = 1,

src/OnvifService/Onvif/PTZImpl.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
using CoreWCF;
22
using Microsoft.AspNetCore.Hosting.Server;
3+
using SharpOnvifCommon.PTZ;
34
using SharpOnvifServer.PTZ;
45
using System;
56
using System.Collections.Generic;

src/SharpOnvifServer.PTZ/OnvifPTZSpaces.cs renamed to src/SharpOnvifCommon/PTZ/Spaces.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
namespace SharpOnvifServer.PTZ
1+
namespace SharpOnvifCommon.PTZ
22
{
33
public static class SpacesPanTilt
44
{

0 commit comments

Comments
 (0)