Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/xiaomi7732/livesdk-for-windows-objectmodels

Object models for Live-SDK-for-Windows.
https://github.com/xiaomi7732/livesdk-for-windows-objectmodels

Last synced: 4 days ago
JSON representation

Object models for Live-SDK-for-Windows.

Awesome Lists containing this project

README

        

# LiveSDK-for-Windows-ObjectModels
This is object models for Live-SDK-for-Windows to make it easier to use, cause less error.

Starting from 0.1.3-alpha, the nuget package could be reference by Windows 8.1 App or Windows 10 Universal Application Platform Apps.

# Consume
## Setup
1. Add NuGet package of LiveSDK.
2. Add NuGet package of LiveSDK for Windows Object Models [here](https://www.nuget.org/packages/LiveSDK.ObjectModel/).

- Run the following command in the Package Manager Console
```
Install-Package LiveSDK.ObjectModel -Pre
```

##Known issue

LiveSDK for Windows Object Models depends on LiveSDK 5.6. When LiveSDK 5.6 is installed through
nuget, the reference is not added - complaining **no Microsoft.Live** namespace. Manually add the reference to the following location:

$(USERPROFILE)\.nuget\packages\LiveSDK\\**5.6.3**\WindowsXAML\Microsoft.Live.dll

Or add the following line to your .csproj:

```

5.6.3



True


```

## Usage
After install the nuget package,you will be making use of the library like below:

```
// Strong typed LiveScopes are provided in this Library.
loginResult = await auth.LoginAsync(new string[]{
LiveScopes.Basic,
LiveScopes.ContactsEmails,
LiveScopes.ContactsPhotos
});
```

```
// GetAsync extenion method provides convenient way to get strong typed result out of LiveSDK calls.
Contacts contacts = await connect.GetAsync("me/contacts");
```

#Contritbute
## Branches
### Dev Branches
Please prefix dev branch with dev/.

For exmaple: **dev/**feature1.

### Release Branches
When release the nuget package, a release branch will be created like the one below:

**rel/**0.1.3-alpha

All pull request are welcome! Please send them against master branch and the change will show up in the next release.

## Build
Projects can be opened in Visual Studio 2015 and being built there. There are some commands to make build easier.

* Build.cmd - Build the solutions in configuration of release.
* Pack.cmd - Create a nuget package out of the build result.

Note: The package by default will be packed into bin folder. The released package can be found in redist folder.