C# Class P02Project.Twitter

Provides interaction with the Twitter. Offers methods to retrive and post methods. Posts are made to @nzokdat and tweets are retrived from @ChildCancerNZ
Mostra file Open project: raouldc/OptiDev Class Usage Examples

Public Methods

Method Description
Twitter ( ) : System

Constructor

Twitter ( Webcam us ) : System

Constructor

getBitmapImageForUrl ( String url ) : BitmapImage

Utility method that returns the bitmap with the contents of the url

getImageUrlsForTweet ( TwitterStatus tweet ) : List

Utility method that gets the image urls for a tweet.

getTweets ( ) : IEnumerable

Returns the tweets for ChildCancerNZ

postTweet ( String message, System.Windows.Media.Imaging.BitmapSource bitsource, DependencyObject depO ) : void

Post a message and image (from the webcam), Posts are made to @nzokdat

Private Methods

Method Description
BitmapFromSource ( System.Windows.Media.Imaging.BitmapSource bitmapsource ) : Bitmap

get a bitmap of images to write out

initializeWorkers ( ) : void

Constructor helper

m_oWorker_DoWork ( object sender, DoWorkEventArgs e ) : void

Uploading image, done on a different thread.

m_oWorker_ProgressChanged ( object sender, ProgressChangedEventArgs e ) : void

Any notification of progress can be done here.

m_oWorker_RunWorkerCompleted ( object sender, RunWorkerCompletedEventArgs e ) : void

thread run back process is complete

Method Details

Twitter() public method

Constructor
public Twitter ( ) : System
return System

Twitter() public method

Constructor
public Twitter ( Webcam us ) : System
us Webcam
return System

getBitmapImageForUrl() public method

Utility method that returns the bitmap with the contents of the url
public getBitmapImageForUrl ( String url ) : BitmapImage
url String
return System.Windows.Media.Imaging.BitmapImage

getImageUrlsForTweet() public method

Utility method that gets the image urls for a tweet.
public getImageUrlsForTweet ( TwitterStatus tweet ) : List
tweet TwitterStatus
return List

getTweets() public method

Returns the tweets for ChildCancerNZ
public getTweets ( ) : IEnumerable
return IEnumerable

postTweet() public method

Post a message and image (from the webcam), Posts are made to @nzokdat
public postTweet ( String message, System.Windows.Media.Imaging.BitmapSource bitsource, DependencyObject depO ) : void
message String
bitsource System.Windows.Media.Imaging.BitmapSource
depO System.Windows.DependencyObject
return void