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

UTM.java « util « mapswithme « com « src « android - github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: db1696471b4bb39d9eeb215e33c2648cffa1b020 (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
package com.mapswithme.util;

import android.support.annotation.IntDef;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;

public class UTM
{
  @Retention(RetentionPolicy.SOURCE)
  @IntDef({ UTM_NONE, UTM_BOOKMARKS_PAGE_CATALOG_BUTTON, UTM_TOOLBAR_BUTTON,
            UTM_DOWNLOAD_MWM_BANNER, UTM_LARGE_TOPONYMS_PLACEPAGE_GALLERY,
            UTM_SIGHTSEEINGS_PLACEPAGE_GALLERY, UTM_DISCOVERY_PAGE_GALLERY,
            UTM_TIPS_AND_TRICKS, UTM_BOOKING_PROMO, UTM_CROWN_BUTTON })
  public @interface UTMType {}

  // The order of these constants must correspond to C++ enumeration in partners_api/utm.hpp.
  public static final int UTM_NONE = 0;
  public static final int UTM_BOOKMARKS_PAGE_CATALOG_BUTTON = 1;
  public static final int UTM_TOOLBAR_BUTTON = 2;
  public static final int UTM_DOWNLOAD_MWM_BANNER = 3;
  public static final int UTM_LARGE_TOPONYMS_PLACEPAGE_GALLERY = 4;
  public static final int UTM_SIGHTSEEINGS_PLACEPAGE_GALLERY = 5;
  public static final int UTM_DISCOVERY_PAGE_GALLERY = 6;
  public static final int UTM_TIPS_AND_TRICKS = 7;
  public static final int UTM_BOOKING_PROMO = 8;
  public static final int UTM_CROWN_BUTTON = 9;

  @Retention(RetentionPolicy.SOURCE)
  @IntDef({ UTM_CONTENT_DESCRIPTION, UTM_CONTENT_VIEW, UTM_CONTENT_DETAILS, UTM_CONTENT_MORE })
  public @interface UTMContentType {}

  // The order of these constants must correspond to C++ enumeration in partners_api/utm.hpp.
  public static final int UTM_CONTENT_DESCRIPTION = 0;
  public static final int UTM_CONTENT_VIEW = 1;
  public static final int UTM_CONTENT_DETAILS = 2;
  public static final int UTM_CONTENT_MORE = 3;
}