def playlist(self, index): playlist_struct = self.__search_interface.playlist( self.__search_interface, index) if playlist_struct is not None: """ Do not increment references here, as the official docs say that the reference is owned by the caller. """ return playlist.Playlist(playlist_struct)
def starred_create(self): return playlist.Playlist( self.__session_interface.starred_create(self.__session_struct))
def starred_for_user_create(self, canonical_username): return playlist.Playlist( self.__session_interface.starred_for_user_create( self.__session_struct, canonical_username))
def inbox_create(self): return playlist.Playlist( self.__session_interface.inbox_create(self.__session_struct))