Esempio n. 1
0
 public static IObservable<user> View(Token token)
 {
     return client.get<user>("users/view", new p() { { "token", token.ToString() } });
 }
Esempio n. 2
0
 static void StoreToken(Token token)
 {
     if (Settings.Contains("token"))
     {
         if (Settings["token"] != token.ToString())
         {
             Settings["token"] = token.ToString();
             Settings.Save();
         }
     }
     else
     {
         Settings.Add("token", token.ToString());
         Settings.Save();
     }
 }