コード例 #1
0
    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)
コード例 #2
0
ファイル: album.py プロジェクト: CHATBOTSITE/repository-1
    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)
コード例 #3
0
ファイル: link.py プロジェクト: CHATBOTSITE/repository-1
    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)
コード例 #4
0
 def __init__(self, artist_struct):
     self.__artist_struct = artist_struct
     self.__artist_interface = _artist.ArtistInterface()