LegoSharp 1.0.0

There is a newer version of this package available.
See the version list below for details.
dotnet add package LegoSharp --version 1.0.0
NuGet\Install-Package LegoSharp -Version 1.0.0
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="LegoSharp" Version="1.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add LegoSharp --version 1.0.0
#r "nuget: LegoSharp, 1.0.0"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install LegoSharp as a Cake Addin
#addin nuget:?package=LegoSharp&version=1.0.0

// Install LegoSharp as a Cake Tool
#tool nuget:?package=LegoSharp&version=1.0.0

LegoSharp

LegoSharp is an unofficial library for interacting with Lego's web API. Lego recently changed their web API, so this project is undergoing a significant amount of redevelopment. Functionality is very limited at this time.

Build Status

Nuget

Usage

Searching the Lego graph is currently the only supported action.

To search the graph, you first make a graph client.

LegoGraphClient graphClient = new LegoGraphClient();

You then authenticate the client (no Lego account is required).

await graphClient.authenticateAsync();

Once you authenticate, you create a graph search. The search can use a variety of filters, or specify a specific text based query.

LegoGraphSearch graphSearch = new LegoGraphSearch();
graphSearch.addFilter(new ColorFilter()
    .addValue(LegoColor.Black)
);
graphSearch.query = "wheel";

Once you have your graph search ready, you give it to the graph client who will execute the search.

IEnumerable<Brick> result = await graphClient.searchForBricksAsync(graphSearch);

foreach (Brick brick in result)
{
    // do something with each brick
}
Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
.NET Core netcoreapp3.0 is compatible.  netcoreapp3.1 was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • .NETCoreApp 3.0

    • No dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
7.0.0 357 2/14/2021
6.0.0 501 12/18/2020
5.3.0 392 6/29/2020
5.2.0 439 6/19/2020
5.1.0 400 6/3/2020
5.0.0 454 6/2/2020
4.0.0 395 5/24/2020
3.0.0 495 5/24/2020
2.0.0 417 5/22/2020
1.0.0 454 5/21/2020