/*
 * This file is auto-generated.  DO NOT MODIFY.
 * Original file: /home/lipeng/disk256/workspase_kotlin/WizarViewAgentAssistant/example/src/main/aidl/com/wizarpos/wizarviewagentassistant/aidl/IEth0MgrService.aidl
 */
package com.wizarpos.wizarviewagentassistant.aidl;
public interface IEth0MgrService extends android.os.IInterface
{
/** Local-side IPC implementation stub class. */
public static abstract class Stub extends android.os.Binder implements com.wizarpos.wizarviewagentassistant.aidl.IEth0MgrService
{
private static final java.lang.String DESCRIPTOR = "com.wizarpos.wizarviewagentassistant.aidl.IEth0MgrService";
/** Construct the stub at attach it to the interface. */
public Stub()
{
this.attachInterface(this, DESCRIPTOR);
}
/**
 * Cast an IBinder object into an com.wizarpos.wizarviewagentassistant.aidl.IEth0MgrService interface,
 * generating a proxy if needed.
 */
public static com.wizarpos.wizarviewagentassistant.aidl.IEth0MgrService asInterface(android.os.IBinder obj)
{
if ((obj==null)) {
return null;
}
android.os.IInterface iin = obj.queryLocalInterface(DESCRIPTOR);
if (((iin!=null)&&(iin instanceof com.wizarpos.wizarviewagentassistant.aidl.IEth0MgrService))) {
return ((com.wizarpos.wizarviewagentassistant.aidl.IEth0MgrService)iin);
}
return new com.wizarpos.wizarviewagentassistant.aidl.IEth0MgrService.Stub.Proxy(obj);
}
@Override public android.os.IBinder asBinder()
{
return this;
}
@Override public boolean onTransact(int code, android.os.Parcel data, android.os.Parcel reply, int flags) throws android.os.RemoteException
{
switch (code)
{
case INTERFACE_TRANSACTION:
{
reply.writeString(DESCRIPTOR);
return true;
}
case TRANSACTION_enableStaticIp:
{
data.enforceInterface(DESCRIPTOR);
boolean _arg0;
_arg0 = (0!=data.readInt());
this.enableStaticIp(_arg0);
reply.writeNoException();
return true;
}
case TRANSACTION_isStaticIp:
{
data.enforceInterface(DESCRIPTOR);
boolean _result = this.isStaticIp();
reply.writeNoException();
reply.writeInt(((_result)?(1):(0)));
return true;
}
case TRANSACTION_setStaticIp:
{
data.enforceInterface(DESCRIPTOR);
com.wizarpos.wizarviewagentassistant.aidl.IpBean _arg0;
if ((0!=data.readInt())) {
_arg0 = com.wizarpos.wizarviewagentassistant.aidl.IpBean.CREATOR.createFromParcel(data);
}
else {
_arg0 = null;
}
boolean _result = this.setStaticIp(_arg0);
reply.writeNoException();
reply.writeInt(((_result)?(1):(0)));
return true;
}
case TRANSACTION_getStaticIp:
{
data.enforceInterface(DESCRIPTOR);
com.wizarpos.wizarviewagentassistant.aidl.IpBean _result = this.getStaticIp();
reply.writeNoException();
if ((_result!=null)) {
reply.writeInt(1);
_result.writeToParcel(reply, android.os.Parcelable.PARCELABLE_WRITE_RETURN_VALUE);
}
else {
reply.writeInt(0);
}
return true;
}
case TRANSACTION_enableEthernet:
{
data.enforceInterface(DESCRIPTOR);
boolean _arg0;
_arg0 = (0!=data.readInt());
this.enableEthernet(_arg0);
reply.writeNoException();
return true;
}
case TRANSACTION_getEthernetStatus:
{
data.enforceInterface(DESCRIPTOR);
boolean _result = this.getEthernetStatus();
reply.writeNoException();
reply.writeInt(((_result)?(1):(0)));
return true;
}
}
return super.onTransact(code, data, reply, flags);
}
private static class Proxy implements com.wizarpos.wizarviewagentassistant.aidl.IEth0MgrService
{
private android.os.IBinder mRemote;
Proxy(android.os.IBinder remote)
{
mRemote = remote;
}
@Override public android.os.IBinder asBinder()
{
return mRemote;
}
public java.lang.String getInterfaceDescriptor()
{
return DESCRIPTOR;
}
@Override public void enableStaticIp(boolean isStaticIp) throws android.os.RemoteException
{
android.os.Parcel _data = android.os.Parcel.obtain();
android.os.Parcel _reply = android.os.Parcel.obtain();
try {
_data.writeInterfaceToken(DESCRIPTOR);
_data.writeInt(((isStaticIp)?(1):(0)));
mRemote.transact(Stub.TRANSACTION_enableStaticIp, _data, _reply, 0);
_reply.readException();
}
finally {
_reply.recycle();
_data.recycle();
}
}
// true for static ip, else for dhcp.

@Override public boolean isStaticIp() throws android.os.RemoteException
{
android.os.Parcel _data = android.os.Parcel.obtain();
android.os.Parcel _reply = android.os.Parcel.obtain();
boolean _result;
try {
_data.writeInterfaceToken(DESCRIPTOR);
mRemote.transact(Stub.TRANSACTION_isStaticIp, _data, _reply, 0);
_reply.readException();
_result = (0!=_reply.readInt());
}
finally {
_reply.recycle();
_data.recycle();
}
return _result;
}
@Override public boolean setStaticIp(com.wizarpos.wizarviewagentassistant.aidl.IpBean ipBean) throws android.os.RemoteException
{
android.os.Parcel _data = android.os.Parcel.obtain();
android.os.Parcel _reply = android.os.Parcel.obtain();
boolean _result;
try {
_data.writeInterfaceToken(DESCRIPTOR);
if ((ipBean!=null)) {
_data.writeInt(1);
ipBean.writeToParcel(_data, 0);
}
else {
_data.writeInt(0);
}
mRemote.transact(Stub.TRANSACTION_setStaticIp, _data, _reply, 0);
_reply.readException();
_result = (0!=_reply.readInt());
}
finally {
_reply.recycle();
_data.recycle();
}
return _result;
}
@Override public com.wizarpos.wizarviewagentassistant.aidl.IpBean getStaticIp() throws android.os.RemoteException
{
android.os.Parcel _data = android.os.Parcel.obtain();
android.os.Parcel _reply = android.os.Parcel.obtain();
com.wizarpos.wizarviewagentassistant.aidl.IpBean _result;
try {
_data.writeInterfaceToken(DESCRIPTOR);
mRemote.transact(Stub.TRANSACTION_getStaticIp, _data, _reply, 0);
_reply.readException();
if ((0!=_reply.readInt())) {
_result = com.wizarpos.wizarviewagentassistant.aidl.IpBean.CREATOR.createFromParcel(_reply);
}
else {
_result = null;
}
}
finally {
_reply.recycle();
_data.recycle();
}
return _result;
}
/**
     * @param enable: true, open Ethernet; false, close Ethernet.
     *
     **/
@Override public void enableEthernet(boolean enable) throws android.os.RemoteException
{
android.os.Parcel _data = android.os.Parcel.obtain();
android.os.Parcel _reply = android.os.Parcel.obtain();
try {
_data.writeInterfaceToken(DESCRIPTOR);
_data.writeInt(((enable)?(1):(0)));
mRemote.transact(Stub.TRANSACTION_enableEthernet, _data, _reply, 0);
_reply.readException();
}
finally {
_reply.recycle();
_data.recycle();
}
}
/**
     * @return enable: true, open Ethernet; false, close Ethernet.
     *
     **/
@Override public boolean getEthernetStatus() throws android.os.RemoteException
{
android.os.Parcel _data = android.os.Parcel.obtain();
android.os.Parcel _reply = android.os.Parcel.obtain();
boolean _result;
try {
_data.writeInterfaceToken(DESCRIPTOR);
mRemote.transact(Stub.TRANSACTION_getEthernetStatus, _data, _reply, 0);
_reply.readException();
_result = (0!=_reply.readInt());
}
finally {
_reply.recycle();
_data.recycle();
}
return _result;
}
}
static final int TRANSACTION_enableStaticIp = (android.os.IBinder.FIRST_CALL_TRANSACTION + 0);
static final int TRANSACTION_isStaticIp = (android.os.IBinder.FIRST_CALL_TRANSACTION + 1);
static final int TRANSACTION_setStaticIp = (android.os.IBinder.FIRST_CALL_TRANSACTION + 2);
static final int TRANSACTION_getStaticIp = (android.os.IBinder.FIRST_CALL_TRANSACTION + 3);
static final int TRANSACTION_enableEthernet = (android.os.IBinder.FIRST_CALL_TRANSACTION + 4);
static final int TRANSACTION_getEthernetStatus = (android.os.IBinder.FIRST_CALL_TRANSACTION + 5);
}
public void enableStaticIp(boolean isStaticIp) throws android.os.RemoteException;
// true for static ip, else for dhcp.

public boolean isStaticIp() throws android.os.RemoteException;
public boolean setStaticIp(com.wizarpos.wizarviewagentassistant.aidl.IpBean ipBean) throws android.os.RemoteException;
public com.wizarpos.wizarviewagentassistant.aidl.IpBean getStaticIp() throws android.os.RemoteException;
/**
     * @param enable: true, open Ethernet; false, close Ethernet.
     *
     **/
public void enableEthernet(boolean enable) throws android.os.RemoteException;
/**
     * @return enable: true, open Ethernet; false, close Ethernet.
     *
     **/
public boolean getEthernetStatus() throws android.os.RemoteException;
}
