Dans ce code, nous essayons de mettre un entier dans une variable de type String, et une chaîne de caractères dans une variable de type Int, et heureusement, Xcode génère des erreurs.
In that code, you're trying to put an integer into a string variable, and a string into an integer variable - and, thankfully, Xcode will throw up errors.
Path("username") String username : En paramètre de notre méthode getFollowing(), nous indiquons une variable de type String représentant le paramètre que Retrofit placera dans l'URL de la méthode GET.
Path("username") String username: As a parameter in our method getFollowing(), we're indicating a String variable representing the parameter that Retrofit will place in the URL of the GET method.
Déclare une variable de type string appelée nom, avec la valeur""
Par exemple, une fonction, qui attend comme paramètre un integer (entier), à laquelle est passée une string (chaine de caractères) recevra une variable de type string.
For example, a function that is given an integer for a parameter that expects a string will get a variable of type string.
Er worden alleen voorbeelden gegeven om u te helpen het woord of de woordcombinatie waarop u hebt gezocht, te vertalen. Deze worden niet door ons geselecteerd of gevalideerd en kunnen ongepaste taal bevatten. Wij vragen u melding te maken van voorbeelden die dienen te worden aangepast of verwijderd. Vertalingen met grof of informeel taalgebruik worden meestal rood of oranje gemarkeerd.