C# Class PastebinAPI.User

Afficher le fichier Open project: nikibobi/pastebin-csharp Class Usage Examples

Méthodes publiques

Méthode 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

Méthode Description
User ( string userKey ) : System.Collections.Generic

Method Details

CreatePaste() public méthode

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
Résultat Paste

DeletePaste() public méthode

Deletes a paste created by this user
public DeletePaste ( Paste paste ) : void
paste Paste
Résultat void

ListPastes() public méthode

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

RequestPreferences() public méthode

Updates user preferences information properties
public RequestPreferences ( ) : void
Résultat void

ToString() public méthode

public ToString ( ) : string
Résultat string