-
Notifications
You must be signed in to change notification settings - Fork 118
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How is it done if the Json is an array? #6
Comments
hi @Rafelcf , thanks for your comment. If you receive an array, just you need to change on the retrofit interface for example : |
<!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
code
{mso-style-priority:99;
font-family:"Courier New";}
.MsoChpDefault
{mso-style-type:export-only;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:70.85pt 3.0cm 70.85pt 3.0cm;}
div.WordSection1
{page:WordSection1;}
--> Perfect thanks De: Eduardo José Medina AlfaroEnviado: lunes, 18 de octubre de 2021 18:53Para: emedinaa/kotlin-mvvmCC: RafelCf; MentionAsunto: Re: [emedinaa/kotlin-mvvm] How is it done if the Json is an array? (#6) hi @Rafelcf , thanks for your comment. If you receive an array, just you need to change on the retrofit interfacehttps://github.com/emedinaa/kotlin-mvvm/blob/master/KotlinMVVM/app/src/main/java/com/emedinaa/kotlinmvvm/data/ApiClient.ktfor example :interface ServicesApiInterface { @get("/api/museums/") fun museums(): Call<List<Museum>> }—You are receiving this because you were mentioned.Reply to this email directly, view it on GitHub, or unsubscribe.
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I would like to know how the MainActivity and the ViewModel are made, if the Json is an array? Thank you
The text was updated successfully, but these errors were encountered: