Beispiel #1
0
 /// <summary>
 /// Creates a new paste from this user and uploads it to pastebin.
 /// To create anonymous paste use Paste.Create() or User.Guest.CreatePaste()
 /// </summary>
 /// <param name="language">If left out then user's PreferedLanguage will be used</param>
 /// <param name="visibility">If left out then user's PreferedVisibility will be used</param>
 /// <param name="expiration">If left out then user's PreferedExpiration will be used</param>
 /// <returns>Paste object containing the Url given from Pastebin</returns>
 public async Task <Paste> CreatePasteAsync(string text, string title = null, Language language = null, Visibility?visibility = null, Expiration expiration = null)
 {
     return(await Paste.CreateAsync(userKey, text, title, language ?? PreferedLanguage, visibility ?? PreferedVisibility, expiration ?? PreferedExpiration));
 }