Welcome to mirror list, hosted at ThFree Co, Russian Federation.

ParsedUrlMwmRequest.java « api « maps « mapswithme « com « src « android - github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: fe4556571a49ce13035c7116e712d7ed61947c61 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
package com.mapswithme.maps.api;

import android.support.annotation.IntDef;

import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;

/**
 * Represents url_scheme::ParsedMapApi::ParsingResult from core.
 */
public class ParsedUrlMwmRequest
{
  @Retention(RetentionPolicy.SOURCE)
  @IntDef({RESULT_INCORRECT, RESULT_MAP, RESULT_ROUTE, RESULT_SEARCH, RESULT_LEAD})
  public @interface ParsingResult {}

  public static final int RESULT_INCORRECT = 0;
  public static final int RESULT_MAP = 1;
  public static final int RESULT_ROUTE = 2;
  public static final int RESULT_SEARCH = 3;
  public static final int RESULT_LEAD = 4;

  public final RoutePoint[] mRoutePoints;
  public final String mGlobalUrl;
  public final String mAppTitle;
  public final int mVersion;
  public final double mZoomLevel;
  public final boolean mGoBackOnBalloonClick;
  public final boolean mIsValid;

  public ParsedUrlMwmRequest(RoutePoint[] routePoints, String globalUrl, String appTitle, int version, double zoomLevel, boolean goBackOnBalloonClick, boolean isValid) {
    this.mRoutePoints = routePoints;
    this.mGlobalUrl = globalUrl;
    this.mAppTitle = appTitle;
    this.mVersion = version;
    this.mZoomLevel = zoomLevel;
    this.mGoBackOnBalloonClick = goBackOnBalloonClick;
    this.mIsValid = isValid;
  }
}