Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

A .NET library built using C# used to easily access DreamInCode.net information.

branch: master
README.markdown

DreamInCode.NET - A C# Library for Accessing the DIC API.

.NET | DreamInCode.Net

DreamInCode.NET makes accessing the DreamInCode API very simple and straightforward. It's purpose it to let you build cool things around DreamInCode for Windows Forms, WPF, Silerlight and Windows Phone 7.

Full C# POCO objects allow you to concentrate on creating a great application and not parsing random XML responses from a source.

100% Wholesome Goodness Baked In

/* The UserRepository class is what you'll use to fetch information from the API. */
UserRepository userRepository = new UserRepository();

/* You can search for users by giving the repository a numerical ID. */
var user = userRepository.FindUserById(335389);

/* Accessing the information is very easy and intuitive. */
Console.WriteLine(user.UserProfileId);
Console.WriteLine(user.Name);
Console.WriteLine(user.Rating);
Console.WriteLine(user.Reputation);
Console.WriteLine(user.JoinDate);
Console.WriteLine(user.PostCount);

/* Their friends are already loaded into the User object! */
foreach (var friend in user.Friends)
{
    Console.WriteLine("{0} - {1}", friend.FriendId, friend.Name);
}

/* So are their visitors! */
foreach (var visitor in user.Visitors)
{
    Console.WriteLine("{0} visited on: {1}", visitor.Name, visitor.TimeOfLastVisit);
}

Disclaimer

This library is still in alpha stages, some of the method names and exposed properties might change.

Released under the MIT License

Copyright (C) 2011 by Sergio Tapia Gutierrez

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Something went wrong with that request. Please try again.