This file contains hidden or 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.looper - new AtomicReference<Looper>(); | |
| this.thread = new Thread(new Runnable() { | |
| @Override public void run() { | |
| Looper.prepare(); | |
| LocationService.this.looper.set(Looper.myLooper()); | |
| handler = new Handler(Looper.myLooper()); | |
| Looper.loop(); | |
| } | |
| }, "Dash-Location-Looper"); | |
| this.thread.start(); |
This file contains hidden or 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
| // The GeoQueryRequest will contain the inputted QueryRequest (decorated with geo-hash/etc) | |
| // as well as a QueryResultGeoFilter to post process the results | |
| GeoQueryRequst geoQueryRequest = geo.radiusQuery(QueryRequest request, double latitude, double longitude, double radius, Config config); | |
| QueryRequest queryRequest = geoQueryRequest.queryRequest; | |
| // clients will use GeoQueryRequest in a manner similar to the following | |
| List<Map<String, AttributeValue>> resultItems = new ArrayList<Map<String, AttributeValue>>((limit < 1000 ? limit : 1000)); | |
| do { | |
| try { | |
| queryResult = ddb.query(queryRequest); |
This file contains hidden or 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
| test ClassToTest { | |
| methodToTest() { | |
| // testing method named 'methodToTest' on class ClassToTest which takes 0 arguments | |
| } | |
| methodToTest(String) { | |
| // testing overloaded method named 'methodToTest' on class ClassToTest which takes 1 argument of type String | |
| } | |
| // note, there is no restriction one must organize code in this way, this exists to allow programmers to more neatly organize their test methods | |
| } |
This file contains hidden or 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
| {"grant_type":"password", | |
| "client_id":"CLIENT_ID", | |
| "username":"USER_USERNAME", | |
| "password":"USER_PASSWORD", | |
| "provider":"Dash"} |
This file contains hidden or 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
| {"access_token":"kdjfdMkjdkfjf2o2kj2kjfjkdjk@111gi3i3b32"} |
This file contains hidden or 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
| {"userId":"USER_EMAIL"} |
This file contains hidden or 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
| {"userId":"USER_EMAIL", | |
| "code":"RESET_CODE", | |
| "password":"NEW_PASSWORD"} |
This file contains hidden or 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
| {"oldPassword":"OLD_PASSWORD", | |
| "password":"NEW_PASSWORD"} |
This file contains hidden or 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
| {"name":"USER_FULL_NAME", | |
| "email":"USER_EMAIL", | |
| "password":"USER_PASSWORD", | |
| "timeZoneId":"USER_TIME_ZONE_ID", | |
| "localeId":"USER_LOCALE_ID"} |
This file contains hidden or 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
| Intl.DateTimeFormat().resolvedOptions().timeZone |