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

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

public final class PermissionsResult
{
  private final boolean mExternalStorageGranted;
  private final boolean mLocationGranted;
  private final boolean mGetAccountsGranted;

  public PermissionsResult(boolean externalStorageGranted, boolean locationGranted,
                           boolean getAccountsGranted)
  {
    mExternalStorageGranted = externalStorageGranted;
    mLocationGranted = locationGranted;
    mGetAccountsGranted = getAccountsGranted;
  }

  public boolean isExternalStorageGranted()
  {
    return mExternalStorageGranted;
  }

  public boolean isLocationGranted()
  {
    return mLocationGranted;
  }

  public boolean isGetAccountsGranted()
  {
    return mGetAccountsGranted;
  }
}