Exemple #1
0
 /// <summary>
 /// Deletes all images from the list with list Id equal to list Id passed.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='listId'>
 /// List Id of the image list.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <string> DeleteAllImagesAsync(this IListManagementImage operations, string listId, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.DeleteAllImagesWithHttpMessagesAsync(listId, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
Exemple #2
0
 /// <summary>
 /// Add an image to the list with list Id equal to list Id passed.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='listId'>
 /// List Id of the image list.
 /// </param>
 /// <param name='tag'>
 /// Tag for the image.
 /// </param>
 /// <param name='label'>
 /// The image label.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <Image> AddImageAsync(this IListManagementImage operations, string listId, int?tag = default(int?), string label = default(string), CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.AddImageWithHttpMessagesAsync(listId, tag, label, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
Exemple #3
0
 /// <summary>
 /// Deletes all images from the list with list Id equal to list Id passed.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='listId'>
 /// List Id of the image list.
 /// </param>
 public static string DeleteAllImages(this IListManagementImage operations, string listId)
 {
     return(operations.DeleteAllImagesAsync(listId).GetAwaiter().GetResult());
 }
Exemple #4
0
 /// <summary>
 /// Add an image to the list with list Id equal to list Id passed.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='listId'>
 /// List Id of the image list.
 /// </param>
 /// <param name='tag'>
 /// Tag for the image.
 /// </param>
 /// <param name='label'>
 /// The image label.
 /// </param>
 public static Image AddImage(this IListManagementImage operations, string listId, int?tag = default(int?), string label = default(string))
 {
     return(operations.AddImageAsync(listId, tag, label).GetAwaiter().GetResult());
 }
Exemple #5
0
 /// <summary>
 /// Add an image to the list with list Id equal to list Id passed.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='listId'>
 /// List Id of the image list.
 /// </param>
 /// <param name='contentType'>
 /// The content type.
 /// </param>
 /// <param name='imageUrl'>
 /// The image url.
 /// </param>
 /// <param name='tag'>
 /// Tag for the image.
 /// </param>
 /// <param name='label'>
 /// The image label.
 /// </param>
 public static Image AddImageUrlInput(this IListManagementImage operations, string listId, string contentType, BodyModel imageUrl, int?tag = default(int?), string label = default(string))
 {
     return(operations.AddImageUrlInputAsync(listId, contentType, imageUrl, tag, label).GetAwaiter().GetResult());
 }