2,135,003 submissions processed.
Filter Language     Filter Language API     Filter Language

App Store Filter Language Home     Filter Language Pick Me       Filter Language Submit Word       Filter Language Project       Filter Language Contact       Filter Language API Filter Language API Filter Language API                         


<-- Go Back

     Sample - ASP.NET Web Site
- C#.Net - Part 2


Introduction   
The following sample will presume that you have finalized an agreement with Vega Discoveries to access the Vega Language Web Service, have provided Vega Discoveries with your Server Name and have received your SiteID, SiteNumber and a copy of our library.

Prerequisite
You should have a basic understanding of Visual Studio and creating a Web Site.

You should have completed the walkthrough for C# - Part 1, at this link.
This sample builds on the previous walkthrough.

Create a Ratings object
Add a Ratings object to your code and set it to the least desirable acceptable rating for your application.

LanguageFilter.Ratings goodRating = LanguageFilter.Ratings.PG;

This sample defines 'PG' as the least desirable acceptable rating.


Compare Ratings
Compare the Rating determined by the web service to your 'Good Rating' designation.

if (fr.OriginalHighestWordRatingValue > (int)goodRating)
{
    result.Text += "\nUser Passed in text worse than " + goodRating.ToString();
    //this is where you would prevent the requested action
    //or replace the user text with the Result from the service.
    // fr.Result
}


There it is. You have now implemented a rating system for the target content.

The Complete Code Block
ShortVersion


Long Version


You have reached the end of this sample.


Have you ever asked yourself;
What does that text mean? What is my child texting? or How do you read that?
Filter Language is a website to help you answer those questions and more.

App Store Filter Language Home     Filter Language Pick Me       Filter Language Submit Word       Filter Language Project       Filter Language Contact       Filter Language API Filter Language API Filter Language API