Skip to content

Commit

Permalink
Added AdultInfo extensions class
Browse files Browse the repository at this point in the history
  • Loading branch information
BnnQ committed Aug 17, 2023
1 parent f129480 commit 96ec4be
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions Utils/Extensions/AdultInfoExtensions.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
using Microsoft.Azure.CognitiveServices.Vision.ComputerVision.Models;

namespace SeeSayMicroservices.Utils.Extensions;

public static class AdultInfoExtensions
{
public static bool IsInappropriateContent(this AdultInfo info)
{
return info.IsAdultContent || info.IsGoryContent || info.IsRacyContent;
}
}

0 comments on commit 96ec4be

Please sign in to comment.