/mono-for-mac/3.3.0.1/PubNub-Messaging/PubNub-Console/Here_Now_Example.cs
C# | 39 lines | 26 code | 8 blank | 5 comment | 0 complexity | d969890b68707a43fba6aed27a4e7f27 MD5 | raw file
Possible License(s): Apache-2.0
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- namespace PubNub_Messaging
- {
- internal static class Here_Now_Example
- {
- /*public static void Main()
- {
- Here_Now_Demo();
- Console.ReadLine();
- }*/
- internal static void Here_Now_Demo()
- {
- Pubnub pubnub = new Pubnub(
- "demo",
- "demo",
- "",
- "",
- false);
- string channel = "my/channel";
- Console.WriteLine("Here_Now_Example");
- pubnub.here_now<string>(channel, DisplayReturnMessage);
- }
- static void DisplayReturnMessage(string result )
- {
- Console.WriteLine(result);
- }
- }
- }