Пример #1
0
 public static IObservable<user> View(Token token)
 {
     return client.get<user>("users/view", new p() { { "token", token.ToString() } });
 }
Пример #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();
     }
 }