From ada5b8dc26c2226fb424c0401b63a05d19a5c99d Mon Sep 17 00:00:00 2001 From: Quirijn Slings Date: Mon, 19 Aug 2024 10:58:23 +0200 Subject: [PATCH 1/8] targetframework now net8.0, packages upgraded --- Bynder/Sample/Bynder.Sample.csproj | 4 ++-- Bynder/Sdk/Bynder.Sdk.csproj | 6 +++--- Bynder/Test/Bynder.Test.csproj | 14 +++++++------- 3 files changed, 12 insertions(+), 12 deletions(-) diff --git a/Bynder/Sample/Bynder.Sample.csproj b/Bynder/Sample/Bynder.Sample.csproj index 36371fd..2efc672 100644 --- a/Bynder/Sample/Bynder.Sample.csproj +++ b/Bynder/Sample/Bynder.Sample.csproj @@ -1,7 +1,7 @@ Exe - net5.0 + net8.0 2.0.0 2.0.0 Bynder @@ -9,7 +9,7 @@ Copyright © Bynder - + diff --git a/Bynder/Sdk/Bynder.Sdk.csproj b/Bynder/Sdk/Bynder.Sdk.csproj index da92461..fc3d907 100644 --- a/Bynder/Sdk/Bynder.Sdk.csproj +++ b/Bynder/Sdk/Bynder.Sdk.csproj @@ -1,6 +1,6 @@ - netstandard2.1;net48 + net8.0 2.2.12.0 2.2.12.0 Bynder @@ -25,8 +25,8 @@ true - - + + diff --git a/Bynder/Test/Bynder.Test.csproj b/Bynder/Test/Bynder.Test.csproj index 960e55f..94b52dc 100644 --- a/Bynder/Test/Bynder.Test.csproj +++ b/Bynder/Test/Bynder.Test.csproj @@ -1,6 +1,6 @@  - net5.0 + net8.0 true 2.0.0 2.0.0 @@ -9,15 +9,15 @@ Copyright © Bynder - runtime; build; native; contentfiles; analyzers; buildtransitive + runtime; build; native; contentfiles; analyzers; buildtransitive all - - + + - - - runtime; build; native; contentfiles; analyzers; buildtransitive + + + runtime; build; native; contentfiles; analyzers; buildtransitive all From ebf08af0c43c76227a0274b938dfbbad18d20a1c Mon Sep 17 00:00:00 2001 From: Quirijn Slings Date: Thu, 22 Aug 2024 17:24:03 +0200 Subject: [PATCH 2/8] Make it possible to get a list of tags by keyword --- Bynder/Sdk/Query/Asset/GetTagsQuery.cs | 79 ++++++++++--------- Bynder/Sdk/Service/Asset/AssetService.cs | 8 +- Bynder/Test/Service/Asset/AssetServiceTest.cs | 19 +++++ 3 files changed, 67 insertions(+), 39 deletions(-) diff --git a/Bynder/Sdk/Query/Asset/GetTagsQuery.cs b/Bynder/Sdk/Query/Asset/GetTagsQuery.cs index 701ec4e..f476ad9 100644 --- a/Bynder/Sdk/Query/Asset/GetTagsQuery.cs +++ b/Bynder/Sdk/Query/Asset/GetTagsQuery.cs @@ -1,41 +1,44 @@ using Bynder.Sdk.Api.Converters; using Bynder.Sdk.Model; -using Bynder.Sdk.Query.Decoder; - -namespace Bynder.Sdk.Query.Asset +using Bynder.Sdk.Query.Decoder; + +namespace Bynder.Sdk.Query.Asset { - public class GetTagsQuery - { - /// - /// Maximum number of results. - /// - [ApiField("limit")] - public int Limit { get; set; } - - /// - /// Offset page for results: return the N-th set of limit-results. - /// - [ApiField("page")] - public int Page { get; set; } - - /// - /// Order of the returned list of tags. - /// See for possible values. - /// - [ApiField("orderBy", Converter = typeof(TagsOrderByConverter))] - public TagsOrderBy OrderBy { get; set; } - - /// - /// Search on matching names. - /// - [ApiField("keyword")] - public string Keyword { get; set; } - - /// - /// Minimum media count that the returned tags should have. - /// - [ApiField("mincount")] - public int MinCount { get; set; } - - } -} + public class GetTagsQuerySimple + { + /// + /// Maximum number of results. + /// + [ApiField("limit")] + public int Limit { get; set; } + + /// + /// Offset page for results: return the N-th set of limit-results. + /// + [ApiField("page")] + public int Page { get; set; } + + /// + /// Order of the returned list of tags. + /// See for possible values. + /// + [ApiField("orderBy", Converter = typeof(TagsOrderByConverter))] + public TagsOrderBy OrderBy { get; set; } + + /// + /// Search on matching names. + /// + [ApiField("keyword")] + public string Keyword { get; set; } + } + public class GetTagsQuery : GetTagsQuerySimple + { + + /// + /// Minimum media count that the returned tags should have. + /// + [ApiField("mincount")] + public int MinCount { get; set; } + + } +} diff --git a/Bynder/Sdk/Service/Asset/AssetService.cs b/Bynder/Sdk/Service/Asset/AssetService.cs index f94f779..b0c3d50 100644 --- a/Bynder/Sdk/Service/Asset/AssetService.cs +++ b/Bynder/Sdk/Service/Asset/AssetService.cs @@ -179,11 +179,17 @@ public async Task ModifyMediaAsync(ModifyMediaQuery query) /// Check for more information public async Task> GetTagsAsync(GetTagsQuery query) { + var queryToUse = string.IsNullOrEmpty(query.Keyword) ? query : new GetTagsQuerySimple() { + Keyword = query.Keyword, + Limit = query.Limit, + OrderBy = query.OrderBy, + Page = query.Page + }; return await _requestSender.SendRequestAsync(new ApiRequest> { Path = "/api/v4/tags/", HTTPMethod = HttpMethod.Get, - Query = query + Query = queryToUse }).ConfigureAwait(false); } diff --git a/Bynder/Test/Service/Asset/AssetServiceTest.cs b/Bynder/Test/Service/Asset/AssetServiceTest.cs index 8b2d497..14ec7c0 100644 --- a/Bynder/Test/Service/Asset/AssetServiceTest.cs +++ b/Bynder/Test/Service/Asset/AssetServiceTest.cs @@ -203,6 +203,25 @@ public async Task GetTagsCallsRequestSenderWithValidRequest() )); } + [Fact] + public async Task GetTagsByKeywordCallsRequestSenderWithValidRequest() + { + var result = new Status { Message = "Accepted", StatusCode = 202 }; + _apiRequestSenderMock.Setup(sender => sender.SendRequestAsync(It.IsAny())) + .ReturnsAsync(result); + var query = new GetTagsQuery { Keyword = "test" }; + await _assetService.GetTagsAsync(query); + + _apiRequestSenderMock.Verify(sender => sender.SendRequestAsync( + It.Is>>(req => + req.Path == "/api/v4/tags/" + && req.HTTPMethod == HttpMethod.Get + && req.Query is GetTagsQuerySimple + && (req.Query as GetTagsQuerySimple).Keyword == query.Keyword + ) + )); + } + [Fact] public async Task AddTagToMediaCallsRequestSenderWithValidRequest() { From 86a1f5bcc6195aecb3b004498bb6b08e69816c6f Mon Sep 17 00:00:00 2001 From: Quirijn Slings Date: Fri, 23 Aug 2024 14:57:31 +0200 Subject: [PATCH 3/8] Allow changing tags of an existing Media item --- Bynder/Sdk/Query/Asset/ModifyMediaQuery.cs | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/Bynder/Sdk/Query/Asset/ModifyMediaQuery.cs b/Bynder/Sdk/Query/Asset/ModifyMediaQuery.cs index fe571b7..a7e4f65 100644 --- a/Bynder/Sdk/Query/Asset/ModifyMediaQuery.cs +++ b/Bynder/Sdk/Query/Asset/ModifyMediaQuery.cs @@ -1,4 +1,4 @@ -using System.Collections.Generic; +using System.Collections.Generic; using Bynder.Sdk.Api.Converters; using Bynder.Sdk.Query.Decoder; @@ -68,6 +68,13 @@ public void AddMetapropertyOptions(string metapropertyId, IList optionId { MetapropertyOptions.Add(metapropertyId, optionIds); } + + /// + /// Tags that will be added to the asset + /// + [ApiField("tags", Converter = typeof(ListConverter))] + public IList Tags { get; set; } + } } From 662d100a933727528d5d0d8b8a81d2d46616e6cc Mon Sep 17 00:00:00 2001 From: Quirijn Slings Date: Fri, 23 Aug 2024 14:59:10 +0200 Subject: [PATCH 4/8] Make it possible to remove tags from an asset --- Bynder/Sdk/Service/Asset/AssetService.cs | 15 +++++++++++++++ Bynder/Sdk/Service/Asset/IAssetService.cs | 9 +++++++++ 2 files changed, 24 insertions(+) diff --git a/Bynder/Sdk/Service/Asset/AssetService.cs b/Bynder/Sdk/Service/Asset/AssetService.cs index b0c3d50..26065dc 100644 --- a/Bynder/Sdk/Service/Asset/AssetService.cs +++ b/Bynder/Sdk/Service/Asset/AssetService.cs @@ -11,6 +11,7 @@ using Bynder.Sdk.Model; using Bynder.Sdk.Query.Asset; using Bynder.Sdk.Query.Upload; +using System.Web; namespace Bynder.Sdk.Service.Asset { @@ -207,6 +208,20 @@ public async Task AddTagToMediaAsync(AddTagToMediaQuery query) }).ConfigureAwait(false); } + /// + /// Check for more information + /// + /// Check for more information + public async Task RemoveTagFromMediaAsync(string tagId, IEnumerable assetIds) + { + var encodedIdList = HttpUtility.UrlEncode(string.Join(",", assetIds)); + return await _requestSender.SendRequestAsync(new ApiRequest + { + Path = $"/api/v4/tags/{tagId}/media/?deleteIds={encodedIdList}", + HTTPMethod = HttpMethod.Delete, + }).ConfigureAwait(false); + } + /// /// Create an asset usage operation to track usage of Bynder assets in third party applications. /// diff --git a/Bynder/Sdk/Service/Asset/IAssetService.cs b/Bynder/Sdk/Service/Asset/IAssetService.cs index 8f0a7d8..23a1f71 100644 --- a/Bynder/Sdk/Service/Asset/IAssetService.cs +++ b/Bynder/Sdk/Service/Asset/IAssetService.cs @@ -106,6 +106,15 @@ public interface IAssetService /// Can be thrown when requests to server can't be completed or HTTP code returned by server is an error Task AddTagToMediaAsync(AddTagToMediaQuery query); + /// + /// Remove tags from asset + /// + /// Id of the tag to remove + /// Ids of the assets from which the tag should be removed + /// Task representing the upload + /// Can be thrown when requests to server can't be completed or HTTP code returned by server is an error + Task RemoveTagFromMediaAsync(string tagId, IEnumerable assetIds); + /// /// Create an asset usage operation to track usage of Bynder assets in third party applications. /// From 43490466aaeff7252772f156497a947ec25ecb8e Mon Sep 17 00:00:00 2001 From: Quirijn Slings Date: Fri, 23 Aug 2024 15:11:08 +0200 Subject: [PATCH 5/8] changed TagsSample to showcase the new tags-related features --- Bynder/Sample/TagsSample.cs | 73 +++++++++++++++++++++++++++++++++---- 1 file changed, 65 insertions(+), 8 deletions(-) diff --git a/Bynder/Sample/TagsSample.cs b/Bynder/Sample/TagsSample.cs index e64cbba..2b5f76e 100644 --- a/Bynder/Sample/TagsSample.cs +++ b/Bynder/Sample/TagsSample.cs @@ -10,6 +10,7 @@ using System.Collections.Generic; using Bynder.Sdk.Query.Asset; using Bynder.Sdk.Model; +using Bynder.Sdk.Service.Asset; namespace Bynder.Sample { @@ -33,8 +34,9 @@ private TagsSample(Configuration configuration) { private async Task RunTagsSampleAsync() { + var assetService = _bynderClient.GetAssetService(); Console.WriteLine("Getting tags with a limit of 10: "); - var tags = await _bynderClient.GetAssetService().GetTagsAsync(new GetTagsQuery{Limit = 10}); + var tags = await assetService.GetTagsAsync(new GetTagsQuery{Limit = 10}); foreach(Tag tag in tags){ Console.WriteLine($"Tag Id: {tag.ID}"); Console.WriteLine($"Tag Name: {tag.TagName}"); @@ -42,16 +44,71 @@ private async Task RunTagsSampleAsync() } Console.WriteLine("Enter the media ID to add a tag to: "); - var mediaIdAddTag = Console.ReadLine(); + var mediaId = Console.ReadLine(); Console.WriteLine("Enter the tag ID to add to the media: "); - var tagIdAddToMedia = Console.ReadLine(); - List mediasAddTag = new List + var tagId = Console.ReadLine(); + await assetService.AddTagToMediaAsync(new AddTagToMediaQuery(tagId, [ mediaId ])); + + Console.WriteLine("Hit enter to view the asset (it may take a few seconds before the tag is registered)"); + Console.ReadKey(); + var asset = await assetService.GetMediaInfoAsync(new MediaInformationQuery() { MediaId = mediaId }); + ShowTags(asset); + + Console.WriteLine("Enter a new tag to add to the same media: "); + var anotherTag = Console.ReadLine(); + if (asset.Tags == null) + { + asset.Tags = [anotherTag]; + } + else + { + asset.Tags.Add(anotherTag); + } + + await assetService.ModifyMediaAsync(new ModifyMediaQuery(mediaId) { Tags = asset.Tags } ); + + Console.WriteLine("Hit enter to view the asset (it may take a few seconds before the tag is registered)"); + Console.ReadKey(); + asset = await assetService.GetMediaInfoAsync(new MediaInformationQuery() { MediaId = mediaId }); + ShowTags(asset); + + Console.WriteLine("Hit enter to remove the tags again"); + Console.ReadKey(); + + foreach (var tag in asset.Tags) { - mediaIdAddTag - }; - await _bynderClient.GetAssetService().AddTagToMediaAsync(new AddTagToMediaQuery(tagIdAddToMedia, mediasAddTag)); + var matchingTags = await assetService.GetTagsAsync(new GetTagsQuery() { Keyword = tag }); + if (matchingTags.Any()) + { + var tagToRemove = matchingTags.FirstOrDefault(t => t.TagName.Equals(tag, StringComparison.InvariantCultureIgnoreCase)); + Console.WriteLine($"Removing tag {tagToRemove.TagName} with id {tagToRemove.ID}"); + await assetService.RemoveTagFromMediaAsync(tagToRemove.ID, [mediaId]); + } + else + { + Console.WriteLine($"Error: after adding tag with name '{tag}' to asset {mediaId}, tag cannot be found in Bynder"); + } + } + + Console.WriteLine("Hit enter to view the asset (it may take a few seconds before the tags have been removed)"); + Console.ReadKey(); + + asset = await assetService.GetMediaInfoAsync(new MediaInformationQuery() { MediaId = mediaId }); + ShowTags(asset); } - + + private async void ShowTags(Media asset) + { + if (asset.Tags?.Any() ?? false) + { + Console.WriteLine($"Media with name {asset.Name} now has the following tags: {string.Join(',', asset.Tags)}"); + } + else + { + Console.WriteLine($"Media with name {asset.Name} has no tags"); + } + } + private async Task AuthenticateWithOAuth2Async(bool useClientCredentials) { if (useClientCredentials) From 5e8f4bc318c8685336a9823cf8cdbeb81bf80bb4 Mon Sep 17 00:00:00 2001 From: Quirijn Slings Date: Fri, 23 Aug 2024 15:11:20 +0200 Subject: [PATCH 6/8] updated gitignore --- .gitignore | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.gitignore b/.gitignore index 0250353..5fa7401 100644 --- a/.gitignore +++ b/.gitignore @@ -15,3 +15,6 @@ packages/* # Visual Studio code coverage results coverage.opencover.xml + +# Visual studio *.csproj.user files (which keep track of which files have been opened etc) +*.csproj.user From 19fe12b292a0dcb7bfb15b31a601f8601c47e269 Mon Sep 17 00:00:00 2001 From: Quirijn Slings Date: Wed, 4 Sep 2024 09:22:05 +0200 Subject: [PATCH 7/8] updated gitignore to the toptotal standard, added launchSettings to help developers run the samples --- .gitignore | 406 ++++++++++++++++++- Bynder/Sample/Properties/launchSettings.json | 40 ++ 2 files changed, 437 insertions(+), 9 deletions(-) create mode 100644 Bynder/Sample/Properties/launchSettings.json diff --git a/.gitignore b/.gitignore index 0250353..d1d96e7 100644 --- a/.gitignore +++ b/.gitignore @@ -1,17 +1,405 @@ -# General macOS -.DS_Store -.AppleDouble -.LSOverride +# Created by https://www.toptal.com/developers/gitignore/api/visualstudio +# Edit at https://www.toptal.com/developers/gitignore?templates=visualstudio + +### VisualStudio ### +## Ignore Visual Studio temporary files, build results, and +## files generated by popular Visual Studio add-ons. +## +## Get latest from https://github.com/github/gitignore/blob/main/VisualStudio.gitignore + +# User-specific files +*.rsuser +*.suo +*.user +*.userosscache +*.sln.docstates + +# User-specific files (MonoDevelop/Xamarin Studio) +*.userprefs + +# Mono auto generated files +mono_crash.* # Build results -bin/ -obj/ +[Dd]ebug/ +[Dd]ebugPublic/ +[Rr]elease/ +[Rr]eleases/ +x64/ +x86/ +[Ww][Ii][Nn]32/ +[Aa][Rr][Mm]/ +[Aa][Rr][Mm]64/ +bld/ +[Bb]in/ +[Oo]bj/ +[Ll]og/ +[Ll]ogs/ # Visual Studio 2015/2017 cache/options directory .vs/ +# Uncomment if you have tasks that create the project's static files in wwwroot +#wwwroot/ -# The packages folder can be ignored because of Package Restore -packages/* +# Visual Studio 2017 auto generated files +Generated\ Files/ + +# MSTest test Results +[Tt]est[Rr]esult*/ +[Bb]uild[Ll]og.* + +# NUnit +*.VisualState.xml +TestResult.xml +nunit-*.xml + +# Build Results of an ATL Project +[Dd]ebugPS/ +[Rr]eleasePS/ +dlldata.c + +# Benchmark Results +BenchmarkDotNet.Artifacts/ + +# .NET Core +project.lock.json +project.fragment.lock.json +artifacts/ + +# ASP.NET Scaffolding +ScaffoldingReadMe.txt + +# StyleCop +StyleCopReport.xml + +# Files built by Visual Studio +*_i.c +*_p.c +*_h.h +*.ilk +*.meta +*.obj +*.iobj +*.pch +*.pdb +*.ipdb +*.pgc +*.pgd +*.rsp +*.sbr +*.tlb +*.tli +*.tlh +*.tmp +*.tmp_proj +*_wpftmp.csproj +*.log +*.tlog +*.vspscc +*.vssscc +.builds +*.pidb +*.svclog +*.scc + +# Chutzpah Test files +_Chutzpah* + +# Visual C++ cache files +ipch/ +*.aps +*.ncb +*.opendb +*.opensdf +*.sdf +*.cachefile +*.VC.db +*.VC.VC.opendb + +# Visual Studio profiler +*.psess +*.vsp +*.vspx +*.sap + +# Visual Studio Trace Files +*.e2e + +# TFS 2012 Local Workspace +$tf/ + +# Guidance Automation Toolkit +*.gpState + +# ReSharper is a .NET coding add-in +_ReSharper*/ +*.[Rr]e[Ss]harper +*.DotSettings.user + +# TeamCity is a build add-in +_TeamCity* + +# DotCover is a Code Coverage Tool +*.dotCover + +# AxoCover is a Code Coverage Tool +.axoCover/* +!.axoCover/settings.json + +# Coverlet is a free, cross platform Code Coverage Tool +coverage*.json +coverage*.xml +coverage*.info # Visual Studio code coverage results -coverage.opencover.xml +*.coverage +*.coveragexml + +# NCrunch +_NCrunch_* +.*crunch*.local.xml +nCrunchTemp_* + +# MightyMoose +*.mm.* +AutoTest.Net/ + +# Web workbench (sass) +.sass-cache/ + +# Installshield output folder +[Ee]xpress/ + +# DocProject is a documentation generator add-in +DocProject/buildhelp/ +DocProject/Help/*.HxT +DocProject/Help/*.HxC +DocProject/Help/*.hhc +DocProject/Help/*.hhk +DocProject/Help/*.hhp +DocProject/Help/Html2 +DocProject/Help/html + +# Click-Once directory +publish/ + +# Publish Web Output +*.[Pp]ublish.xml +*.azurePubxml +# Note: Comment the next line if you want to checkin your web deploy settings, +# but database connection strings (with potential passwords) will be unencrypted +*.pubxml +*.publishproj + +# Microsoft Azure Web App publish settings. Comment the next line if you want to +# checkin your Azure Web App publish settings, but sensitive information contained +# in these scripts will be unencrypted +PublishScripts/ + +# NuGet Packages +*.nupkg +# NuGet Symbol Packages +*.snupkg +# The packages folder can be ignored because of Package Restore +**/[Pp]ackages/* +# except build/, which is used as an MSBuild target. +!**/[Pp]ackages/build/ +# Uncomment if necessary however generally it will be regenerated when needed +#!**/[Pp]ackages/repositories.config +# NuGet v3's project.json files produces more ignorable files +*.nuget.props +*.nuget.targets + +# Microsoft Azure Build Output +csx/ +*.build.csdef + +# Microsoft Azure Emulator +ecf/ +rcf/ + +# Windows Store app package directories and files +AppPackages/ +BundleArtifacts/ +Package.StoreAssociation.xml +_pkginfo.txt +*.appx +*.appxbundle +*.appxupload + +# Visual Studio cache files +# files ending in .cache can be ignored +*.[Cc]ache +# but keep track of directories ending in .cache +!?*.[Cc]ache/ + +# Others +ClientBin/ +~$* +*~ +*.dbmdl +*.dbproj.schemaview +*.jfm +*.pfx +*.publishsettings +orleans.codegen.cs + +# Including strong name files can present a security risk +# (https://github.com/github/gitignore/pull/2483#issue-259490424) +#*.snk + +# Since there are multiple workflows, uncomment next line to ignore bower_components +# (https://github.com/github/gitignore/pull/1529#issuecomment-104372622) +#bower_components/ + +# RIA/Silverlight projects +Generated_Code/ + +# Backup & report files from converting an old project file +# to a newer Visual Studio version. Backup files are not needed, +# because we have git ;-) +_UpgradeReport_Files/ +Backup*/ +UpgradeLog*.XML +UpgradeLog*.htm +ServiceFabricBackup/ +*.rptproj.bak + +# SQL Server files +*.mdf +*.ldf +*.ndf + +# Business Intelligence projects +*.rdl.data +*.bim.layout +*.bim_*.settings +*.rptproj.rsuser +*- [Bb]ackup.rdl +*- [Bb]ackup ([0-9]).rdl +*- [Bb]ackup ([0-9][0-9]).rdl + +# Microsoft Fakes +FakesAssemblies/ + +# GhostDoc plugin setting file +*.GhostDoc.xml + +# Node.js Tools for Visual Studio +.ntvs_analysis.dat +node_modules/ + +# Visual Studio 6 build log +*.plg + +# Visual Studio 6 workspace options file +*.opt + +# Visual Studio 6 auto-generated workspace file (contains which files were open etc.) +*.vbw + +# Visual Studio 6 auto-generated project file (contains which files were open etc.) +*.vbp + +# Visual Studio 6 workspace and project file (working project files containing files to include in project) +*.dsw +*.dsp + +# Visual Studio 6 technical files + +# Visual Studio LightSwitch build output +**/*.HTMLClient/GeneratedArtifacts +**/*.DesktopClient/GeneratedArtifacts +**/*.DesktopClient/ModelManifest.xml +**/*.Server/GeneratedArtifacts +**/*.Server/ModelManifest.xml +_Pvt_Extensions + +# Paket dependency manager +.paket/paket.exe +paket-files/ + +# FAKE - F# Make +.fake/ + +# CodeRush personal settings +.cr/personal + +# Python Tools for Visual Studio (PTVS) +__pycache__/ +*.pyc + +# Cake - Uncomment if you are using it +# tools/** +# !tools/packages.config + +# Tabs Studio +*.tss + +# Telerik's JustMock configuration file +*.jmconfig + +# BizTalk build output +*.btp.cs +*.btm.cs +*.odx.cs +*.xsd.cs + +# OpenCover UI analysis results +OpenCover/ + +# Azure Stream Analytics local run output +ASALocalRun/ + +# MSBuild Binary and Structured Log +*.binlog + +# NVidia Nsight GPU debugger configuration file +*.nvuser + +# MFractors (Xamarin productivity tool) working folder +.mfractor/ + +# Local History for Visual Studio +.localhistory/ + +# Visual Studio History (VSHistory) files +.vshistory/ + +# BeatPulse healthcheck temp database +healthchecksdb + +# Backup folder for Package Reference Convert tool in Visual Studio 2017 +MigrationBackup/ + +# Ionide (cross platform F# VS Code tools) working folder +.ionide/ + +# Fody - auto-generated XML schema +FodyWeavers.xsd + +# VS Code files for those working on multiple tools +.vscode/* +!.vscode/settings.json +!.vscode/tasks.json +!.vscode/launch.json +!.vscode/extensions.json +*.code-workspace + +# Local History for Visual Studio Code +.history/ + +# Windows Installer files from build outputs +*.cab +*.msi +*.msix +*.msm +*.msp + +# JetBrains Rider +*.sln.iml + +### VisualStudio Patch ### +# Additional files built by Visual Studio + +# End of https://www.toptal.com/developers/gitignore/api/visualstudio \ No newline at end of file diff --git a/Bynder/Sample/Properties/launchSettings.json b/Bynder/Sample/Properties/launchSettings.json new file mode 100644 index 0000000..865d3b8 --- /dev/null +++ b/Bynder/Sample/Properties/launchSettings.json @@ -0,0 +1,40 @@ +{ + "profiles": { + "WSL": { + "commandName": "WSL2", + "distributionName": "" + }, + "Run MediaSample": { + "commandName": "Project", + "commandLineArgs": "MediaSample" + }, + "Run MetapropertyToMediaSample": { + "commandName": "Project", + "commandLineArgs": "MetapropertyToMediaSample" + }, + "Run BrandsSample": { + "commandName": "Project", + "commandLineArgs": "BrandsSample" + }, + "Run MetapropertiesSample": { + "commandName": "Project", + "commandLineArgs": "MetapropertiesSample" + }, + "Run CollectionsSample": { + "commandName": "Project", + "commandLineArgs": "CollectionsSample" + }, + "Run TagsSample": { + "commandName": "Project", + "commandLineArgs": "TagsSample" + }, + "Run UploadSample": { + "commandName": "Project", + "commandLineArgs": "UploadSample" + }, + "Run AssetUsageSample": { + "commandName": "Project", + "commandLineArgs": "AssetUsageSample" + }, + } +} \ No newline at end of file From d7f8b9a85ad9cbbb255d57175c37523c88fe14a5 Mon Sep 17 00:00:00 2001 From: Quirijn Slings Date: Wed, 4 Sep 2024 09:24:08 +0200 Subject: [PATCH 8/8] fixed merge conflict --- Bynder/Sample/TagsSample.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/Bynder/Sample/TagsSample.cs b/Bynder/Sample/TagsSample.cs index 2b5f76e..9c53469 100644 --- a/Bynder/Sample/TagsSample.cs +++ b/Bynder/Sample/TagsSample.cs @@ -95,6 +95,7 @@ private async Task RunTagsSampleAsync() asset = await assetService.GetMediaInfoAsync(new MediaInformationQuery() { MediaId = mediaId }); ShowTags(asset); + } private async void ShowTags(Media asset)