Skip to content

Commit

Permalink
Mark types used for Identity Search as obsolete (#98)
Browse files Browse the repository at this point in the history
  • Loading branch information
mburumaxwell authored Jul 13, 2022
1 parent c1a7e3b commit 9cbe95a
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 1 deletion.
3 changes: 3 additions & 0 deletions src/FaluSdk/FaluClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,9 @@ public FaluClient(HttpClient backChannel, IOptionsSnapshot<TOptions> optionsAcce
Events = new EventsServiceClient(BackChannel, Options);
Files = new FilesServiceClient(BackChannel, Options);
FileLinks = new FileLinksServiceClient(BackChannel, Options);
#pragma warning disable CS0618 // Type or member is obsolete
Identity = new IdentityServiceClient(BackChannel, Options);
#pragma warning restore CS0618 // Type or member is obsolete
IdentityVerifications = new IdentityVerificationsServiceClient(BackChannel, Options);
IdentityVerificationReports = new IdentityVerificationReportsServiceClient(BackChannel, Options);
Messages = new MessagesServiceClient(BackChannel, Options);
Expand Down Expand Up @@ -86,6 +88,7 @@ public FaluClient(HttpClient backChannel, IOptionsSnapshot<TOptions> optionsAcce
public virtual FileLinksServiceClient FileLinks { get; protected set; }

///
[Obsolete(MessageStrings.IdentitySearchDeprecated)]
public virtual IdentityServiceClient Identity { get; protected set; }

///
Expand Down
1 change: 1 addition & 0 deletions src/FaluSdk/Identity/IdentityRecord.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ namespace Falu.Identity;
/// <summary>
/// The identification record for an entity.
/// </summary>
[Obsolete(MessageStrings.IdentitySearchDeprecated)]
public class IdentityRecord : IHasId, IHasCreated, IHasUpdated, IHasCountry, IHasEtag
{
/// <inheritdoc/>
Expand Down
1 change: 1 addition & 0 deletions src/FaluSdk/Identity/IdentitySearchModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ namespace Falu.Identity;
/// <summary>
/// Information for searching for an entity's identity.
/// </summary>
[Obsolete(MessageStrings.IdentitySearchDeprecated)]
public class IdentitySearchModel : IHasCountry
{
/// <inheritdoc />
Expand Down
1 change: 1 addition & 0 deletions src/FaluSdk/Identity/IdentityServiceClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
namespace Falu.Identity;

///
[Obsolete(MessageStrings.IdentitySearchDeprecated)]
public class IdentityServiceClient : BaseServiceClient<IdentityRecord>
{
///
Expand Down
2 changes: 1 addition & 1 deletion src/FaluSdk/MessageStrings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@

internal class MessageStrings
{
public const string TagsDeprecated = "Tags have been deprecated and scheduled to be removed in a future API update. Migrate to using Metadata.";
public const string IdentitySearchDeprecated = "Identity Search has been deprecated and scheduled to be removed in a future API update. Migrate to using Identity Verifications.";
}
1 change: 1 addition & 0 deletions tests/FaluSdk.Tests/Clients/IdentityServiceClientTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

namespace Falu.Tests.Clients;

[Obsolete(MessageStrings.IdentitySearchDeprecated)]
public class IdentityServiceClientTests : BaseServiceClientTests
{
private const string BasePath = "/v1/identity";
Expand Down

0 comments on commit 9cbe95a

Please sign in to comment.