Discussion Board

Results 1 to 4 of 4
  1. #1
    Registered User
    Join Date
    Feb 2013
    Posts
    16

    Problem with GetProductAsync

    Hello

    I'm trying to use GetProductAsync in vb.net

    Dim _tracks As ListResponse(Of Product) = Await client.GetProductAsync(a.Id)

    Gives ...

    Value of type 'Nokia.Music.Response(Of Nokia.Music.Types.Product)' cannot be converted to 'Nokia.Music.ListResponse(Of Nokia.Music.Types.Product)'.

    Any ideas ?

  2. #2
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,790

    Re: Problem with GetProductAsync

    Honestly said I can not find this particular method in the on-line documentation (http://developer.nokia.com/resources...ent-class.html).
    However the methods I see are using plural, like GetTopProductsAsync. If there is a method GetProductAsync, that may really return a single product, and that is what the error message suggests too.

  3. #3
    Registered User
    Join Date
    Feb 2013
    Posts
    16

    Re: Problem with GetProductAsync

    I know, but I'm only going off what intellisense offers. I see no GetProductsAsync. Can someone confirm this ?

  4. #4
    Nokia Developer Expert
    Join Date
    Feb 2014
    Posts
    29

    Re: Problem with GetProductAsync

    GetProductAsync gets full details of a single product - e.g. get the track list for an album - so it won't return a list. To get a list of products, call methods like SearchAsync, GetTopProductsAsync, GetProductsForArtistAsync, etc.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×