C# Класс PastebinAPI.User

Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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

Приватные методы

Метод Описание
User ( string userKey ) : System.Collections.Generic

Описание методов

CreatePaste() публичный Метод

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
Результат Paste

DeletePaste() публичный Метод

Deletes a paste created by this user
public DeletePaste ( Paste paste ) : void
paste Paste
Результат void

ListPastes() публичный Метод

Lists all pastes created by user
public ListPastes ( int resultsLimit = 50 ) : IEnumerable
resultsLimit int limits the paste count
Результат IEnumerable

RequestPreferences() публичный Метод

Updates user preferences information properties
public RequestPreferences ( ) : void
Результат void

ToString() публичный Метод

public ToString ( ) : string
Результат string