C# Class PastebinAPI.Expiration

Mostra file Open project: nikibobi/pastebin-csharp Class Usage Examples

Public Properties

Property Type Description
All IEnumerable
Default Expiration
Never Expiration
OneDay Expiration
OneHour Expiration
OneMonth Expiration
OneWeek Expiration
TenMinutes Expiration
TwoWeeks Expiration

Public Methods

Method Description
FromTimeSpan ( System.TimeSpan timeSpan ) : Expiration
Parse ( string s ) : Expiration
ToString ( ) : string
TryParse ( string s, Expiration &result ) : bool

Private Methods

Method Description
Expiration ( ) : System
Expiration ( string value, System.TimeSpan time ) : System
getExpirations ( ) : IEnumerable

Method Details

FromTimeSpan() public static method

public static FromTimeSpan ( System.TimeSpan timeSpan ) : Expiration
timeSpan System.TimeSpan
return Expiration

Parse() public static method

public static Parse ( string s ) : Expiration
s string
return Expiration

ToString() public method

public ToString ( ) : string
return string

TryParse() public static method

public static TryParse ( string s, Expiration &result ) : bool
s string
result Expiration
return bool

Property Details

All public_oe static_oe property

public static IEnumerable All
return IEnumerable

Default public_oe static_oe property

public static Expiration,PastebinAPI Default
return Expiration

Never public_oe static_oe property

public static Expiration,PastebinAPI Never
return Expiration

OneDay public_oe static_oe property

public static Expiration,PastebinAPI OneDay
return Expiration

OneHour public_oe static_oe property

public static Expiration,PastebinAPI OneHour
return Expiration

OneMonth public_oe static_oe property

public static Expiration,PastebinAPI OneMonth
return Expiration

OneWeek public_oe static_oe property

public static Expiration,PastebinAPI OneWeek
return Expiration

TenMinutes public_oe static_oe property

public static Expiration,PastebinAPI TenMinutes
return Expiration

TwoWeeks public_oe static_oe property

public static Expiration,PastebinAPI TwoWeeks
return Expiration