Frames-Proj / frames

6 stars 6 forks source link

Refactor video and comment model to have a single point of truth about the members #90

Open ethanpailes opened 7 years ago

ethanpailes commented 7 years ago

Right now there is an interface that actually gets stored on the SafeNET and a bunch of class members which the interface gets unpacked into. It would be much cleaner to have a single _data member and then a bunch of get functions which provide access to the relevant members. The best part is that this can be achieved without breaking the interface because typescript is awesome.