Package com.bitheads.braincloud.services
Class ProfanityService
java.lang.Object
com.bitheads.braincloud.services.ProfanityService
public class ProfanityService extends Object
Created by prestonjennings on 15-12-14.
-
Constructor Summary
Constructors Constructor Description ProfanityService(BrainCloudClient client) -
Method Summary
Modifier and Type Method Description voidprofanityCheck(String text, String languages, boolean flagEmail, boolean flagPhone, boolean flagUrls, IServerCallback callback)Checks supplied text for profanity.voidprofanityReplaceText(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).
-
Constructor Details
-
ProfanityService
-
-
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 checklanguages- Optional comma delimited list of two character language codesflagEmail- Optional processing of email addressesflagPhone- Optional processing of phone numbersflagUrls- Optional processing of urlscallback- 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 checkreplaceSymbol- The text to replace individual characters of profanity text withlanguages- Optional comma delimited list of two character language codesflagEmail- Optional processing of email addressesflagPhone- Optional processing of phone numbersflagUrls- Optional processing of urlscallback- 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
-