forked from organicmaps/organicmaps
[partners_api] Rutaxi: dummies for platforms
This commit is contained in:
parent
d38f2a554e
commit
5fdf81c5d4
5 changed files with 46 additions and 1 deletions
|
@ -53,7 +53,7 @@ public class TaxiAdapter extends PagerAdapter
|
|||
String separator;
|
||||
// We ignore all Yandex.Taxi product names until they do support of passing product parameters
|
||||
// to their app via deeplink.
|
||||
if (mType == TaxiType.YANDEX || mType == TaxiType.MAXIM)
|
||||
if (mType == TaxiType.YANDEX || mType == TaxiType.MAXIM || mType == TaxiType.RUTAXI)
|
||||
{
|
||||
name.setText(mType.getTitle());
|
||||
separator = " • ~";
|
||||
|
|
|
@ -104,6 +104,39 @@ public enum TaxiType
|
|||
{
|
||||
return "Maxim";
|
||||
}
|
||||
},
|
||||
// Dummy.
|
||||
RUTAXI
|
||||
{
|
||||
@NonNull
|
||||
public String getPackageName()
|
||||
{
|
||||
return "ru.rutaxi.vezet";
|
||||
}
|
||||
|
||||
@NonNull
|
||||
public Utils.PartnerAppOpenMode getOpenMode()
|
||||
{
|
||||
return Utils.PartnerAppOpenMode.Direct;
|
||||
}
|
||||
|
||||
@DrawableRes
|
||||
public int getIcon()
|
||||
{
|
||||
return R.drawable.ic_taxi_logo_maksim;
|
||||
}
|
||||
|
||||
@StringRes
|
||||
public int getTitle()
|
||||
{
|
||||
return R.string.maxim_taxi_title;
|
||||
}
|
||||
|
||||
@NonNull
|
||||
public String getProviderName()
|
||||
{
|
||||
return "Rutaxi";
|
||||
}
|
||||
};
|
||||
|
||||
@NonNull
|
||||
|
|
|
@ -133,6 +133,10 @@ using namespace taxi;
|
|||
self.type = MWMRoutePreviewTaxiCellTypeMaxim;
|
||||
providerName = kStatMaxim;
|
||||
break;
|
||||
// Dummy.
|
||||
case taxi::Provider::Type::Rutaxi:
|
||||
self.type = MWMRoutePreviewTaxiCellTypeMaxim;
|
||||
providerName = kStatMaxim;
|
||||
case taxi::Provider::Type::Count:
|
||||
LOG(LERROR, ("Incorrect taxi provider"));
|
||||
break;
|
||||
|
@ -167,6 +171,8 @@ using namespace taxi;
|
|||
case taxi::Provider::Type::Uber: provider = kStatUber; break;
|
||||
case taxi::Provider::Type::Yandex: provider = kStatYandex; break;
|
||||
case taxi::Provider::Type::Maxim: provider = kStatMaxim; break;
|
||||
// Dummy.
|
||||
case taxi::Provider::Type::Rutaxi: provider = kStatMaxim; break;
|
||||
case taxi::Provider::Count: LOG(LERROR, ("Incorrect taxi provider")); break;
|
||||
}
|
||||
NSString * errorValue = nil;
|
||||
|
|
|
@ -107,6 +107,8 @@ NSString * const kUserDefaultsLatLonAsDMSKey = @"UserDefaultsLatLonAsDMS";
|
|||
case taxi::Provider::Uber: provider = kStatUber; break;
|
||||
case taxi::Provider::Yandex: provider = kStatYandex; break;
|
||||
case taxi::Provider::Maxim: provider = kStatMaxim; break;
|
||||
// Dummy.
|
||||
case taxi::Provider::Rutaxi: provider = kStatMaxim; break;
|
||||
case taxi::Provider::Count: LOG(LERROR, ("Incorrect taxi provider")); break;
|
||||
}
|
||||
[Statistics logEvent:kStatPlacepageTaxiShow withParameters:@{ @"provider" : provider }];
|
||||
|
|
|
@ -386,6 +386,8 @@ map<MetainfoRows, Class> const kMetaInfoCells = {
|
|||
case taxi::Provider::Uber: type = MWMPlacePageTaxiProviderUber; break;
|
||||
case taxi::Provider::Yandex: type = MWMPlacePageTaxiProviderYandex; break;
|
||||
case taxi::Provider::Maxim: type = MWMPlacePageTaxiProviderMaxim; break;
|
||||
// Dummy.
|
||||
case taxi::Provider::Rutaxi: type = MWMPlacePageTaxiProviderMaxim; break;
|
||||
case taxi::Provider::Count: LOG(LERROR, ("Incorrect taxi provider")); break;
|
||||
}
|
||||
[c configWithType:type delegate:delegate];
|
||||
|
@ -628,6 +630,8 @@ map<MetainfoRows, Class> const kMetaInfoCells = {
|
|||
case taxi::Provider::Uber: provider = kStatUber; break;
|
||||
case taxi::Provider::Yandex: provider = kStatYandex; break;
|
||||
case taxi::Provider::Maxim: provider = kStatMaxim; break;
|
||||
// Dummy.
|
||||
case taxi::Provider::Rutaxi: provider = kStatMaxim; break;
|
||||
case taxi::Provider::Count: LOG(LERROR, ("Incorrect taxi provider")); break;
|
||||
}
|
||||
[Statistics logEvent:kStatPlacepageTaxiShow
|
||||
|
|
Loading…
Add table
Reference in a new issue