Beispiel #1
0
        public AppInfo GetApplicationInfo()
        {
            var getDbInfo = new GetDbInfo(Client.Ticket, Token, Client.AccountDomain, ApplicationId);
            var xml       = getDbInfo.Post().CreateNavigator();

            var dbName           = xml.SelectSingleNode("/qdbapi/dbname").Value;
            var lastRecModTime   = long.Parse(xml.SelectSingleNode("/qdbapi/lastRecModTime").Value);
            var lastModifiedTime = long.Parse(xml.SelectSingleNode("/qdbapi/lastModifiedTime").Value);
            var createTime       = long.Parse(xml.SelectSingleNode("/qdbapi/createdTime").Value);
            var numRecords       = int.Parse(xml.SelectSingleNode("/qdbapi/numRecords").Value);
            var mgrId            = xml.SelectSingleNode("/qdbapi/mgrID").Value;
            var mgrName          = xml.SelectSingleNode("/qdbapi/mgrName").Value;
            var version          = xml.SelectSingleNode("/qdbapi/version").Value;

            return(new AppInfo(dbName, lastRecModTime, lastModifiedTime, createTime, numRecords, mgrId, mgrName,
                               version));
        }
        public AppInfo GetApplicationInfo()
        {
            var getDbInfo = new GetDbInfo(Client.Ticket, Token, Client.AccountDomain, ApplicationId);
            var xml       = getDbInfo.Post();

            var dbName           = xml.Element("dbname").Value;
            var lastRecModTime   = long.Parse(xml.Element("lastRecModTime").Value);
            var lastModifiedTime = long.Parse(xml.Element("lastModifiedTime").Value);
            var createTime       = long.Parse(xml.Element("createdTime").Value);
            var numRecords       = int.Parse(xml.Element("numRecords").Value);
            var mgrId            = xml.Element("mgrID").Value;
            var mgrName          = xml.Element("mgrName").Value;
            var version          = xml.Element("version").Value;

            return(new AppInfo(dbName, lastRecModTime, lastModifiedTime, createTime, numRecords, mgrId, mgrName,
                               version));
        }