C# 클래스 PastebinAPI.User

파일 보기 프로젝트 열기: nikibobi/pastebin-csharp 1 사용 예제들

공개 메소드들

메소드 설명
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