private XPathDocument GetApplicationSchema(string username, string password, string accountDomain) { var signin = new Authenticate(username, password, accountDomain, 1); var xml = signin.Post().CreateNavigator(); var adminTicket = xml.SelectSingleNode("/qdbapi/ticket").Value; var appSchema = new GetSchema(adminTicket, Token, accountDomain, ApplicationId); var xmlSchema = appSchema.Post(); var signout = new SignOut(accountDomain); signout.Post(); return xmlSchema; }
public void Logout() { var signout = new SignOut(AccountDomain); signout.Post(); Ticket = null; ClientUserName = null; ClientPassword = null; AdminUserName = null; AdminPassword = null; AccountDomain = null; Hours = 0; }