示例#1
0
 // Constructors
 internal QApplication(QTableFactoryBase tableFactory, IQClient client, string applicationId, string token)
 {
     TableFactory  = tableFactory;
     Client        = client;
     ApplicationId = applicationId;
     Token         = token;
     // Call these methods after setting the above properties.
     SetApplicationName();
     ClearTables();
     LoadTables();
 }
 // Constructors
 internal QApplication(QTableFactoryBase tableFactory, IQClient client, string applicationId, string token)
 {
     TableFactory = tableFactory;
     Client = client;
     ApplicationId = applicationId;
     Token = token;
     // Call these methods after setting the above properties.
     SetApplicationName();
     ClearTables();
     LoadTables();
 }
        private int curUserID;//handles the current UserID for the database
        public DBhandler()
        {
            client      = QuickBase.Login("*****@*****.**", "Crescendo1", "johnpriem.quickbase.com");
            application = client.Connect("bms24ys95", "duzpt2fcvsybbgkrkup4bjurh8b");
            table       = application.GetTable(GetTableID("Users"));
            //setCurUserID();
            //GrabPitch(0);
            //GrabPitches();
            //GetRecording(0,0);
            //GrabRecordings(0);

            /*Pulls all users and prints their information
             * foreach(IQRecord record in table.Records)
             * {
             *  Console.WriteLine(record[0] + "- " + record[1] + ":" + record[2]);
             * }*/

            //CreateUser("Jack", "Priem");
        }
示例#4
0
 public static void Logout(IQClient client)
 {
     client.Logout();
 }
        internal override IQApplication CreateInstance(IQClient client, string applicationId, string token)
        {
            var tableFactory = QTableFactory.GetInstance();

            return(new QApplication(tableFactory, client, applicationId, token));
        }
 internal abstract IQApplication CreateInstance(IQClient client, string applicationId, string token, List <string> loadTables = null);
 internal override IQApplication CreateInstance(IQClient client, string applicationId, string token)
 {
     var tableFactory = QTableFactory.GetInstance();
     return new QApplication(tableFactory, client, applicationId, token);
 }
示例#8
0
 public static void Logout(IQClient client)
 {
     client.Logout();
 }
 internal abstract IQApplication CreateInstance(IQClient client, string applicationId, string token);
 internal abstract IQApplication CreateInstance(IQClient client, string applicationId, string token);