Exemplo n.º 1
0
def create_from_image(image):
    li = _link.LinkInterface()
    return Link(li.create_from_image(image.get_struct()))
Exemplo n.º 2
0
def create_from_playlist(playlist):
    li = _link.LinkInterface()
    link_struct = li.create_from_playlist(playlist.get_struct())
    if link_struct is not None:
        return Link(link_struct)
Exemplo n.º 3
0
def create_from_user(user):
    li = _link.LinkInterface()
    return Link(li.create_from_user(user.get_struct()))
Exemplo n.º 4
0
def create_from_album_cover(album, size=image.ImageSize.Normal):
    li = _link.LinkInterface()
    return Link(li.create_from_album_cover(album.get_struct(), size))
Exemplo n.º 5
0
def create_from_search(search):
    li = _link.LinkInterface()
    return Link(li.create_from_search(search.get_struct()))
Exemplo n.º 6
0
def create_from_artistbrowse_portrait(artistbrowse, index):
    li = _link.LinkInterface()
    return Link(
        li.create_from_artistbrowse_portrait(artistbrowse.get_struct(), index))
Exemplo n.º 7
0
def create_from_album(album):
    li = _link.LinkInterface()
    return Link(li.create_from_album(album.get_struct()))
Exemplo n.º 8
0
def create_from_artist_portrait(artist, size=image.ImageSize.Normal):
    li = _link.LinkInterface()
    return Link(li.create_from_artist_portrait(artist.get_struct(), size))
Exemplo n.º 9
0
def create_from_artist(artist):
    li = _link.LinkInterface()
    return Link(li.create_from_artist(artist.get_struct()))
Exemplo n.º 10
0
def create_from_track(track, offset=0):
    li = _link.LinkInterface()
    return Link(li.create_from_track(track.get_struct(), offset))
Exemplo n.º 11
0
def create_from_string(string):
    li = _link.LinkInterface()
    link_struct = li.create_from_string(string)
    if link_struct is not None:
        return Link(link_struct)
Exemplo n.º 12
0
 def __init__(self, link_struct):
     self.__link_struct = link_struct
     self.__link_interface = _link.LinkInterface()