|
@ -10,6 +10,9 @@ class Platform(object): |
|
|
self.publishAt = None |
|
|
self.publishAt = None |
|
|
self.url = None |
|
|
self.url = None |
|
|
|
|
|
|
|
|
|
|
|
def __repr__(self): |
|
|
|
|
|
return str(self.__dict__) |
|
|
|
|
|
|
|
|
# TODO: Add container for `with-*` and a `isValid` method to check that all `with-*` options are present |
|
|
# TODO: Add container for `with-*` and a `isValid` method to check that all `with-*` options are present |
|
|
# TODO: We need some list (using enum?) for the commons licences, language, privacy, categories options |
|
|
# TODO: We need some list (using enum?) for the commons licences, language, privacy, categories options |
|
|
class Video(object): |
|
|
class Video(object): |
|
@ -109,3 +112,10 @@ class Video(object): |
|
|
@name.setter |
|
|
@name.setter |
|
|
def name(self, value): |
|
|
def name(self, value): |
|
|
self._name = value |
|
|
self._name = value |
|
|
|
|
|
|
|
|
|
|
|
def __repr__(self): |
|
|
|
|
|
result = "{\n" |
|
|
|
|
|
for key in self.__dict__: |
|
|
|
|
|
result += "\t'" + key + "': " + str(self.__dict__[key]) + ",\n" |
|
|
|
|
|
result += "}\n" |
|
|
|
|
|
return result |