/sms-counter-csharp

SMS Counter C# Class Library

Primary LanguageC#MIT LicenseMIT

SMS Counter (C#)

Character counter for SMS messages.

Original inspiration : danxexe/sms-counter

Usage

var smsCounterInfo = new SmsCounter("content of the SMS");

You will have access to the following informations:

smsCounterInfo.Messages 	// Number of messages (int) = 1
smsCounterInfo.Length   	// Total length of messages (int) = 18
smsCounterInfo.Remaining 	// Remaining chars in the message (int) = 142
smsCounterInfo.PerMessage 	// Max chars in 1 message (int) = 160
smsCounterInfo.Encoding 	// Encoding used by messages (EncodingEnum) = GSM_7BIT

You can also check test results: test results.

Just need XUnit testing library for adding to tests file your project

ToDo

Known Issue

(none)

Other Languages

License

SMS Counter is released under the MIT License.