using System;
using System.Collections.Generic;
using Android.Runtime;
using Java.Interop;

namespace Com.Uhf.Api.Cls {

	// Metadata.xml XPath class reference: path="/api/package[@name='com.uhf.api.cls']/class[@name='GpiInfo_ST']"
	[global::Android.Runtime.Register ("com/uhf/api/cls/GpiInfo_ST", DoNotGenerateAcw=true)]
	public partial class GpiInfo_ST : global::Java.Lang.Object {

		// Metadata.xml XPath field reference: path="/api/package[@name='com.uhf.api.cls']/class[@name='GpiInfo_ST']/field[@name='gpiCount']"
		[Register ("gpiCount")]
		public int GpiCount {
			get {
				const string __id = "gpiCount.I";

				var __v = _members.InstanceFields.GetInt32Value (__id, this);
				return __v;
			}
			set {
				const string __id = "gpiCount.I";

				try {
					_members.InstanceFields.SetValue (__id, this, value);
				} finally {
				}
			}
		}


		// Metadata.xml XPath field reference: path="/api/package[@name='com.uhf.api.cls']/class[@name='GpiInfo_ST']/field[@name='gpiStats']"
		[Register ("gpiStats")]
		public IList<Com.Uhf.Api.Cls.GpiState_ST> GpiStats {
			get {
				const string __id = "gpiStats.[Lcom/uhf/api/cls/GpiState_ST;";

				var __v = _members.InstanceFields.GetObjectValue (__id, this);
				return global::Android.Runtime.JavaArray<global::Com.Uhf.Api.Cls.GpiState_ST>.FromJniHandle (__v.Handle, JniHandleOwnership.TransferLocalRef);
			}
			set {
				const string __id = "gpiStats.[Lcom/uhf/api/cls/GpiState_ST;";

				IntPtr native_value = global::Android.Runtime.JavaArray<global::Com.Uhf.Api.Cls.GpiState_ST>.ToLocalJniHandle (value);
				try {
					_members.InstanceFields.SetValue (__id, this, new JniObjectReference (native_value));
				} finally {
					global::Android.Runtime.JNIEnv.DeleteLocalRef (native_value);
				}
			}
		}

		static readonly JniPeerMembers _members = new XAPeerMembers ("com/uhf/api/cls/GpiInfo_ST", typeof (GpiInfo_ST));

		internal static IntPtr class_ref {
			get { return _members.JniPeerType.PeerReference.Handle; }
		}

		[global::System.Diagnostics.DebuggerBrowsable (global::System.Diagnostics.DebuggerBrowsableState.Never)]
		[global::System.ComponentModel.EditorBrowsable (global::System.ComponentModel.EditorBrowsableState.Never)]
		public override global::Java.Interop.JniPeerMembers JniPeerMembers {
			get { return _members; }
		}

		[global::System.Diagnostics.DebuggerBrowsable (global::System.Diagnostics.DebuggerBrowsableState.Never)]
		[global::System.ComponentModel.EditorBrowsable (global::System.ComponentModel.EditorBrowsableState.Never)]
		protected override IntPtr ThresholdClass {
			get { return _members.JniPeerType.PeerReference.Handle; }
		}

		[global::System.Diagnostics.DebuggerBrowsable (global::System.Diagnostics.DebuggerBrowsableState.Never)]
		[global::System.ComponentModel.EditorBrowsable (global::System.ComponentModel.EditorBrowsableState.Never)]
		protected override global::System.Type ThresholdType {
			get { return _members.ManagedPeerType; }
		}

		protected GpiInfo_ST (IntPtr javaReference, JniHandleOwnership transfer) : base (javaReference, transfer)
		{
		}

		// Metadata.xml XPath constructor reference: path="/api/package[@name='com.uhf.api.cls']/class[@name='GpiInfo_ST']/constructor[@name='GpiInfo_ST' and count(parameter)=0]"
		[Register (".ctor", "()V", "")]
		public unsafe GpiInfo_ST () : base (IntPtr.Zero, JniHandleOwnership.DoNotTransfer)
		{
			const string __id = "()V";

			if (((global::Java.Lang.Object) this).Handle != IntPtr.Zero)
				return;

			try {
				var __r = _members.InstanceMethods.StartCreateInstance (__id, ((object) this).GetType (), null);
				SetHandle (__r.Handle, JniHandleOwnership.TransferLocalRef);
				_members.InstanceMethods.FinishCreateInstance (__id, this, null);
			} finally {
			}
		}

	}
}
