Example #1
0
def create_from_image(image):
    li = _link.LinkInterface()
    return Link(li.create_from_image(image.get_struct()))
Example #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)
Example #3
0
def create_from_user(user):
    li = _link.LinkInterface()
    return Link(li.create_from_user(user.get_struct()))
Example #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))
Example #5
0
def create_from_search(search):
    li = _link.LinkInterface()
    return Link(li.create_from_search(search.get_struct()))
Example #6
0
def create_from_artistbrowse_portrait(artistbrowse, index):
    li = _link.LinkInterface()
    return Link(
        li.create_from_artistbrowse_portrait(artistbrowse.get_struct(), index))
Example #7
0
def create_from_album(album):
    li = _link.LinkInterface()
    return Link(li.create_from_album(album.get_struct()))
Example #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))
Example #9
0
def create_from_artist(artist):
    li = _link.LinkInterface()
    return Link(li.create_from_artist(artist.get_struct()))
Example #10
0
def create_from_track(track, offset=0):
    li = _link.LinkInterface()
    return Link(li.create_from_track(track.get_struct(), offset))
Example #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)
Example #12
0
 def __init__(self, link_struct):
     self.__link_struct = link_struct
     self.__link_interface = _link.LinkInterface()