Example #1
0
 static void Main(string[] args)
 {
     LineNotify.Create("Bearer_XXX", false).SendMessage("default alarm");
     Console.ReadLine();
     LineNotify.CreateError().SendMessage("error alarm");
     Console.ReadLine();
     LineNotify.CreateInfo().SendMessage("info alarm");
     Console.ReadLine();
 }
Example #2
0
        public static ILineNotify Create(string bearer, bool notification)
        {
            var notify = new LineNotify(bearer)
            {
                Notification = notification
            };

            return(notify);
        }