private void handleDownscaledImage(string resp) { ImageStructure image; JSONObject obj = null; try { obj = new JSONObject(resp); } //JAVA TO C# CONVERTER WARNING: 'final' catch parameters are not available in C#: //ORIGINAL LINE: catch (final org.json.JSONException e) catch (JSONException e) { Console.WriteLine(e.ToString()); Console.Write(e.StackTrace); return; } //JAVA TO C# CONVERTER WARNING: The original Java variable was marked 'final': //ORIGINAL LINE: final ImgRespMsg uResponse = new ImgRespMsg(); ImageFetchModelImpl.ImgRespMsg uResponse = new ImageFetchModelImpl.ImgRespMsg(); try { uResponse.fromJSON(obj); } //JAVA TO C# CONVERTER WARNING: 'final' catch parameters are not available in C#: //ORIGINAL LINE: catch (final org.json.JSONException e) catch (JSONException e) { Console.WriteLine(e.ToString()); Console.Write(e.StackTrace); return; } if (uResponse.Result.Equals("success", StringComparison.CurrentCultureIgnoreCase)) { // success case // decode and update UI //JAVA TO C# CONVERTER WARNING: The original Java variable was marked 'final': //ORIGINAL LINE: final TBModelJson img = uResponse.getDownscaledImg(); ImageFetchModelImpl.TBModelJson img = uResponse.DownscaledImg; image = new ImageStructure(img.Id.ToString(), img.Data, img.Size.ToString(), img.Name, img.Width.ToString(), img.Height.ToString()); mImageListReceiverRegistered.onImageReceived(image); } }
private void handleDownscaledImage(string resp) { ImageStructure image; JSONObject obj = null; try { obj = new JSONObject(resp); } //JAVA TO C# CONVERTER WARNING: 'final' catch parameters are not available in C#: //ORIGINAL LINE: catch (final org.json.JSONException e) catch (JSONException e) { Console.WriteLine(e.ToString()); Console.Write(e.StackTrace); return; } //JAVA TO C# CONVERTER WARNING: The original Java variable was marked 'final': //ORIGINAL LINE: final ImgRespMsg uResponse = new ImgRespMsg(); ImageFetchModelImpl.ImgRespMsg uResponse = new ImageFetchModelImpl.ImgRespMsg(); try { uResponse.fromJSON(obj); } //JAVA TO C# CONVERTER WARNING: 'final' catch parameters are not available in C#: //ORIGINAL LINE: catch (final org.json.JSONException e) catch (JSONException e) { Console.WriteLine(e.ToString()); Console.Write(e.StackTrace); return; } if (uResponse.Result.Equals("success", StringComparison.CurrentCultureIgnoreCase)) { // success case // decode and update UI //JAVA TO C# CONVERTER WARNING: The original Java variable was marked 'final': //ORIGINAL LINE: final TBModelJson img = uResponse.getDownscaledImg(); ImageFetchModelImpl.TBModelJson img = uResponse.DownscaledImg; image = new ImageStructure(img.Id.ToString(), img.Data, img.Size.ToString(), img.Name, img.Width.ToString(), img.Height.ToString()); mImageListReceiverRegistered.onImageReceived(image); } }