This repository has been archived by the owner on Aug 8, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[android] #3891 - implementing metada and download callbacks
- Loading branch information
Antonio Zugaldia
committed
Feb 21, 2016
1 parent
8446964
commit d379120
Showing
9 changed files
with
555 additions
and
76 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
47 changes: 47 additions & 0 deletions
47
...oid/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/offline/OfflineRegionError.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
package com.mapbox.mapboxsdk.offline; | ||
|
||
/** | ||
* Created by antonio on 2/21/16. | ||
*/ | ||
public class OfflineRegionError { | ||
|
||
/** | ||
* Success = 1 | ||
* NotFound = 2 | ||
* Server = 3 | ||
* Connection = 4 | ||
* Other = 6 | ||
*/ | ||
private int reason; | ||
|
||
/** | ||
/* An error message from the request handler, e.g. a server message or a system message | ||
/* informing the user about the reason for the failure. | ||
*/ | ||
private String message; | ||
|
||
/* | ||
* Constructors | ||
*/ | ||
|
||
private OfflineRegionError() { | ||
// For JNI use only | ||
} | ||
|
||
public OfflineRegionError(int reason, String message) { | ||
this.reason = reason; | ||
this.message = message; | ||
} | ||
|
||
/* | ||
* Getters | ||
*/ | ||
|
||
public int getReason() { | ||
return reason; | ||
} | ||
|
||
public String getMessage() { | ||
return message; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.