android - retrofit框架请求下来的数据
PHP中文网
PHP中文网 2017-04-18 09:06:54
0
3
397

retrofit框架请求下来的数据bean类之前有三个参数,name,age,sex,现在后台又往这个借口里面新增的一个字
段,hight,我之前的bean类不变,还能请求下来这个bean类么?或者说请求下来的bean类会报错么????

PHP中文网
PHP中文网

认证高级PHP讲师

reply all(3)
阿神

You only need to add a variable in the bean and you can continue to use it, and you can also get new fields

If the code is not changed, no error will be reported, but the new fields cannot be obtained

Peter_Zhu

No, if there are still fields before the new request data, it can still be obtained, but the newly added fields cannot be obtained

阿神

This kind of problem. . . Just try it yourself. Be more hands-on. . If you have any questions, please ask again

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!