@@ -168,7 +168,7 @@ private MyHTTPResponse MakeSyncRequest(MyHTTPRequest req)
168168 else
169169 {
170170 resp = new MyHTTPResponse ( ) ;
171- resp . content = System . Text . Encoding . UTF8 . GetBytes ( "Web exception without '.Response'" ) ;
171+ resp . content = Encoding . UTF8 . GetBytes ( "Web exception without '.Response'" ) ;
172172 }
173173 resp . ex = ex ;
174174 }
@@ -268,7 +268,7 @@ private TinCan.LRSResponse.ProfileKeys GetProfileKeys(String resource, Dictionar
268268
269269 r . success = true ;
270270
271- var keys = JArray . Parse ( System . Text . Encoding . UTF8 . GetString ( res . content ) ) ;
271+ var keys = JArray . Parse ( Encoding . UTF8 . GetString ( res . content ) ) ;
272272 if ( keys . Count > 0 ) {
273273 r . content = new List < String > ( ) ;
274274 foreach ( JToken key in keys ) {
@@ -346,7 +346,7 @@ private TinCan.LRSResponse.Statement GetStatement(Dictionary<String, String> que
346346 }
347347
348348 r . success = true ;
349- r . content = new Statement ( new json . StringOfJSON ( System . Text . Encoding . UTF8 . GetString ( res . content ) ) ) ;
349+ r . content = new Statement ( new json . StringOfJSON ( Encoding . UTF8 . GetString ( res . content ) ) ) ;
350350
351351 return r ;
352352 }
@@ -369,7 +369,7 @@ public TinCan.LRSResponse.About About()
369369 }
370370
371371 r . success = true ;
372- r . content = new About ( System . Text . Encoding . UTF8 . GetString ( res . content ) ) ;
372+ r . content = new About ( Encoding . UTF8 . GetString ( res . content ) ) ;
373373
374374 return r ;
375375 }
@@ -392,7 +392,7 @@ public TinCan.LRSResponse.Statement SaveStatement(Statement statement)
392392 }
393393
394394 req . contentType = "application/json" ;
395- req . content = System . Text . Encoding . UTF8 . GetBytes ( statement . toJSON ( version ) ) ;
395+ req . content = Encoding . UTF8 . GetBytes ( statement . toJSON ( version ) ) ;
396396
397397 var res = MakeSyncRequest ( req ) ;
398398 if ( statement . id == null )
@@ -405,7 +405,7 @@ public TinCan.LRSResponse.Statement SaveStatement(Statement statement)
405405 return r ;
406406 }
407407
408- var ids = JArray . Parse ( System . Text . Encoding . UTF8 . GetString ( res . content ) ) ;
408+ var ids = JArray . Parse ( Encoding . UTF8 . GetString ( res . content ) ) ;
409409 statement . id = new Guid ( ( String ) ids [ 0 ] ) ;
410410 }
411411 else {
@@ -437,7 +437,7 @@ public TinCan.LRSResponse.StatementsResult SaveStatements(List<Statement> statem
437437 {
438438 jarray . Add ( st . toJObject ( version ) ) ;
439439 }
440- req . content = System . Text . Encoding . UTF8 . GetBytes ( jarray . ToString ( ) ) ;
440+ req . content = Encoding . UTF8 . GetBytes ( jarray . ToString ( ) ) ;
441441
442442 var res = MakeSyncRequest ( req ) ;
443443 if ( res . status != HttpStatusCode . OK )
@@ -448,7 +448,7 @@ public TinCan.LRSResponse.StatementsResult SaveStatements(List<Statement> statem
448448 return r ;
449449 }
450450
451- var ids = JArray . Parse ( System . Text . Encoding . UTF8 . GetString ( res . content ) ) ;
451+ var ids = JArray . Parse ( Encoding . UTF8 . GetString ( res . content ) ) ;
452452 for ( int i = 0 ; i < ids . Count ; i ++ )
453453 {
454454 statements [ i ] . id = new Guid ( ( String ) ids [ i ] ) ;
@@ -492,7 +492,7 @@ public TinCan.LRSResponse.StatementsResult QueryStatements(StatementsQuery query
492492 }
493493
494494 r . success = true ;
495- r . content = new StatementsResult ( new json . StringOfJSON ( System . Text . Encoding . UTF8 . GetString ( res . content ) ) ) ;
495+ r . content = new StatementsResult ( new json . StringOfJSON ( Encoding . UTF8 . GetString ( res . content ) ) ) ;
496496
497497 return r ;
498498 }
@@ -518,7 +518,7 @@ public TinCan.LRSResponse.StatementsResult MoreStatements(StatementsResult resul
518518 }
519519
520520 r . success = true ;
521- r . content = new StatementsResult ( new json . StringOfJSON ( System . Text . Encoding . UTF8 . GetString ( res . content ) ) ) ;
521+ r . content = new StatementsResult ( new json . StringOfJSON ( Encoding . UTF8 . GetString ( res . content ) ) ) ;
522522
523523 return r ;
524524 }
0 commit comments