C# Class PastebinAPI.Paste

显示文件 Open project: nikibobi/pastebin-csharp Class Usage Examples

Public Methods

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

Creates a new paste anonymously and uploads it to pastebin

GetRaw ( ) : string

Gets the raw text for a given url

ToString ( ) : string

Private Methods

Method Description
Create ( string userKey, string text, string title = null, Language language = null, Visibility visibility = Visibility.Public, Expiration expiration = null ) : Paste
FromXML ( System.Xml.Linq.XElement xpaste ) : Paste
Paste ( ) : System

Method Details

Create() public static method

Creates a new paste anonymously and uploads it to pastebin
public static Create ( string text, string title = null, Language language = null, Visibility visibility = Visibility.Public, Expiration expiration = null ) : Paste
text string
title string
language Language
visibility Visibility
expiration Expiration
return Paste

GetRaw() public method

Gets the raw text for a given url
public GetRaw ( ) : string
return string

ToString() public method

public ToString ( ) : string
return string