示例#1
0
 /// <summary>
 /// Set Playlist Image Extended Properties
 /// </summary>
 /// <param name="response">Playlist Image Response</param>
 /// <param name="playlistId">Playlist Id</param>
 public static void SetPlaylistImageExtended(this PlaylistImageResponse response, string playlistId)
 {
     if (response != null)
     {
         response.Id = playlistId;
     }
 }
示例#2
0
 public PlaylistImageResponse Convert(List <Image> source, PlaylistImageResponse destination, ResolutionContext context)
 {
     if (source != null)
     {
         var assetResponse = new PlaylistImageResponse()
         {
             Images = context.Mapper.Map <List <ImageResponse> >(source)
         };
         return(assetResponse);
     }
     return(null);
 }
示例#3
0
 /// <summary>
 /// Attach Get Playlist Image Commands
 /// </summary>
 /// <param name="client">Spotify Sdk Client</param>
 /// <param name="response">Playlist Image Response</param>
 public static void AttachGetPlaylistImageCommands(
     this ISpotifySdkClient client,
     PlaylistImageResponse response)
 {
     if (client.Config.IsAttachGetPlaylistImageCommands && response != null)
     {
         // Get Playlist Image Command
         if (client.CommandActions.GetPlaylistImage != null)
         {
             response.Command = new GenericCommand <PlaylistImageResponse>(
                 client.CommandActions.GetPlaylistImage);
         }
     }
 }