This is a generic question about the responsibility of a class in downloading and parsing it's own members
and if this is considered good practice.
I have a now large program that downloads multiple objects from the internet and saves them into lists
I am trying to keep my main class as "clean" as possible.
My classes are mainly structures and I store global lists of such objects in either main or starter.
Should the class contain the code that downloads the objects from the internet, and should the parsing be done inside the class, which means instantiating an object of a class just so I can downloading and parsing such objects and them add them to a global list, or should I define another class for downloading and parsing.
I had thought about a code module but these can't handle events such as jobdone
and if this is considered good practice.
I have a now large program that downloads multiple objects from the internet and saves them into lists
I am trying to keep my main class as "clean" as possible.
My classes are mainly structures and I store global lists of such objects in either main or starter.
Should the class contain the code that downloads the objects from the internet, and should the parsing be done inside the class, which means instantiating an object of a class just so I can downloading and parsing such objects and them add them to a global list, or should I define another class for downloading and parsing.
I had thought about a code module but these can't handle events such as jobdone