/*
 * This file is auto-generated.  DO NOT MODIFY.
 * Original file: /media/pperek/Dane/__Studia_doktoranckie/Dydaktyka/2013_2014_II_sem/SONPM/wyklad/Weather/WeatherReporter_XML_parsers/src/com/msi/manning/weather/IWeatherReporter.aidl
 */
package com.msi.manning.weather;
public interface IWeatherReporter extends android.os.IInterface
{
/** Local-side IPC implementation stub class. */
public static abstract class Stub extends android.os.Binder implements com.msi.manning.weather.IWeatherReporter
{
private static final java.lang.String DESCRIPTOR = "com.msi.manning.weather.IWeatherReporter";
/** Construct the stub at attach it to the interface. */
public Stub()
{
this.attachInterface(this, DESCRIPTOR);
}
/**
 * Cast an IBinder object into an com.msi.manning.weather.IWeatherReporter interface,
 * generating a proxy if needed.
 */
public static com.msi.manning.weather.IWeatherReporter asInterface(android.os.IBinder obj)
{
if ((obj==null)) {
return null;
}
android.os.IInterface iin = obj.queryLocalInterface(DESCRIPTOR);
if (((iin!=null)&&(iin instanceof com.msi.manning.weather.IWeatherReporter))) {
return ((com.msi.manning.weather.IWeatherReporter)iin);
}
return new com.msi.manning.weather.IWeatherReporter.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_getWeatherFor:
{
data.enforceInterface(DESCRIPTOR);
java.lang.String _arg0;
_arg0 = data.readString();
java.lang.String _result = this.getWeatherFor(_arg0);
reply.writeNoException();
reply.writeString(_result);
return true;
}
case TRANSACTION_addLocation:
{
data.enforceInterface(DESCRIPTOR);
java.lang.String _arg0;
_arg0 = data.readString();
java.lang.String _arg1;
_arg1 = data.readString();
java.lang.String _arg2;
_arg2 = data.readString();
this.addLocation(_arg0, _arg1, _arg2);
reply.writeNoException();
return true;
}
}
return super.onTransact(code, data, reply, flags);
}
private static class Proxy implements com.msi.manning.weather.IWeatherReporter
{
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 java.lang.String getWeatherFor(java.lang.String zip) throws android.os.RemoteException
{
android.os.Parcel _data = android.os.Parcel.obtain();
android.os.Parcel _reply = android.os.Parcel.obtain();
java.lang.String _result;
try {
_data.writeInterfaceToken(DESCRIPTOR);
_data.writeString(zip);
mRemote.transact(Stub.TRANSACTION_getWeatherFor, _data, _reply, 0);
_reply.readException();
_result = _reply.readString();
}
finally {
_reply.recycle();
_data.recycle();
}
return _result;
}
@Override public void addLocation(java.lang.String zip, java.lang.String city, java.lang.String region) 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.writeString(zip);
_data.writeString(city);
_data.writeString(region);
mRemote.transact(Stub.TRANSACTION_addLocation, _data, _reply, 0);
_reply.readException();
}
finally {
_reply.recycle();
_data.recycle();
}
}
}
static final int TRANSACTION_getWeatherFor = (android.os.IBinder.FIRST_CALL_TRANSACTION + 0);
static final int TRANSACTION_addLocation = (android.os.IBinder.FIRST_CALL_TRANSACTION + 1);
}
public java.lang.String getWeatherFor(java.lang.String zip) throws android.os.RemoteException;
public void addLocation(java.lang.String zip, java.lang.String city, java.lang.String region) throws android.os.RemoteException;
}
