is a collection of various
methods grouped together as a web serivce for free consumption by the public. It
was written by Heathesh Bhandari (
).
Should you have suggestions or requests for more functionality feel free to contact
me via my
If you are a developer and have a web service method you would like hosted here,
please contact me via my
If you use this service and would like to help support further development, please
donate:
Summary:
Executes and returns a DatabaseTable object against the specified database
Parameters:
connectionString:
String of the connection string of the database to connect to
commandText:
String of the command text to execute
commandType:
Enum of the DatabaseCommandType to execute
parameters:
List of DatabaseParameter objects to add as parameters to the database command
Returns
DatabaseTable object with column names and database rows
Summary:
Executes a non query against the specified database
Parameters:
connectionString:
String of the connection string of the database to connect to
commandText:
String of the command text to execute
commandType:
Enum of the DatabaseCommandType to execute
parameters:
List of DatabaseParameter objects to add as parameters to the database command
Returns
Summary:
Calculates the income tax for the monthly salary passed in
Parameters:
grossMonthlySalary:
Gross monthly salary before deductions
Returns
An IncomeTax object which is a class with properties relevant to your income tax calculation
Summary:
Converts the specified amount from the fromCurrency to the toCurrency
Parameters:
fromCurrency:
Enum of the currency to convert from
toCurrency:
Enum of the currency to convert to
amountToConvert:
Double of the amount to convert
Returns
CurrencyConversion object populated with properties relevant to the currency conversion
Summary:
Gets the full name of the currency
Parameters:
currency:
Enum of currency whose name to retrieve
Returns
String of the currencys full name
Summary:
Gets the income tax rates available as a list of IncomeTaxRate objects
Returns
List of the IncomeTaxRate object
Summary:
Gets info about the current data loaded in the database
Returns
List of LottoDataInfo entities containing info about the different draw types and current data available
Summary:
Gets the lotto draw result for the specified date
Parameters:
drawDate:
DateTime of the draw
Returns
LottoDrawResult object populated with the lotto draw results and division winnings
Summary:
Gets the lotto draw results over a specified period
Parameters:
startDate:
DateTime of the start date of the period to check
endDate:
DateTime of the end date of the period to check
Returns
List of LottoDrawResult objects populated with the lotto draw results and division winnings
Summary:
Gets the latest lotto draw result
Returns
LottoDrawResult object populated with the lotto draw results and division winnings
Summary:
Gets the lotto winnings for the numbers specified for the latest draw date
Parameters:
number1:
Int of the first number
number2:
Int of the second number
number3:
Int of the third number
number4:
Int of the fourth number
number5:
Int of the fifth number
number6:
Int of the sixth number
Returns
LottoWinnings object with the amount won and draw result info
Summary:
Gets the lotto draw statistics for the numbers passed in, including how common they are etc.
Parameters:
number1:
Int of the first number
number2:
Int of the second number
number3:
Int of the third number
number4:
Int of the fourth number
number5:
Int of the fifth number
number6:
Int of the sixth number
Returns
DrawStatistic object populated with data relevant to the statistics
Summary:
Gets the lotto winnings for the numbers specified for the specific draw date
Parameters:
number1:
Int of the first number
number2:
Int of the second number
number3:
Int of the third number
number4:
Int of the fourth number
number5:
Int of the fifth number
number6:
Int of the sixth number
drawDate:
DateTime of the draw
Returns
LottoWinnings object with the amount won and draw result info
Summary:
Gets the lotto winnings for the numbers specified for the date range specified
Parameters:
number1:
Int of the first number
number2:
Int of the second number
number3:
Int of the third number
number4:
Int of the fourth number
number5:
Int of the fifth number
number6:
Int of the sixth number
startDate:
DateTime of the start of the date range to check
endDate:
Nullable of the end of the date range to check, if left null will check until the very latest result
Returns
List of LottoWinnings object with the amount won and draw result info
Summary:
Gets the lotto plus draw result for the specified date
Parameters:
drawDate:
DateTime of the draw
Returns
LottoPlusDrawResult object populated with the lotto plus draw results and division winnings
Summary:
Gets the lotto plus draw results over a specified period
Parameters:
startDate:
DateTime of the start date of the period to check
endDate:
DateTime of the end date of the period to check
Returns
List of LottoPlusDrawResult objects populated with the lotto plus draw results and division winnings
Summary:
Gets the latest lotto plus draw result
Returns
LottoPlusDrawResult object populated with the lotto plus draw results and division winnings
Summary:
Gets the lotto plus winnings for the numbers specified for the latest draw date
Parameters:
number1:
Int of the first number
number2:
Int of the second number
number3:
Int of the third number
number4:
Int of the fourth number
number5:
Int of the fifth number
number6:
Int of the sixth number
Returns
LottoPlusWinnings object with the amount won and draw result info
Summary:
Gets the lotto plus winnings for the numbers specified for the specific draw date
Parameters:
number1:
Int of the first number
number2:
Int of the second number
number3:
Int of the third number
number4:
Int of the fourth number
number5:
Int of the fifth number
number6:
Int of the sixth number
drawDate:
DateTime of the draw
Returns
LottoPlusWinnings object with the amount won and draw result info
Summary:
Gets the lotto plus winnings for the numbers specified for the date range specified
Parameters:
number1:
Int of the first number
number2:
Int of the second number
number3:
Int of the third number
number4:
Int of the fourth number
number5:
Int of the fifth number
number6:
Int of the sixth number
startDate:
DateTime of the start of the date range to check
endDate:
Nullable of the end of the date range to check, if left null will check until the very latest result
Returns
List of LottoPlusWinnings object with the amount won and draw result info
Summary:
Gets the powerball draw result for the specified date
Parameters:
drawDate:
DateTime of the draw
Returns
PowerballDrawResult object populated with the powerball draw results and division winnings
Summary:
Gets the powerball draw results over a specified period
Parameters:
startDate:
DateTime of the start date of the period to check
endDate:
DateTime of the end date of the period to check
Returns
List of PowerballDrawResult objects populated with the powerball draw results and division winnings
Summary:
Gets the latest powerball draw result
Returns
PowerballDrawResult object populated with the powerball draw results and division winnings
Summary:
Gets the powerball winnings for the numbers specified for the latest draw date
Parameters:
number1:
Int of the first number
number2:
Int of the second number
number3:
Int of the third number
number4:
Int of the fourth number
number5:
Int of the fifth number
number6:
Int of the sixth number
Returns
PowerballWinnings object with the amount won and draw result info
Summary:
Gets the powerball winnings for the numbers specified for the specific draw date
Parameters:
number1:
Int of the first number
number2:
Int of the second number
number3:
Int of the third number
number4:
Int of the fourth number
number5:
Int of the fifth number
number6:
Int of the sixth number
drawDate:
DateTime of the draw
Returns
PowerballWinnings object with the amount won and draw result info
Summary:
Gets the powerball winnings for the numbers specified for the date range specified
Parameters:
number1:
Int of the first number
number2:
Int of the second number
number3:
Int of the third number
number4:
Int of the fourth number
number5:
Int of the fifth number
number6:
Int of the sixth number
startDate:
DateTime of the start of the date range to check
endDate:
Nullable of the end of the date range to check, if left null will check until the very latest result
Returns
List of PowerballWinnings object with the amount won and draw result info
Summary:
Updates the lotto number data to the latest data available
Returns
Int of the number of records that failed to update
Summary:
Searches for postal codes based on the address passed in
Parameters:
address:
The address or portion of the address to search for
Returns
List of PostalCode objects with properties relevant to postal codes
Summary:
Searches for postal codes based on the city passed in
Parameters:
city:
The city or portion of the city name to search for
Returns
List of PostalCode objects with properties relevant to postal codes
Summary:
Searches for postal codes based on the postal code passed in
Parameters:
postalCode:
The postal code or portion of the postal code to search for
Returns
List of PostalCode objects with properties relevant to postal codes
Summary:
Sends an SMS to the specified recipient(s) at the specific sendDateTime specified. You must have a bulksms.2way.co.za account to send the sms, and use that username and password in the fields provided.
Parameters:
userName:
String of your bulksms.2way.co.za username
password:
String of your bulksms.2way.co.za password
message:
String of the message you wish to send
sendTo:
String of the phone number of the person to send the message to, must be in the format 27712345678. You can separate with commas for multiple recipients. eg. 27712345678,27712345678
sendDateTime:
DateTime of the date time when you want the message sent
Returns
A string with the status of the sending of the message
Summary:
Sends an SMS to the specified recipient. You must have a bulksms.2way.co.za account to send the sms, and use that username and password in the fields provided.
Parameters:
userName:
String of your bulksms.2way.co.za username
password:
String of your bulksms.2way.co.za password
message:
String of the message you wish to send
sendTo:
String of the phone number of the person to send the message to, must be in the format 27712345678. You can separate with commas for multiple recipients. eg. 27712345678,27712345678
Returns
A string with the status of the sending of the message
Summary:
Reads an RSS feed and returns the feed as a list of RssFeedItems which is a clean class with properties relevant to the feed
Parameters:
url:
String of the URL of the feed you want to read
Returns
A list of RSSFeedItem which is a custom class with properties relevant to an RSS feed
Summary:
Retrieves a portion of the HTML of a web page as a string
Parameters:
url:
String of the URL of the web page whose HTML you wish to retrieve
chunkSize:
Int of the size of the portion of the page you wish to retrieve
Returns
A string which is the HTML of the specified web page
Summary:
Retrieves the web page HTML as a string
Parameters:
url:
String of the URL of the web page whose HTML you wish to retrieve
Returns
A string which is the HTML of the specified web page
Summary:
Shortens any URLs in the specified text and returns the text with the shortened URLs
Parameters:
text:
String of the text with the URLs that needs to be shortened
Returns
The text with the URLs shortened
Summary:
Shrinks the specified URL and returns the new shrunken URL
Parameters:
url:
String of the the URL you wish to shrink
Returns
The shortened URL as a string