Beispiel #1
0
 public void PurgeRecords(Query query)
 {
     var purge = new PurgeRecords.Builder(Application.Client.Ticket, Application.Token, Application.Client.AccountDomain, TableId)
         .SetQuery(query.ToString())
         .Build();
     purge.Post();
     Records.Clear();
 }
Beispiel #2
0
 public string GenCsv(Query query)
 {
     var genResultsTable = new GenResultsTable.Builder(Application.Client.Ticket, Application.Token, Application.Client.AccountDomain, TableId)
         .SetQuery(query.ToString())
         .SetOptions("csv")
         .Build();
     var xml = genResultsTable.Post().CreateNavigator();
     return xml.SelectSingleNode("/response_data").Value;
 }
Beispiel #3
0
 public int QueryCount(Query query)
 {
     var doQuery = new DoQueryCount.Builder(Application.Client.Ticket, Application.Token, Application.Client.AccountDomain, TableId)
         .SetQuery(query.ToString())
         .Build();
     var xml = doQuery.Post().CreateNavigator();
     return int.Parse(xml.SelectSingleNode("/qdbapi/numMatches").Value);
 }
Beispiel #4
0
        public void Query(Query query, int[] clist, int[] slist, string options)
        {
            var solList = GetSortList(slist);
            var colList = GetColumnList(clist);

            var doQuery = new DoQuery.Builder(Application.Client.Ticket, Application.Token, Application.Client.AccountDomain, TableId)
                .SetQuery(query.ToString())
                .SetCList(colList)
                .SetSList(solList)
                .SetOptions(options)
                .SetFmt(true)
                .Build();
            _doQuery(doQuery);
        }
Beispiel #5
0
 public void Query(Query query, string options)
 {
     var doQuery = new DoQuery.Builder(Application.Client.Ticket, Application.Token, Application.Client.AccountDomain, TableId)
         .SetQuery(query.ToString())
         .SetCList("a")
         .SetOptions(options)
         .SetFmt(true)
         .Build();
     _doQuery(doQuery);
 }
        public void Query(Query query, int[] clist, int[] slist, string options)
        {
            var solList = GetSortList(slist);
            var colList = GetColumnList(clist);

            var doQuery = new DoQuery.Builder(Application.Client.Ticket, Application.Token, Application.Client.AccountDomain, TableId)
                .SetQuery(query.ToString())
                .SetCList(colList)
                .SetSList(solList)
                .SetOptions(options)
                .SetFmt(true)
                .Build();
            var xml = doQuery.Post().CreateNavigator();
            LoadColumns(xml);
            LoadRecords(xml);
        }
 public void Query(Query query, string options)
 {
     var doQuery = new DoQuery.Builder(Application.Client.Ticket, Application.Token, Application.Client.AccountDomain, TableId)
         .SetQuery(query.ToString())
         .SetCList("a")
         .SetOptions(options)
         .SetFmt(true)
         .Build();
     var xml = doQuery.Post().CreateNavigator();
     LoadColumns(xml);
     LoadRecords(xml);
 }