DTO

Sep 24, 2014 at 8:28 AM
A Tweetinvi.Logic.Tweet object can contain a Tweetinvi.Logic.DTO.TweetDTO object. What is the significance of the latter, and what does DTO stand for in this context.
Coordinator
Sep 24, 2014 at 8:48 AM
Hi,

DTO stands for Data Transfer Object. These are object that contains no logic. Only properties with getter setter. It is a data representation of the JSON received from the Twitter REST API.

An ITweet contains an ITweetDTO. The ITweet acts as a proxy to access and update the information within the ITweetDTO. In a perfect world I would not have exposed the DTO from the ITweet interface but I felt like some people would like to play with it.

Therefore at no point should you feel the need to use the ITweetDTO. And I would recommend that you don't use it.

I Hope this is clear enough :)
Linvi
Marked as answer by linvi on 9/24/2014 at 2:17 AM
Sep 24, 2014 at 8:51 AM
Yes. thanks. I will ignore it in that case.