Skip to content

Commit

Permalink
Merge pull request #221 from dvonthenen/add-license-header-to-files
Browse files Browse the repository at this point in the history
Add License Headers to All Source Code
  • Loading branch information
davidvonthenen authored Feb 7, 2024
2 parents 67dea8d + 02ad602 commit 2552c19
Show file tree
Hide file tree
Showing 147 changed files with 752 additions and 168 deletions.
6 changes: 5 additions & 1 deletion Deepgram.Tests/Fakes/ConcreteRestClient.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
using Deepgram.Models.Authenticate.v1;
// Copyright 2021-2023 Deepgram .NET SDK contributors. All Rights Reserved.
// Use of this source code is governed by a MIT license that can be found in the LICENSE file.
// SPDX-License-Identifier: MIT

using Deepgram.Models.Authenticate.v1;

namespace Deepgram.Tests.Fakes;

Expand Down
6 changes: 5 additions & 1 deletion Deepgram.Tests/Fakes/MockHttpClient.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
namespace Deepgram.Tests.Fakes;
// Copyright 2021-2023 Deepgram .NET SDK contributors. All Rights Reserved.
// Use of this source code is governed by a MIT license that can be found in the LICENSE file.
// SPDX-License-Identifier: MIT

namespace Deepgram.Tests.Fakes;
public static class MockHttpClient
{
public static HttpClient CreateHttpClientWithResult<T>(
Expand Down
6 changes: 5 additions & 1 deletion Deepgram.Tests/Fakes/MockHttpMessageHandler.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
namespace Deepgram.Tests.Fakes;
// Copyright 2021-2023 Deepgram .NET SDK contributors. All Rights Reserved.
// Use of this source code is governed by a MIT license that can be found in the LICENSE file.
// SPDX-License-Identifier: MIT

namespace Deepgram.Tests.Fakes;
public class MockHttpMessageHandler<T>(T response, HttpStatusCode statusCode) : HttpMessageHandler
{
protected override Task<HttpResponseMessage> SendAsync(HttpRequestMessage request, CancellationToken cancellationToken)
Expand Down
6 changes: 5 additions & 1 deletion Deepgram.Tests/Fakes/MockHttpMessageHandlerException.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
namespace Deepgram.Tests.Fakes;
// Copyright 2021-2023 Deepgram .NET SDK contributors. All Rights Reserved.
// Use of this source code is governed by a MIT license that can be found in the LICENSE file.
// SPDX-License-Identifier: MIT

namespace Deepgram.Tests.Fakes;
public class MockHttpMessageHandlerException(Exception exceptionType) : HttpMessageHandler
{
protected override Task<HttpResponseMessage> SendAsync(HttpRequestMessage request, CancellationToken cancellationToken)
Expand Down
6 changes: 5 additions & 1 deletion Deepgram.Tests/GlobalSuppressions.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
// This file is used by Code Analysis to maintain SuppressMessage
// Copyright 2021-2023 Deepgram .NET SDK contributors. All Rights Reserved.
// Use of this source code is governed by a MIT license that can be found in the LICENSE file.
// SPDX-License-Identifier: MIT

// This file is used by Code Analysis to maintain SuppressMessage
// attributes that are applied to this project.
// Project-level suppressions either have no target or are given
// a specific target and scoped to a namespace, type, member, etc.
Expand Down
6 changes: 5 additions & 1 deletion Deepgram.Tests/GlobalUsings.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
global using System.Net;
// Copyright 2021-2023 Deepgram .NET SDK contributors. All Rights Reserved.
// Use of this source code is governed by a MIT license that can be found in the LICENSE file.
// SPDX-License-Identifier: MIT

global using System.Net;
global using System.Text;
global using System.Text.Json;
global using System.Web;
Expand Down
6 changes: 5 additions & 1 deletion Deepgram.Tests/TestExtensions/LoggerTestExtensions.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
using Microsoft.Extensions.Logging;
// Copyright 2021-2023 Deepgram .NET SDK contributors. All Rights Reserved.
// Use of this source code is governed by a MIT license that can be found in the LICENSE file.
// SPDX-License-Identifier: MIT

using Microsoft.Extensions.Logging;

namespace Deepgram.Tests.TestExtensions;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
using Deepgram.Encapsulations;
// Copyright 2021-2023 Deepgram .NET SDK contributors. All Rights Reserved.
// Use of this source code is governed by a MIT license that can be found in the LICENSE file.
// SPDX-License-Identifier: MIT

using Deepgram.Encapsulations;
using Deepgram.Models.Manage.v1;
using Deepgram.Models.PreRecorded.v1;
using Deepgram.Models.Authenticate.v1;
Expand Down
6 changes: 5 additions & 1 deletion Deepgram.Tests/UnitTests/ClientTests/LiveClientTests.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
using System.Net.WebSockets;
// Copyright 2021-2023 Deepgram .NET SDK contributors. All Rights Reserved.
// Use of this source code is governed by a MIT license that can be found in the LICENSE file.
// SPDX-License-Identifier: MIT

using System.Net.WebSockets;
using Deepgram.DeepgramEventArgs;
using Deepgram.Models.Live.v1;
using Deepgram.Models.Authenticate.v1;
Expand Down
6 changes: 5 additions & 1 deletion Deepgram.Tests/UnitTests/ClientTests/ManageClientTest.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
using Deepgram.Encapsulations;
// Copyright 2021-2023 Deepgram .NET SDK contributors. All Rights Reserved.
// Use of this source code is governed by a MIT license that can be found in the LICENSE file.
// SPDX-License-Identifier: MIT

using Deepgram.Encapsulations;
using Deepgram.Models.Manage;
using Deepgram.Models.Manage.v1;
using Deepgram.Models.Authenticate.v1;
Expand Down
6 changes: 5 additions & 1 deletion Deepgram.Tests/UnitTests/ClientTests/OnPremClientTests.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
using Deepgram.Encapsulations;
// Copyright 2021-2023 Deepgram .NET SDK contributors. All Rights Reserved.
// Use of this source code is governed by a MIT license that can be found in the LICENSE file.
// SPDX-License-Identifier: MIT

using Deepgram.Encapsulations;
using Deepgram.Models.Manage.v1;
using Deepgram.Models.OnPrem.v1;
using Deepgram.Models.Authenticate.v1;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
using Deepgram.Encapsulations;
// Copyright 2021-2023 Deepgram .NET SDK contributors. All Rights Reserved.
// Use of this source code is governed by a MIT license that can be found in the LICENSE file.
// SPDX-License-Identifier: MIT

using Deepgram.Encapsulations;
using Deepgram.Models.PreRecorded.v1;
using Deepgram.Models.Authenticate.v1;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
using Deepgram.Models.Manage.v1;
// Copyright 2021-2023 Deepgram .NET SDK contributors. All Rights Reserved.
// Use of this source code is governed by a MIT license that can be found in the LICENSE file.
// SPDX-License-Identifier: MIT

using Deepgram.Models.Manage.v1;
using Deepgram.Models.Authenticate.v1;

namespace Deepgram.Tests.UnitTests.ExtensionsTests;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@

// Copyright 2021-2023 Deepgram .NET SDK contributors. All Rights Reserved.
// Use of this source code is governed by a MIT license that can be found in the LICENSE file.
// SPDX-License-Identifier: MIT

using Deepgram.Logger;
using Microsoft.Extensions.Logging;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
using Deepgram.Models.Manage.v1;
// Copyright 2021-2023 Deepgram .NET SDK contributors. All Rights Reserved.
// Use of this source code is governed by a MIT license that can be found in the LICENSE file.
// SPDX-License-Identifier: MIT

using Deepgram.Models.Manage.v1;
using Deepgram.Models.PreRecorded.v1;

namespace Deepgram.Tests.UnitTests.UtilitiesTests;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@

// Copyright 2021-2023 Deepgram .NET SDK contributors. All Rights Reserved.
// Use of this source code is governed by a MIT license that can be found in the LICENSE file.
// SPDX-License-Identifier: MIT

using Deepgram.Models.Manage.v1;

namespace Deepgram.Tests.UnitTests.UtilitiesTests;
Expand Down
6 changes: 5 additions & 1 deletion Deepgram.Tests/UnitTests/UtilitiesTests/UserAgentTest.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
namespace Deepgram.Tests.UnitTests.UtilitiesTests;
// Copyright 2021-2023 Deepgram .NET SDK contributors. All Rights Reserved.
// Use of this source code is governed by a MIT license that can be found in the LICENSE file.
// SPDX-License-Identifier: MIT

namespace Deepgram.Tests.UnitTests.UtilitiesTests;
internal class UserAgentTest
{
[Test]
Expand Down
6 changes: 5 additions & 1 deletion Deepgram.Tests/VoidResponse.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
namespace Deepgram.Tests;
// Copyright 2021-2023 Deepgram .NET SDK contributors. All Rights Reserved.
// Use of this source code is governed by a MIT license that can be found in the LICENSE file.
// SPDX-License-Identifier: MIT

namespace Deepgram.Tests;
public class VoidResponse
{
public Exception? Error { get; set; }
Expand Down
6 changes: 5 additions & 1 deletion Deepgram/Abstractions/AbstractRestClient.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
using Deepgram.Encapsulations;
// Copyright 2021-2023 Deepgram .NET SDK contributors. All Rights Reserved.
// Use of this source code is governed by a MIT license that can be found in the LICENSE file.
// SPDX-License-Identifier: MIT

using Deepgram.Encapsulations;
using Deepgram.Models.Authenticate.v1;

namespace Deepgram.Abstractions;
Expand Down
6 changes: 5 additions & 1 deletion Deepgram/AnalyzeClient.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
using Deepgram.Models.Analyze.v1;
// Copyright 2021-2023 Deepgram .NET SDK contributors. All Rights Reserved.
// Use of this source code is governed by a MIT license that can be found in the LICENSE file.
// SPDX-License-Identifier: MIT

using Deepgram.Models.Analyze.v1;
using Deepgram.Models.Authenticate.v1;

namespace Deepgram;
Expand Down
6 changes: 5 additions & 1 deletion Deepgram/Constants/AudioEncoding.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
namespace Deepgram.Constants;
// Copyright 2021-2023 Deepgram .NET SDK contributors. All Rights Reserved.
// Use of this source code is governed by a MIT license that can be found in the LICENSE file.
// SPDX-License-Identifier: MIT

namespace Deepgram.Constants;

/// <summary>
/// Expected encoding of the submitted streaming audio.
Expand Down
6 changes: 5 additions & 1 deletion Deepgram/Constants/Defaults.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
namespace Deepgram.Constants;
// Copyright 2021-2023 Deepgram .NET SDK contributors. All Rights Reserved.
// Use of this source code is governed by a MIT license that can be found in the LICENSE file.
// SPDX-License-Identifier: MIT

namespace Deepgram.Constants;

public static class Defaults
{
Expand Down
6 changes: 5 additions & 1 deletion Deepgram/Constants/UriSegments.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
namespace Deepgram.Constants;
// Copyright 2021-2023 Deepgram .NET SDK contributors. All Rights Reserved.
// Use of this source code is governed by a MIT license that can be found in the LICENSE file.
// SPDX-License-Identifier: MIT

namespace Deepgram.Constants;
public static class UriSegments
{

Expand Down
6 changes: 5 additions & 1 deletion Deepgram/Encapsulations/HttpClientFactory.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
using Deepgram.Extensions;
// Copyright 2021-2023 Deepgram .NET SDK contributors. All Rights Reserved.
// Use of this source code is governed by a MIT license that can be found in the LICENSE file.
// SPDX-License-Identifier: MIT

using Deepgram.Extensions;
using Deepgram.Models.Authenticate.v1;

namespace Deepgram.Encapsulations;
Expand Down
6 changes: 5 additions & 1 deletion Deepgram/Encapsulations/HttpClientWrapper.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
namespace Deepgram.Encapsulations;
// Copyright 2021-2023 Deepgram .NET SDK contributors. All Rights Reserved.
// Use of this source code is governed by a MIT license that can be found in the LICENSE file.
// SPDX-License-Identifier: MIT

namespace Deepgram.Encapsulations;

internal class HttpClientWrapper(HttpClient HttpClient)
{
Expand Down
6 changes: 5 additions & 1 deletion Deepgram/Enums/LiveType.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
namespace Deepgram.Enums;
// Copyright 2021-2023 Deepgram .NET SDK contributors. All Rights Reserved.
// Use of this source code is governed by a MIT license that can be found in the LICENSE file.
// SPDX-License-Identifier: MIT

namespace Deepgram.Enums;
public enum LiveType
{
Metadata,
Expand Down
6 changes: 5 additions & 1 deletion Deepgram/Enums/RequestMethod.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
namespace Deepgram.Enums;
// Copyright 2021-2023 Deepgram .NET SDK contributors. All Rights Reserved.
// Use of this source code is governed by a MIT license that can be found in the LICENSE file.
// SPDX-License-Identifier: MIT

namespace Deepgram.Enums;

public enum RequestMethod
{
Expand Down
6 changes: 5 additions & 1 deletion Deepgram/Enums/WarningType.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
using System.Runtime.Serialization;
// Copyright 2021-2023 Deepgram .NET SDK contributors. All Rights Reserved.
// Use of this source code is governed by a MIT license that can be found in the LICENSE file.
// SPDX-License-Identifier: MIT

using System.Runtime.Serialization;

namespace Deepgram.Enums;

Expand Down
6 changes: 5 additions & 1 deletion Deepgram/EventArgs/ResponseReceivedEventArgs.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
using Deepgram.Models.Live.v1;
// Copyright 2021-2023 Deepgram .NET SDK contributors. All Rights Reserved.
// Use of this source code is governed by a MIT license that can be found in the LICENSE file.
// SPDX-License-Identifier: MIT

using Deepgram.Models.Live.v1;

namespace Deepgram.DeepgramEventArgs;

Expand Down
6 changes: 5 additions & 1 deletion Deepgram/Extensions/ClientWebSocketExtensions.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
using Deepgram.Models.Authenticate.v1;
// Copyright 2021-2023 Deepgram .NET SDK contributors. All Rights Reserved.
// Use of this source code is governed by a MIT license that can be found in the LICENSE file.
// SPDX-License-Identifier: MIT

using Deepgram.Models.Authenticate.v1;

namespace Deepgram.Extensions;
public static class ClientWebSocketExtensions
Expand Down
6 changes: 5 additions & 1 deletion Deepgram/Extensions/HttpClientExtensions.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
using Deepgram.Models.Authenticate.v1;
// Copyright 2021-2023 Deepgram .NET SDK contributors. All Rights Reserved.
// Use of this source code is governed by a MIT license that can be found in the LICENSE file.
// SPDX-License-Identifier: MIT

using Deepgram.Models.Authenticate.v1;

namespace Deepgram.Extensions;

Expand Down
6 changes: 5 additions & 1 deletion Deepgram/GlobalSuppressions.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
// This file is used by Code Analysis to maintain SuppressMessage
// Copyright 2021-2023 Deepgram .NET SDK contributors. All Rights Reserved.
// Use of this source code is governed by a MIT license that can be found in the LICENSE file.
// SPDX-License-Identifier: MIT

// This file is used by Code Analysis to maintain SuppressMessage
// attributes that are applied to this project.
// Project-level suppressions either have no target or are given
// a specific target and scoped to a namespace, type, member, etc.
Expand Down
6 changes: 5 additions & 1 deletion Deepgram/GlobalUsings.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
global using System.Collections.Concurrent;
// Copyright 2021-2023 Deepgram .NET SDK contributors. All Rights Reserved.
// Use of this source code is governed by a MIT license that can be found in the LICENSE file.
// SPDX-License-Identifier: MIT

global using System.Collections.Concurrent;
global using System.Net.Http.Headers;
global using System.Net.WebSockets;
global using System.Reflection;
Expand Down
6 changes: 5 additions & 1 deletion Deepgram/LiveClient.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
using Deepgram.Extensions;
// Copyright 2021-2023 Deepgram .NET SDK contributors. All Rights Reserved.
// Use of this source code is governed by a MIT license that can be found in the LICENSE file.
// SPDX-License-Identifier: MIT

using Deepgram.Extensions;
using Deepgram.Models.Live.v1;
using Deepgram.Models.Authenticate.v1;

Expand Down
6 changes: 5 additions & 1 deletion Deepgram/Logger/Log.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
using Deepgram.Models.Manage.v1;
// Copyright 2021-2023 Deepgram .NET SDK contributors. All Rights Reserved.
// Use of this source code is governed by a MIT license that can be found in the LICENSE file.
// SPDX-License-Identifier: MIT

using Deepgram.Models.Manage.v1;

namespace Deepgram.Logger;
internal static partial class Log
Expand Down
Loading

0 comments on commit 2552c19

Please sign in to comment.