[android] Added missed 'FWD_DURAION' metadata type on Java side', commented 'FWD_MAXSPEED' and added missed 'FWD_TEST_ID' type to make java enum identical to core

This commit is contained in:
Александр Зацепин 2019-09-12 18:00:17 +03:00 committed by Tatiana Yan
parent d7ed8474e2
commit d19f74317c
2 changed files with 5 additions and 3 deletions

View file

@ -31,20 +31,21 @@ public class Metadata implements Parcelable
FMD_POSTCODE(15),
// TODO: It is hacked in jni and returns full Wikipedia url. Should use separate getter instead.
FMD_WIKIPEDIA(16),
FMD_MAXSPEED(17),
// FMD_MAXSPEED(17),
FMD_FLATS(18),
FMD_HEIGHT(19),
FMD_MIN_HEIGHT(20),
FMD_DENOMINATION(21),
FMD_BUILDING_LEVELS(22),
FWD_TEST_ID(23),
FMD_SPONSORED_ID(24),
FMD_PRICE_RATE(25),
FMD_RATING(26),
FMD_BANNER_URL(27),
FMD_LEVEL(28),
FMD_AIRPORT_IATA(29),
FMD_AIRPORT_BRAND(30);
FMD_BRAND(30),
FMD_DURATION(31);
private final int mMetaType;
MetadataType(int metadataType)

View file

@ -100,6 +100,7 @@ class Metadata : public MetadataBase
public:
/// @note! Do not change values here.
/// Add new types to the end of list, before FMD_COUNT.
/// Add new types to the corresponding list in Java.
/// For types parsed from OSM get corresponding OSM tag to MetadataTagProcessor::TypeFromString().
enum EType : int8_t
{