/
githubmirror
/
omim
Обзор
Документация
Войти
/
githubmirror
/
omim
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
android/src/com/mapswithme/maps/api/ParsingResult.java
45 строк
1 KB
Arsentiy Milchakov
[deep links] Deep link parsing refactoring. Review fixes.
19 окт 2020, 16:34
19 окт 2020, 16:34
77379f8
Код
Авторство
О чём код?
package com.mapswithme.maps.api; import androidx.annotation.IntDef; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; public class ParsingResult { @Retention(RetentionPolicy.SOURCE) @IntDef({ TYPE_INCORRECT, TYPE_MAP, TYPE_ROUTE, TYPE_SEARCH, TYPE_LEAD, TYPE_CATALOGUE, TYPE_CATALOGUE_PATH, TYPE_SUBSCRIPTION}) public @interface UrlType {} // Represents url_scheme::ParsedMapApi::UrlType from c++ part. public static final int TYPE_INCORRECT = 0; public static final int TYPE_MAP = 1; public static final int TYPE_ROUTE = 2; public static final int TYPE_SEARCH = 3; public static final int TYPE_LEAD = 4; public static final int TYPE_CATALOGUE = 5; public static final int TYPE_CATALOGUE_PATH = 6; public static final int TYPE_SUBSCRIPTION = 7; private final int mUrlType; private final boolean mSuccess; @SuppressWarnings("unused") public ParsingResult(@UrlType int urlType, boolean isSuccess) { mUrlType = urlType; mSuccess = isSuccess; } @UrlType public int getUrlType() { return mUrlType; } public boolean isSuccess() { return mSuccess; } }