public virtual bool requestImage(int index)
        {
            // width and height logic to be developed by consumer , current support max 320x240.
//JAVA TO C# CONVERTER WARNING: The original Java variable was marked 'final':
//ORIGINAL LINE: final ImgReqMsg uRequest = new ImgReqMsg((long) index, 320, 240);
            ImageFetchModelImpl.ImgReqMsg uRequest = new ImageFetchModelImpl.ImgReqMsg((long)index, 320, 240);
            string uJsonStringToSend = "";

            try
            {
                uJsonStringToSend = uRequest.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);
                return(false);
            }
            if (mConnectionHandler != null)
            {
                try
                {
                    mConnectionHandler.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);
                }
            }
            return(true);
        }
		public virtual bool requestImage(int index)
		{
			// width and height logic to be developed by consumer , current support max 320x240.
//JAVA TO C# CONVERTER WARNING: The original Java variable was marked 'final':
//ORIGINAL LINE: final ImgReqMsg uRequest = new ImgReqMsg((long) index, 320, 240);
			ImageFetchModelImpl.ImgReqMsg uRequest = new ImageFetchModelImpl.ImgReqMsg((long) index, 320, 240);
			string uJsonStringToSend = "";
			try
			{
				uJsonStringToSend = uRequest.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);
				return false;
			}
			if (mConnectionHandler != null)
			{
				try
				{
					mConnectionHandler.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);
				}
			}
			return true;
		}