private void sendTbListMsg(GalleryProviderConnection connection) { //JAVA TO C# CONVERTER WARNING: The original Java variable was marked 'final': //ORIGINAL LINE: final TBListRespMsg uRMessage = new TBListRespMsg(mResult, mReason, mTb.size(), mTb); ImageFetchModelImpl.TBListRespMsg uRMessage = new ImageFetchModelImpl.TBListRespMsg(mResult, mReason, mTb.Count, mTb); string uJsonStringToSend = ""; try { uJsonStringToSend = uRMessage.toJSON().ToString(); } //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); } if (mConnectionsMap != null) { try { connection.send(GALLERY_CHANNEL_ID, uJsonStringToSend.GetBytes()); } //JAVA TO C# CONVERTER WARNING: 'final' catch parameters are not available in C#: //ORIGINAL LINE: catch (final java.io.IOException e) catch (IOException e) { Console.WriteLine(e.ToString()); Console.Write(e.StackTrace); } } }
private void sendTbListMsg(GalleryProviderConnection connection) { //JAVA TO C# CONVERTER WARNING: The original Java variable was marked 'final': //ORIGINAL LINE: final TBListRespMsg uRMessage = new TBListRespMsg(mResult, mReason, mTb.size(), mTb); ImageFetchModelImpl.TBListRespMsg uRMessage = new ImageFetchModelImpl.TBListRespMsg(mResult, mReason, mTb.Count, mTb); string uJsonStringToSend = ""; try { uJsonStringToSend = uRMessage.toJSON().ToString(); } //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); } if (mConnectionsMap != null) { try { connection.send(GALLERY_CHANNEL_ID, uJsonStringToSend.GetBytes()); } //JAVA TO C# CONVERTER WARNING: 'final' catch parameters are not available in C#: //ORIGINAL LINE: catch (final java.io.IOException e) catch (IOException e) { Console.WriteLine(e.ToString()); Console.Write(e.StackTrace); } } }