Replies: 1 comment 4 replies
-
I completed a Twitter developer survey the other day and they mentioned "spoken posts". So there could yet be a day when we don't just have tweet storms instead of blog posts, but we have podcasts presented as a sequence of tweets! 😮
I can't think of a better structure. "diamond inheritance" can sometimes get a bit messy, but I think we can keep it sufficiently consistent here that it will work ( You might want a "load progress" event as well as "complete" so that progressive loads (or slow Internet connections) can get progress bars etc. We might need preview dimensions as well as final media dimensions (e.g. if the thumbnail is cropped). Are we assuming that |
Beta Was this translation helpful? Give feedback.
-
So, I have today started with an concept for the media classes, which can be found on the branch
media-class
.However, I wanted to discuss the structure of these classes.
The backend has to met the following goals:
Additionally, the media class should have sub-types for pictures, videos and gifs (and maybe audio for a certain platform?).
So, the first concept has the structure:
Media
for the API.Media
interface in Base.Media
class in the platform, inheriting from theMedia
interface in Base.Media
abstract class and the interface for the sub-type.This seems to work and reach the goals, however I am not 100% convinced there could not be a better solution than this.
So, @IBBoard, would be great if you could take a look and comment on this.
Beta Was this translation helpful? Give feedback.
All reactions