Пример #1
0
 public async Task <bool> Logout(Snapchat snapchat)
 {
     if (await phCommands.Logout(snapchat))
     {
         return(true);
     }
     else
     {
         return(false);
     }
 }
Пример #2
0
        public static async Task <Snapchat> Login(string username, string password)
        {
            var response = await bqCommands.Login(username, password);

            if (!string.IsNullOrEmpty(response))
            {
                return(JsonConvert.DeserializeObject <Snapchat>(response));
            }
            else
            {
                Snapchat snapchat = new Snapchat()
                {
                    Message = "Failed.",
                    Logged  = false
                };
                return(snapchat);
            }
        }