LegoSharp 2.0.0
See the version list below for details.
dotnet add package LegoSharp --version 2.0.0
NuGet\Install-Package LegoSharp -Version 2.0.0
<PackageReference Include="LegoSharp" Version="2.0.0" />
paket add LegoSharp --version 2.0.0
#r "nuget: LegoSharp, 2.0.0"
// Install LegoSharp as a Cake Addin
#addin nuget:?package=LegoSharp&version=2.0.0
// Install LegoSharp as a Cake Tool
#tool nuget:?package=LegoSharp&version=2.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.
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 can query different graph APIs.
Pick a Brick
You can query Pick a Brick. The search can use a variety of filters, or specify a specific text based query.
PickABrickQuery query = new PickABrickQuery();
query.addFilter(new ColorFilter()
.addValue(BrickColor.Black)
);
query.query = "wheel";
PickABrickQueryResult result = await graphClient.searchForBricksAsync(graphSearch);
foreach (Brick brick in result.elements)
{
// do something with each brick
}
Product | Versions 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. |
-
.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.