Skip to content

Instantly share code, notes, and snippets.

@tanaka-takayoshi
Created February 11, 2014 08:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tanaka-takayoshi/8931454 to your computer and use it in GitHub Desktop.
Save tanaka-takayoshi/8931454 to your computer and use it in GitHub Desktop.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using MobileClient.Core;
namespace MobilseClient.ConsoleApp
{
class Program
{
static void Main(string[] args)
{
var client = new MyClient();
Console.WriteLine(client.Put(new MyData {UserId = "1", Text = "ほげほげ"}).Result["message"]);
Console.WriteLine(client.Put(new MyData { UserId = "2", Text = "ふがふが" }).Result["message"]);
Console.WriteLine(client.Put(new MyData { UserId = "3", Text = "もげもげ" }).Result["message"]);
Console.WriteLine(client.Get("3").Result.First().Text);
Console.WriteLine(client.Get("4").Result.Any() ? "ありえない" : "そんなひといません");
Console.Read();
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment