@@ -85,17 +85,17 @@ public IEnumerable<ThingSetNode> GetNodes(ThingSetNodeEnumerationOptions options
8585
8686 public object ? Get ( uint id )
8787 {
88- return DoRequest ( ThingSetBinaryRequestType . Get , cw => cw . WriteUInt32 ( id ) ) ;
88+ return DoRequest ( ThingSetRequest . Get , cw => cw . WriteUInt32 ( id ) ) ;
8989 }
9090
9191 public object ? Get ( string path )
9292 {
93- return DoRequest ( ThingSetBinaryRequestType . Get , cw => cw . WriteTextString ( path ) ) ;
93+ return DoRequest ( ThingSetRequest . Get , cw => cw . WriteTextString ( path ) ) ;
9494 }
9595
9696 public object ? Fetch ( uint id , object arg )
9797 {
98- return DoRequest ( ThingSetBinaryRequestType . Fetch , cw =>
98+ return DoRequest ( ThingSetRequest . Fetch , cw =>
9999 {
100100 cw . WriteUInt32 ( id ) ;
101101 CborSerialiser . Write ( cw , arg ) ;
@@ -104,7 +104,7 @@ public IEnumerable<ThingSetNode> GetNodes(ThingSetNodeEnumerationOptions options
104104
105105 public object ? Fetch ( uint id , params object [ ] args )
106106 {
107- return DoRequest ( ThingSetBinaryRequestType . Fetch , cw =>
107+ return DoRequest ( ThingSetRequest . Fetch , cw =>
108108 {
109109 cw . WriteUInt32 ( id ) ;
110110 if ( args . Length == 0 )
@@ -120,7 +120,7 @@ public IEnumerable<ThingSetNode> GetNodes(ThingSetNodeEnumerationOptions options
120120
121121 public object ? Fetch ( string path )
122122 {
123- return DoRequest ( ThingSetBinaryRequestType . Fetch , cw =>
123+ return DoRequest ( ThingSetRequest . Fetch , cw =>
124124 {
125125 cw . WriteTextString ( path ) ;
126126 cw . WriteNull ( ) ;
@@ -129,7 +129,7 @@ public IEnumerable<ThingSetNode> GetNodes(ThingSetNodeEnumerationOptions options
129129
130130 public object ? Update ( string fullyQualifiedName , object value )
131131 {
132- return DoRequest ( ThingSetBinaryRequestType . Update , cw =>
132+ return DoRequest ( ThingSetRequest . Update , cw =>
133133 {
134134 int index = fullyQualifiedName . LastIndexOf ( '/' ) ;
135135 string pathToParent = index > 0 ? fullyQualifiedName . Substring ( 0 , index ) : String . Empty ;
@@ -145,7 +145,7 @@ public IEnumerable<ThingSetNode> GetNodes(ThingSetNodeEnumerationOptions options
145145
146146 public object ? Exec ( uint id , params object [ ] args )
147147 {
148- return DoRequest ( ThingSetBinaryRequestType . Exec , cw =>
148+ return DoRequest ( ThingSetRequest . Exec , cw =>
149149 {
150150 cw . WriteUInt32 ( id ) ;
151151 CborSerialiser . Write ( cw , args ) ;
@@ -154,22 +154,22 @@ public IEnumerable<ThingSetNode> GetNodes(ThingSetNodeEnumerationOptions options
154154
155155 public object ? Exec ( string path , params object [ ] args )
156156 {
157- return DoRequest ( ThingSetBinaryRequestType . Exec , cw =>
157+ return DoRequest ( ThingSetRequest . Exec , cw =>
158158 {
159159 cw . WriteTextString ( path ) ;
160160 CborSerialiser . Write ( cw , args ) ;
161161 } ) ;
162162 }
163163
164- private object ? DoRequest ( ThingSetBinaryRequestType action , Action < CborWriter > write )
164+ private object ? DoRequest ( ThingSetRequest action , Action < CborWriter > write )
165165 {
166166 byte [ ] buffer = new byte [ 4095 ] ;
167167 Span < byte > span = buffer ;
168168 int length = 0 ;
169169 if ( TargetNodeID . HasValue )
170170 {
171171 // prefix the request with node to forward to
172- span [ 0 ] = ( byte ) ThingSetBinaryRequestType . Forward ;
172+ span [ 0 ] = ( byte ) ThingSetRequest . Forward ;
173173 CborWriter w = new CborWriter ( CborConformanceMode . Lax ) ;
174174 w . WriteTextString ( $ "{ TargetNodeID . Value : x} ") ;
175175 w . Encode ( span . Slice ( 1 ) ) ;
0 commit comments