Ejemplo n.º 1
1
 public WebSocket(Client client, string name)
     : base(client, name)
 {
     this.socket = new WebSocketSharp.WebSocket (client.GetUrl());
 }
Ejemplo n.º 2
0
        static void Main(string[] args)
        {
            Client client = new Client("2", "a18632aa82be8e925ef349164314311a", "http://hook.dev/public/index.php/");
            Collection posts = client.Collection ("posts");

            var post = new Post ();
            post.title = "Hello there!";
            post.score = 15;
            post.date = new DateTime (2014, 07, 07, 17, 30, 0);

            posts.Create (post).ContinueWith<Post> (result => {
                Console.WriteLine(result.ToString());
            });

            posts.Get ().ContinueWith<Post[]> (result => {
                Console.WriteLine(result.ToString());
            });

            req = posts.Sort ("created_at", Order.DESCENDING).Limit(1).First().ContinueWith<Post> (data => {
                Console.WriteLine("Post id: ");
                Console.WriteLine(data._id);
            });

            NSApplication.Init ();
            NSApplication.Main (args);
        }
Ejemplo n.º 3
0
 public static void Setup(string appId, string key, string url)
 {
     Client.instance = new Client (appId, key, url);
 }
Ejemplo n.º 4
0
 public System(Client client)
 {
     this.client = client;
 }
Ejemplo n.º 5
0
 public Auth(Client client)
 {
     this.client = client;
 }
Ejemplo n.º 6
0
 public Channel(Client client, string name)
 {
     this.client = client;
     this.name = name;
 }