Class ProfanityService

java.lang.Object
com.bitheads.braincloud.services.ProfanityService

public class ProfanityService
extends Object
Created by prestonjennings on 15-12-14.
  • Constructor Details

  • Method Details

    • profanityCheck

      public void profanityCheck​(String text, String languages, boolean flagEmail, boolean flagPhone, boolean flagUrls, IServerCallback callback)
      Checks supplied text for profanity. Service Name - Profanity Service Operation - ProfanityCheck
      Parameters:
      text - The text to check
      languages - Optional comma delimited list of two character language codes
      flagEmail - Optional processing of email addresses
      flagPhone - Optional processing of phone numbers
      flagUrls - Optional processing of urls
      callback - The method to be invoked when the server response is received Significant error codes: 40421 - WebPurify not configured 40422 - General exception occurred 40423 - WebPurify returned an error (Http status != 200) 40424 - WebPurify not enabled
    • profanityReplaceText

      public void profanityReplaceText​(String text, String replaceSymbol, String languages, boolean flagEmail, boolean flagPhone, boolean flagUrls, IServerCallback callback)
      Replaces the characters of profanity text with a passed character(s). Service Name - Profanity Service Operation - ProfanityReplaceText
      Parameters:
      text - The text to check
      replaceSymbol - The text to replace individual characters of profanity text with
      languages - Optional comma delimited list of two character language codes
      flagEmail - Optional processing of email addresses
      flagPhone - Optional processing of phone numbers
      flagUrls - Optional processing of urls
      callback - The method to be invoked when the server response is received Significant error codes: 40421 - WebPurify not configured 40422 - General exception occurred 40423 - WebPurify returned an error (Http status != 200) 40424 - WebPurify not enabled