예제 #1
0
        protected override bool OnTransact(int code, global::Android.OS.Parcel data, global::Android.OS.Parcel reply, int flags)
        {
            switch (code)
            {
            case global::Android.OS.BinderConsts.InterfaceTransaction:
                reply.WriteString(descriptor);
                return(true);

            case TransactionWakeUp: {
                data.EnforceInterface(descriptor);
                String arg0 = default(String);
                arg0 = data.ReadString();
                String arg1 = default(String);
                arg1 = data.ReadString();
                int arg2 = default(int);
                arg2 = data.ReadInt();
                this.WakeUp(arg0, arg1, arg2);
                reply.WriteNoException();
                data.WriteString(arg0);
                data.WriteString(arg1);
                data.WriteInt(arg2);
                return(true);
            }
            }
            return(base.OnTransact(code, data, reply, flags));
        }
        protected override bool OnTransact(int code, global::Android.OS.Parcel data, global::Android.OS.Parcel reply, int flags)
        {
            switch (code)
            {
            case global::Android.OS.BinderConsts.InterfaceTransaction:
                reply.WriteString(descriptor);
                return(true);

            case TransactionIsBillingSupported: {
                data.EnforceInterface(descriptor);
                int arg0 = default(int);
                arg0 = data.ReadInt();
                String arg1 = default(String);
                arg1 = data.ReadString();
                String arg2 = default(String);
                arg2 = data.ReadString();
                var result = this.IsBillingSupported(arg0, arg1, arg2);
                reply.WriteNoException();
                reply.WriteInt(result);
                data.WriteInt(arg0);
                data.WriteString(arg1);
                data.WriteString(arg2);
                return(true);
            }

            case TransactionGetSkuDetails: {
                data.EnforceInterface(descriptor);
                int arg0 = default(int);
                arg0 = data.ReadInt();
                String arg1 = default(String);
                arg1 = data.ReadString();
                String arg2 = default(String);
                arg2 = data.ReadString();
                global::Android.OS.Bundle arg3 = default(global::Android.OS.Bundle);
                arg3 = data.ReadInt() != 0 ? (global::Android.OS.Bundle)global::Android.OS.Bundle.Creator.CreateFromParcel(data) : null;
                var result = this.GetSkuDetails(arg0, arg1, arg2, arg3);
                reply.WriteNoException();
                if (result != null)
                {
                    reply.WriteInt(1); result.WriteToParcel(reply, global::Android.OS.ParcelableWriteFlags.ReturnValue);
                }
                else
                {
                    reply.WriteInt(0);
                }
                data.WriteInt(arg0);
                data.WriteString(arg1);
                data.WriteString(arg2);
                return(true);
            }

            case TransactionGetBuyIntent: {
                data.EnforceInterface(descriptor);
                int arg0 = default(int);
                arg0 = data.ReadInt();
                String arg1 = default(String);
                arg1 = data.ReadString();
                String arg2 = default(String);
                arg2 = data.ReadString();
                String arg3 = default(String);
                arg3 = data.ReadString();
                String arg4 = default(String);
                arg4 = data.ReadString();
                var result = this.GetBuyIntent(arg0, arg1, arg2, arg3, arg4);
                reply.WriteNoException();
                if (result != null)
                {
                    reply.WriteInt(1); result.WriteToParcel(reply, global::Android.OS.ParcelableWriteFlags.ReturnValue);
                }
                else
                {
                    reply.WriteInt(0);
                }
                data.WriteInt(arg0);
                data.WriteString(arg1);
                data.WriteString(arg2);
                data.WriteString(arg3);
                data.WriteString(arg4);
                return(true);
            }

            case TransactionGetPurchases: {
                data.EnforceInterface(descriptor);
                int arg0 = default(int);
                arg0 = data.ReadInt();
                String arg1 = default(String);
                arg1 = data.ReadString();
                String arg2 = default(String);
                arg2 = data.ReadString();
                String arg3 = default(String);
                arg3 = data.ReadString();
                var result = this.GetPurchases(arg0, arg1, arg2, arg3);
                reply.WriteNoException();
                if (result != null)
                {
                    reply.WriteInt(1); result.WriteToParcel(reply, global::Android.OS.ParcelableWriteFlags.ReturnValue);
                }
                else
                {
                    reply.WriteInt(0);
                }
                data.WriteInt(arg0);
                data.WriteString(arg1);
                data.WriteString(arg2);
                data.WriteString(arg3);
                return(true);
            }

            case TransactionConsumePurchase: {
                data.EnforceInterface(descriptor);
                int arg0 = default(int);
                arg0 = data.ReadInt();
                String arg1 = default(String);
                arg1 = data.ReadString();
                String arg2 = default(String);
                arg2 = data.ReadString();
                var result = this.ConsumePurchase(arg0, arg1, arg2);
                reply.WriteNoException();
                reply.WriteInt(result);
                data.WriteInt(arg0);
                data.WriteString(arg1);
                data.WriteString(arg2);
                return(true);
            }
            }
            return(base.OnTransact(code, data, reply, flags));
        }