Skip to content

Namespaces

linvi edited this page Jun 25, 2016 · 4 revisions

Overview

Tweetinvi is a complete library and includes a very large set of tools that you can use. In version 1.0 we have reorganized the namespaces so that it makes the development easier.

This page describes the different namespaces and when to use them.

Important Namespaces

REST API

  • Tweetinvi contains all the static classes required to use the library.
  • Tweetinvi.Models contains all the models that are returned by the library.
  • Tweetinvi.Parameters contains all the parameters to request Twitter.

STREAM API

  • Tweetinvi* contains the Stream` static class.
  • Tweetinvi.Streaming contains the interfaces/enum required to use a Stream.
  • Tweetinvi.Events contains the event arguments that are raised by the stream events.

NOTE : using Stream = Tweetinvi.Stream; will allow you to prevent any ambiguous reference with System.IO.Stream.

Others

  • Tweetinvi.Exceptions contains all the exceptions that you can handle in your try/catch
  • Tweetinvi.Models.DTO contains all the Data Transfer Objects (DTO) that you could need for serialization.
  • Tweetinvi.Core.Extensions contains a set of useful extensions to help you. (e.g. string.TweetLength()).
  • Tweetinvi.Json contains the static classes to get json instead of objects from Twitter.

Tweetinvi.Core

The previous namespaces have been designed to be accessed by developers. Tweetinvi.Core contains more classes/interfaces/enum that will allow you to access the core of Tweetinvi.

This will be particularly useful if you use the TweetinviContainer static class that allow developers to change how Tweetinvi works or what it returns.

Clone this wiki locally