private void handleThumbnails(string resp) { //JAVA TO C# CONVERTER WARNING: The original Java variable was marked 'final': //ORIGINAL LINE: final java.util.List<ImageStructure> uNotificationList = new java.util.ArrayList<ImageStructure>(); IList <ImageStructure> uNotificationList = new List <ImageStructure>(); 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 TBListRespMsg uResponse = new TBListRespMsg(); ImageFetchModelImpl.TBListRespMsg uResponse = new ImageFetchModelImpl.TBListRespMsg(); 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)) { //JAVA TO C# CONVERTER WARNING: The original Java variable was marked 'final': //ORIGINAL LINE: final java.util.List<TBModelJson> list = uResponse.getmsgTBList(); IList <ImageFetchModelImpl.TBModelJson> list = uResponse.getmsgTBList(); foreach (ImageFetchModelImpl.TBModelJson cur in list) { if (cur != null) { //JAVA TO C# CONVERTER WARNING: The original Java variable was marked 'final': //ORIGINAL LINE: final ImageStructure ds = new ImageStructure(String.valueOf(cur.getId()), cur.getData(), String.valueOf(cur.getSize()), cur.getName(), String.valueOf(cur.getWidth()), String.valueOf(cur.getHeight())); ImageStructure ds = new ImageStructure(cur.Id.ToString(), cur.Data, cur.Size.ToString(), cur.Name, cur.Width.ToString(), cur.Height.ToString()); uNotificationList.Add(ds); } } } mImageListReceiverRegistered.onThumbnailsReceived(uNotificationList); // to }
private void handleThumbnails(string resp) { //JAVA TO C# CONVERTER WARNING: The original Java variable was marked 'final': //ORIGINAL LINE: final java.util.List<ImageStructure> uNotificationList = new java.util.ArrayList<ImageStructure>(); IList<ImageStructure> uNotificationList = new List<ImageStructure>(); 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 TBListRespMsg uResponse = new TBListRespMsg(); ImageFetchModelImpl.TBListRespMsg uResponse = new ImageFetchModelImpl.TBListRespMsg(); 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)) { //JAVA TO C# CONVERTER WARNING: The original Java variable was marked 'final': //ORIGINAL LINE: final java.util.List<TBModelJson> list = uResponse.getmsgTBList(); IList<ImageFetchModelImpl.TBModelJson> list = uResponse.getmsgTBList(); foreach (ImageFetchModelImpl.TBModelJson cur in list) { if (cur != null) { //JAVA TO C# CONVERTER WARNING: The original Java variable was marked 'final': //ORIGINAL LINE: final ImageStructure ds = new ImageStructure(String.valueOf(cur.getId()), cur.getData(), String.valueOf(cur.getSize()), cur.getName(), String.valueOf(cur.getWidth()), String.valueOf(cur.getHeight())); ImageStructure ds = new ImageStructure(cur.Id.ToString(), cur.Data, cur.Size.ToString(), cur.Name, cur.Width.ToString(), cur.Height.ToString()); uNotificationList.Add(ds); } } } mImageListReceiverRegistered.onThumbnailsReceived(uNotificationList); // to }