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
class SelectCountry extends StatefulWidget { | |
const SelectCountry({Key? key}) : super(key: key); | |
@override | |
_SelectCountryState createState() => _SelectCountryState(); | |
} | |
class _SelectCountryState extends State<SelectCountry> { | |
List<dynamic>? dataRetrieved; // data decoded from the json file | |
List<dynamic>? data; // data to display on the screen |
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
class EditNumber extends StatefulWidget { | |
const EditNumber({Key? key}) : super(key: key); | |
@override | |
_EditNumberState createState() => _EditNumberState(); | |
} | |
class _EditNumberState extends State<EditNumber> { | |
var _enterPhoneNumber = TextEditingController(); | |
Map<String, dynamic> data = {"name": "Portugal", "code": "+351"}; |
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 is a basic workflow to help you get started with Actions | |
name: CI | |
# Controls when the action will run. Triggers the workflow on push or pull request | |
# events but only for the master branch | |
on: | |
push: | |
branches: [ dev ] | |
pull_request: |
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
<render mime="application/pdf"> | |
<filterlist> | |
<fonts> | |
<font kerning="yes" embed-url="cms://154291159"> | |
<font-triplet name="arial" style="normal" weight="normal"/> | |
</font> | |
<font kerning="yes" embed-url="cms://154291159"> | |
<font-triplet name="arial" style="normal" weight="bold"/> | |
</font> | |
<font kerning="yes" embed-url="cms://154291159"> |
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
<font kerning="yes" embed-url="cms://154291159"> | |
<font-triplet name="arial" style="normal" weight="normal"/> | |
</font> |
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
<render mime="application/pdf"> |
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
private static RestService GetRetrofitService(){ | |
return new Retrofit.Builder() | |
.baseUrl("https://api.jcdecaux.com") | |
.client(Utils.GetRequestHeader()) | |
.addConverterFactory(GsonConverterFactory.create()) | |
.build().create(RestService.class); | |
} |
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
public static void GetStationList(final String contract, final ICallBackStation oCallBack, Context context){ | |
RestService restService = GetRetrofitService(); | |
HashMap<String, String> queryMap = new HashMap<>(); | |
queryMap.put("apiKey", "XXXXXXXXXXXXXXX"); | |
queryMap.put("contract", contract); | |
Call<List<StationReply>> call = restService.getStationList(queryMap); | |
call.enqueue(new Callback<List<StationReply>>() { | |
@Override |
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
public class StationReply { | |
String number; | |
String name; | |
String address; | |
String latitude; | |
String longitude; | |
public String getNumber() { | |
return number; |
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
public interface RestService { | |
@GET("/vls/v1/stations") | |
Call<List<StationReply>> getStationList(@QueryMap Map<String, String> options); | |
} |
NewerOlder