From dc4f41c472ace7087a9ce3cf57653c15afde437a Mon Sep 17 00:00:00 2001 From: Vitaliy Date: Wed, 6 May 2020 16:57:19 +0300 Subject: [PATCH] Update tracker aidl api --- .../net/osmand/aidl/IOsmAndAidlInterface.aidl | 3 + .../quickaction/QuickActionInfoParams.aidl | 3 + .../quickaction/QuickActionInfoParams.java | 71 +++++++++++++++++++ 3 files changed, 77 insertions(+) create mode 100644 OsmAnd-telegram/src/net/osmand/aidl/quickaction/QuickActionInfoParams.aidl create mode 100644 OsmAnd-telegram/src/net/osmand/aidl/quickaction/QuickActionInfoParams.java diff --git a/OsmAnd-telegram/src/net/osmand/aidl/IOsmAndAidlInterface.aidl b/OsmAnd-telegram/src/net/osmand/aidl/IOsmAndAidlInterface.aidl index 31158b895b..15dd230eb8 100644 --- a/OsmAnd-telegram/src/net/osmand/aidl/IOsmAndAidlInterface.aidl +++ b/OsmAnd-telegram/src/net/osmand/aidl/IOsmAndAidlInterface.aidl @@ -95,6 +95,7 @@ import net.osmand.aidl.contextmenu.RemoveContextMenuButtonsParams; import net.osmand.aidl.mapmarker.RemoveMapMarkersParams; import net.osmand.aidl.quickaction.QuickActionParams; +import net.osmand.aidl.quickaction.QuickActionInfoParams; // NOTE: Add new methods at the end of file!!! @@ -853,4 +854,6 @@ interface IOsmAndAidlInterface { boolean importProfile(in ProfileSettingsParams params); boolean executeQuickAction(in QuickActionParams params); + + boolean getQuickActionsInfo(out List quickActions); } diff --git a/OsmAnd-telegram/src/net/osmand/aidl/quickaction/QuickActionInfoParams.aidl b/OsmAnd-telegram/src/net/osmand/aidl/quickaction/QuickActionInfoParams.aidl new file mode 100644 index 0000000000..cd372308ad --- /dev/null +++ b/OsmAnd-telegram/src/net/osmand/aidl/quickaction/QuickActionInfoParams.aidl @@ -0,0 +1,3 @@ +package net.osmand.aidl.quickaction; + +parcelable QuickActionInfoParams; \ No newline at end of file diff --git a/OsmAnd-telegram/src/net/osmand/aidl/quickaction/QuickActionInfoParams.java b/OsmAnd-telegram/src/net/osmand/aidl/quickaction/QuickActionInfoParams.java new file mode 100644 index 0000000000..c5bbf91476 --- /dev/null +++ b/OsmAnd-telegram/src/net/osmand/aidl/quickaction/QuickActionInfoParams.java @@ -0,0 +1,71 @@ +package net.osmand.aidl.quickaction; + +import android.os.Parcel; +import android.os.Parcelable; + +public class QuickActionInfoParams implements Parcelable { + + private int actionId; + private String name; + private String actionType; + private String params; + + public QuickActionInfoParams(int actionId, String name, String actionType, String params) { + this.actionId = actionId; + this.name = name; + this.actionType = actionType; + this.params = params; + } + + public QuickActionInfoParams(Parcel in) { + readFromParcel(in); + } + + public static final Creator CREATOR = new Creator() { + @Override + public QuickActionInfoParams createFromParcel(Parcel in) { + return new QuickActionInfoParams(in); + } + + @Override + public QuickActionInfoParams[] newArray(int size) { + return new QuickActionInfoParams[size]; + } + }; + + public int getActionId() { + return actionId; + } + + public String getName() { + return name; + } + + public String getActionType() { + return actionType; + } + + public String getParams() { + return params; + } + + @Override + public void writeToParcel(Parcel out, int flags) { + out.writeInt(actionId); + out.writeString(name); + out.writeString(actionType); + out.writeString(params); + } + + private void readFromParcel(Parcel in) { + actionId = in.readInt(); + name = in.readString(); + actionType = in.readString(); + params = in.readString(); + } + + @Override + public int describeContents() { + return 0; + } +} \ No newline at end of file