C# Class PastebinAPI.User

Datei anzeigen Open project: nikibobi/pastebin-csharp Class Usage Examples

Public Methods

Method Description
CreatePaste ( string text, string title = null, Language language = null, Visibility visibility = null, Expiration expiration = null ) : Paste

Creates a new paste from this user and uploads it to pastebin. To create anonymous paste use Paste.Create() or User.Guest.CreatePaste()

DeletePaste ( Paste paste ) : void

Deletes a paste created by this user

ListPastes ( int resultsLimit = 50 ) : IEnumerable

Lists all pastes created by user

RequestPreferences ( ) : void

Updates user preferences information properties

ToString ( ) : string

Private Methods

Method Description
User ( string userKey ) : System.Collections.Generic

Method Details

CreatePaste() public method

Creates a new paste from this user and uploads it to pastebin. To create anonymous paste use Paste.Create() or User.Guest.CreatePaste()
public CreatePaste ( string text, string title = null, Language language = null, Visibility visibility = null, Expiration expiration = null ) : Paste
text string
title string
language Language If left out then user's PreferedLanguage will be used
visibility Visibility If left out then user's PreferedVisibility will be used
expiration Expiration If left out then user's PreferedExpiration will be used
return Paste

DeletePaste() public method

Deletes a paste created by this user
public DeletePaste ( Paste paste ) : void
paste Paste
return void

ListPastes() public method

Lists all pastes created by user
public ListPastes ( int resultsLimit = 50 ) : IEnumerable
resultsLimit int limits the paste count
return IEnumerable

RequestPreferences() public method

Updates user preferences information properties
public RequestPreferences ( ) : void
return void

ToString() public method

public ToString ( ) : string
return string