This project has moved. For the latest updates, please go here.

inherit models

Aug 24, 2012 at 11:20 AM

First of all thank you for the cool library, it relay makes fun to work with it.

I’ve only one question…

Is there a reason why you don’t inherit the model classes… for example something like:

public abstract class SearchResulBase<T>
{
    public int id { get; set; }
    public int page { get; set; }
    public List<T> results { get; set; }
    public int total_pages { get; set; }
    public int total_results { get; set; }
}
public class TmdbGenreMovies : SearchResulBase<GenreMovie>
{ }

It would be more comfortable to work with the library, if some classes would inherit from the same base class

Regards, Musium

 

Coordinator
Aug 27, 2012 at 1:41 PM

Hi musium,

No there wasn't any reason for not inheriting...oversight I guess.  Excellent idea though and thank you.  Have now implemented and updated the source code.

Thanks,

Craig

Aug 29, 2012 at 9:09 AM

Thanks for the changings, it helps me to write a class witch can handle all the different types of results.