//------------------------------------------------------------------------------
//
// This code was generated by a tool.
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
//
//------------------------------------------------------------------------------
#nullable restore
using System;
using System.Collections.Generic;
using Android.Runtime;
using Java.Interop;
namespace Com.Tencent.Tinker.Lib.Service {
// Metadata.xml XPath class reference: path="/api/package[@name='com.tencent.tinker.lib.service']/class[@name='PatchResult']"
[global::Android.Runtime.Register ("com/tencent/tinker/lib/service/PatchResult", DoNotGenerateAcw=true)]
public partial class PatchResult : global::Java.Lang.Object, global::Java.IO.ISerializable {
// Metadata.xml XPath field reference: path="/api/package[@name='com.tencent.tinker.lib.service']/class[@name='PatchResult']/field[@name='costTime']"
[Register ("costTime")]
public long CostTime {
get {
const string __id = "costTime.J";
var __v = _members.InstanceFields.GetInt64Value (__id, this);
return __v;
}
set {
const string __id = "costTime.J";
try {
_members.InstanceFields.SetValue (__id, this, value);
} finally {
}
}
}
// Metadata.xml XPath field reference: path="/api/package[@name='com.tencent.tinker.lib.service']/class[@name='PatchResult']/field[@name='e']"
[Register ("e")]
public global::Java.Lang.Throwable E {
get {
const string __id = "e.Ljava/lang/Throwable;";
var __v = _members.InstanceFields.GetObjectValue (__id, this);
return global::Java.Lang.Object.GetObject (__v.Handle, JniHandleOwnership.TransferLocalRef);
}
set {
const string __id = "e.Ljava/lang/Throwable;";
IntPtr native_value = global::Android.Runtime.JNIEnv.ToLocalJniHandle (value);
try {
_members.InstanceFields.SetValue (__id, this, new JniObjectReference (native_value));
} finally {
global::Android.Runtime.JNIEnv.DeleteLocalRef (native_value);
}
}
}
// Metadata.xml XPath field reference: path="/api/package[@name='com.tencent.tinker.lib.service']/class[@name='PatchResult']/field[@name='isSuccess']"
[Register ("isSuccess")]
public bool IsSuccess {
get {
const string __id = "isSuccess.Z";
var __v = _members.InstanceFields.GetBooleanValue (__id, this);
return __v;
}
set {
const string __id = "isSuccess.Z";
try {
_members.InstanceFields.SetValue (__id, this, value);
} finally {
}
}
}
// Metadata.xml XPath field reference: path="/api/package[@name='com.tencent.tinker.lib.service']/class[@name='PatchResult']/field[@name='patchVersion']"
[Register ("patchVersion")]
public string PatchVersion {
get {
const string __id = "patchVersion.Ljava/lang/String;";
var __v = _members.InstanceFields.GetObjectValue (__id, this);
return JNIEnv.GetString (__v.Handle, JniHandleOwnership.TransferLocalRef);
}
set {
const string __id = "patchVersion.Ljava/lang/String;";
IntPtr native_value = JNIEnv.NewString ((string)value);
try {
_members.InstanceFields.SetValue (__id, this, new JniObjectReference (native_value));
} finally {
JNIEnv.DeleteLocalRef (native_value);
}
}
}
// Metadata.xml XPath field reference: path="/api/package[@name='com.tencent.tinker.lib.service']/class[@name='PatchResult']/field[@name='rawPatchFilePath']"
[Register ("rawPatchFilePath")]
public string RawPatchFilePath {
get {
const string __id = "rawPatchFilePath.Ljava/lang/String;";
var __v = _members.InstanceFields.GetObjectValue (__id, this);
return JNIEnv.GetString (__v.Handle, JniHandleOwnership.TransferLocalRef);
}
set {
const string __id = "rawPatchFilePath.Ljava/lang/String;";
IntPtr native_value = JNIEnv.NewString ((string)value);
try {
_members.InstanceFields.SetValue (__id, this, new JniObjectReference (native_value));
} finally {
JNIEnv.DeleteLocalRef (native_value);
}
}
}
static readonly JniPeerMembers _members = new XAPeerMembers ("com/tencent/tinker/lib/service/PatchResult", typeof (PatchResult));
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 PatchResult (IntPtr javaReference, JniHandleOwnership transfer) : base (javaReference, transfer)
{
}
// Metadata.xml XPath constructor reference: path="/api/package[@name='com.tencent.tinker.lib.service']/class[@name='PatchResult']/constructor[@name='PatchResult' and count(parameter)=0]"
[Register (".ctor", "()V", "")]
public unsafe PatchResult () : 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 {
}
}
}
}