def artist(self, index): artist_struct = self.__toplistbrowse_interface.artist( self.__toplistbrowse_struct, index) if artist_struct is not None: ai = _artist.ArtistInterface() ai.add_ref(artist_struct) return artist.Artist(artist_struct)
def artist(self): #Increment the refcount so it doesn't get stolen from us artist_struct = self.__album_interface.artist(self.__album_struct) if artist_struct is not None: ai = _artist.ArtistInterface() ai.add_ref(artist_struct) return artist.Artist(artist_struct)
def as_artist(self): #Increment reference count so it's not stolen from us artist_struct = self.__link_interface.as_artist(self.__link_struct) if artist_struct is not None: ai = _artist.ArtistInterface() ai.add_ref(artist_struct) return artist.Artist(artist_struct)
def __init__(self, artist_struct): self.__artist_struct = artist_struct self.__artist_interface = _artist.ArtistInterface()