private bool EditAlbum(ImgurAlbum Album) { if (Album != null) { } return(false); }
public AlbumEntry(ImgurAlbum A) { DisplayName = A.title; if (string.IsNullOrEmpty(DisplayName)) { DisplayName = "ID=" + A.id; } Id = A.id; }
/// <summary> /// Deletes an album /// </summary> /// <param name="I">Imgur album</param> /// <returns><see cref="true"/> on success</returns> /// <remarks>This will not delete images</remarks> public async Task <bool> DeleteAlbum(ImgurAlbum A) { HttpWebRequest R = Req(new Uri($"https://api.imgur.com/3/album/{A.deletehash}")); R.Method = "DELETE"; using (HttpWebResponse Res = await GetResponse(R)) { string data = await ReadAll(Res.GetResponseStream()); return(!ProcessErrorResponse(data) && !IsErrorCode(Res.StatusCode)); } }