[NF] Senml now has a configure option to setup the guid [NF] Zway-Bot now listen on /exit [NF] Implment searchpath for Zway-Bot (/etc/zwaybot and %appdata%/zwaybot)
20 lines
448 B
C#
20 lines
448 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace BlubbFish.Utils.IoT {
|
|
static class Helper {
|
|
internal static String ToUpperLower(this String s) {
|
|
if (s.Length == 0) {
|
|
return "";
|
|
}
|
|
if (s.Length == 1) {
|
|
return s.ToUpper();
|
|
}
|
|
return s[0].ToString().ToUpper() + s.Substring(1).ToLower();
|
|
}
|
|
}
|
|
}
|