C# Class OpenTween.Connection.Imgur

Inheritance: IMediaUploadService
显示文件 Open project: opentween/OpenTween

Public Methods

Method Description
CheckFileExtension ( string fileExtension ) : bool
CheckFileSize ( string fileExtension, long fileSize ) : bool
GetMaxFileSize ( string fileExtension ) : long?
GetReservedTextLength ( int mediaCount ) : int
Imgur ( Twitter tw, OpenTween.Api.TwitterConfiguration twitterConfig ) : System
PostStatusAsync ( string text, long inReplyToStatusId, IMediaItem mediaItems ) : System.Threading.Tasks.Task
UpdateTwitterConfiguration ( OpenTween.Api.TwitterConfiguration config ) : void

Method Details

CheckFileExtension() public method

public CheckFileExtension ( string fileExtension ) : bool
fileExtension string
return bool

CheckFileSize() public method

public CheckFileSize ( string fileExtension, long fileSize ) : bool
fileExtension string
fileSize long
return bool

GetMaxFileSize() public method

public GetMaxFileSize ( string fileExtension ) : long?
fileExtension string
return long?

GetReservedTextLength() public method

public GetReservedTextLength ( int mediaCount ) : int
mediaCount int
return int

Imgur() public method

public Imgur ( Twitter tw, OpenTween.Api.TwitterConfiguration twitterConfig ) : System
tw Twitter
twitterConfig OpenTween.Api.TwitterConfiguration
return System

PostStatusAsync() public method

public PostStatusAsync ( string text, long inReplyToStatusId, IMediaItem mediaItems ) : System.Threading.Tasks.Task
text string
inReplyToStatusId long
mediaItems IMediaItem
return System.Threading.Tasks.Task

UpdateTwitterConfiguration() public method

public UpdateTwitterConfiguration ( OpenTween.Api.TwitterConfiguration config ) : void
config OpenTween.Api.TwitterConfiguration
return void