开发者

Validation in MVP pattern

开发者 https://www.devze.com 2023-04-09 21:39 出处:网络
I am creating a program which utilizes MVP architecture.Please tell me which is the best place to write the validation. Someone told me that the code in presenter should only contains logic to handle

I am creating a program which utilizes MVP architecture. Please tell me which is the best place to write the validation. Someone told me that the code in presenter should only contains logic to handle events raised from the GUI and format values collected from the model so that view can display values without an开发者_运维百科y overhear. Is this correct?

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号