예제 #1
0
 /// <summary>
 /// Initializes a new instance of the com.intuit.quickbase.API_FindDBByName class.
 /// </summary>
 /// <param name="ticket">Supply auth ticket for application access. See com.intuit.quickbase.API_Authenticate class to obtain a ticket.</param>
 /// <param name="accountDomain"></param>
 /// <param name="dbName">Supply application name to search for.</param>
 public FindDbByName(string ticket, string accountDomain, string dbName)
 {
     _findDbByNamePayload = new FindDbByNamePayload(dbName);
     _findDbByNamePayload = new ApplicationTicket(_findDbByNamePayload, ticket);
     _findDbByNamePayload = new WrapPayload(_findDbByNamePayload);
     _uri = new QUriMain(accountDomain);
 }
예제 #2
0
 private void CommonConstruction(string ticket, string appToken, string accountDomain, Payload.Payload payload)
 {
     _getUserInfoPayload = new ApplicationTicket(payload, ticket);
     _getUserInfoPayload = new ApplicationToken(_getUserInfoPayload, appToken);
     _getUserInfoPayload = new WrapPayload(_getUserInfoPayload);
     _uri = new QUriMain(accountDomain);
 }
 private void CommonConstruction(string ticket, string appToken, string accountDomain, string dbid, Payload.Payload payload)
 {
     _sendInvitationPayload = new ApplicationTicket(payload, ticket);
     _sendInvitationPayload = new ApplicationToken(_sendInvitationPayload, appToken);
     _sendInvitationPayload = new WrapPayload(_sendInvitationPayload);
     _uri = new QUriDbid(accountDomain, dbid);
 }
 /// <summary>
 /// Initializes a new instance of the com.intuit.quickbase.API_CreateDatabase class.
 /// </summary>
 /// <param name="ticket">Supply auth ticket for application access. See com.intuit.quickbase.API_Authenticate class to obtain a ticket.</param>
 /// <param name="accountDomain"></param>
 /// <param name="dbName">Supply a new application name.</param>
 /// <param name="dbDesc">Supply an application description.</param>
 /// <param name="createAppToken">Supply "true" to create a new token, "false" otherwise.</param>
 public CreateDatabase(string ticket, string accountDomain, string dbName, string dbDesc, bool createAppToken)
 {
     _createDatabasePayload = new CreateDatabasePayload(dbName, dbDesc, createAppToken);
     _createDatabasePayload = new ApplicationTicket(_createDatabasePayload, ticket);
     _createDatabasePayload = new WrapPayload(_createDatabasePayload);
     _uri = new QUriMain(accountDomain);
 }
예제 #5
0
 public UserRoles(string ticket, string appToken, string accountDomain, string dbid)
 {
     _userRolesPayload = new UserRolesPayload();
     _userRolesPayload = new ApplicationTicket(_userRolesPayload, ticket);
     _userRolesPayload = new ApplicationToken(_userRolesPayload, appToken);
     _userRolesPayload = new WrapPayload(_userRolesPayload);
     _uri = new QUriDbid(accountDomain, dbid);
 }
예제 #6
0
 public GetRoleInfo(string ticket, string appToken, string accountDomain, string dbid)
 {
     _getRoleInfoPayload = new GetRoleInfoPayload();
     _getRoleInfoPayload = new ApplicationTicket(_getRoleInfoPayload, ticket);
     _getRoleInfoPayload = new ApplicationToken(_getRoleInfoPayload, appToken);
     _getRoleInfoPayload = new WrapPayload(_getRoleInfoPayload);
     _uri = new QUriDbid(accountDomain, dbid);
 }
예제 #7
0
 public GetUserRole(string ticket, string appToken, string accountDomain, string dbid, string userId)
 {
     _getUserRolePayload = new GetUserRolePayload(userId);
     _getUserRolePayload = new ApplicationTicket(_getUserRolePayload, ticket);
     _getUserRolePayload = new ApplicationToken(_getUserRolePayload, appToken);
     _getUserRolePayload = new WrapPayload(_getUserRolePayload);
     _uri = new QUriDbid(accountDomain, dbid);
 }
 public RemoveUserFromRole(string ticket, string appToken, string accountDomain, string dbid, string userId, int roleId)
 {
     _removeUserFromRolePayload = new RemoveUserFromRolePayload(userId, roleId);
     _removeUserFromRolePayload = new ApplicationTicket(_removeUserFromRolePayload, ticket);
     _removeUserFromRolePayload = new ApplicationToken(_removeUserFromRolePayload, appToken);
     _removeUserFromRolePayload = new WrapPayload(_removeUserFromRolePayload);
     _uri = new QUriDbid(accountDomain, dbid);
 }
예제 #9
0
 public GetUserRole(string ticket, string appToken, string accountDomain, string dbid, string userId)
 {
     _getUserRolePayload = new GetUserRolePayload(userId);
     _getUserRolePayload = new ApplicationTicket(_getUserRolePayload, ticket);
     _getUserRolePayload = new ApplicationToken(_getUserRolePayload, appToken);
     _getUserRolePayload = new WrapPayload(_getUserRolePayload);
     _uri = new QUriDbid(accountDomain, dbid);
 }
예제 #10
0
 public UserRoles(string ticket, string appToken, string accountDomain, string dbid)
 {
     _userRolesPayload = new UserRolesPayload();
     _userRolesPayload = new ApplicationTicket(_userRolesPayload, ticket);
     _userRolesPayload = new ApplicationToken(_userRolesPayload, appToken);
     _userRolesPayload = new WrapPayload(_userRolesPayload);
     _uri = new QUriDbid(accountDomain, dbid);
 }
예제 #11
0
 /// <summary>
 /// Initializes a new instance of the com.intuit.quickbase.API_GetRecordInfo class.
 /// </summary>
 /// <param name="ticket">Supply auth ticket for application access. See com.intuit.quickbase.API_Authenticate class to obtain a ticket.</param>
 /// <param name="appToken">Supply application token that is assigned to your QuickBase Application. See QuickBase Online help to obtain an application token.</param>
 /// <param name="accountDomain"></param>
 /// <param name="dbid">Supply table-level dbid.</param>
 /// <param name="rid">Supply a record object.</param>
 public GetRecordInfo(string ticket, string appToken, string accountDomain, string dbid, int rid)
 {
     _getRecordInfoPayload = new GetRecordInfoPayload(rid);
     _getRecordInfoPayload = new ApplicationTicket(_getRecordInfoPayload, ticket);
     _getRecordInfoPayload = new ApplicationToken(_getRecordInfoPayload, appToken);
     _getRecordInfoPayload = new WrapPayload(_getRecordInfoPayload);
     _uri = new QUriDbid(accountDomain, dbid);
 }
 public ChangeRecordOwner(string ticket, string appToken, string accountDomain, string dbid, int rid, string newOwner)
 {
     _changeRecordOwnerPayload = new ChangeRecordOwnerPayload(rid, newOwner);
     _changeRecordOwnerPayload = new ApplicationTicket(_changeRecordOwnerPayload, ticket);
     _changeRecordOwnerPayload = new ApplicationToken(_changeRecordOwnerPayload, appToken);
     _changeRecordOwnerPayload = new WrapPayload(_changeRecordOwnerPayload);
     _uri = new QUriDbid(accountDomain, dbid);
 }
예제 #13
0
 public GetDBPage(string ticket, string appToken, string accountDomain, string dbid, int pageId)
 {
     _getDbPagePayload = new GetDBPagePayload(pageId);
     _getDbPagePayload = new ApplicationTicket(_getDbPagePayload, ticket);
     _getDbPagePayload = new ApplicationToken(_getDbPagePayload, appToken);
     _getDbPagePayload = new WrapPayload(_getDbPagePayload);
     _uri = new QUriDbid(accountDomain, dbid);
 }
예제 #14
0
 /// <summary>
 /// Initializes a new instance of the com.intuit.quickbase.API_RenameApp class.
 /// </summary>
 /// <param name="ticket">Supply auth ticket for application access. See com.intuit.quickbase.API_Authenticate class to obtain a ticket.</param>
 /// <param name="appToken">Supply application token that is assigned to your QuickBase Application. See QuickBase Online help to obtain an application token.</param>
 /// <param name="accountDomain"></param>
 /// <param name="dbid">Supply application-level dbid.</param>
 /// <param name="newAppName">Supply a new application name.</param>
 public RenameApp(string ticket, string appToken, string accountDomain, string dbid, string newAppName)
 {
     _renameAppPayload = new RenameAppPayload(newAppName);
     _renameAppPayload = new ApplicationTicket(_renameAppPayload, ticket);
     _renameAppPayload = new ApplicationToken(_renameAppPayload, appToken);
     _renameAppPayload = new WrapPayload(_renameAppPayload);
     _uri = new QUriDbid(accountDomain, dbid);
 }
예제 #15
0
 /// <summary>
 /// Initializes a new instance of the com.intuit.quickbase.API_DeleteDatabase class.
 /// </summary>
 /// <param name="ticket">Supply auth ticket for application access. See com.intuit.quickbase.API_Authenticate class to obtain a ticket.</param>
 /// <param name="appToken">Supply application token that is assigned to your QuickBase Application. See QuickBase Online help to obtain an application token.</param>
 /// <param name="accountDomain"></param>
 /// <param name="dbid">Supply application-level or table-level dbid.</param>
 public DeleteDatabase(string ticket, string appToken, string accountDomain, string dbid)
 {
     _deleteDatabasePayload = new DeleteDatabasePayload();
     _deleteDatabasePayload = new ApplicationTicket(_deleteDatabasePayload, ticket);
     _deleteDatabasePayload = new ApplicationToken(_deleteDatabasePayload, appToken);
     _deleteDatabasePayload = new WrapPayload(_deleteDatabasePayload);
     _uri = new QUriDbid(accountDomain, dbid);
 }
예제 #16
0
 /// <summary>
 /// Initializes a new instance of the com.intuit.quickbase.API_DeleteDatabase class.
 /// </summary>
 /// <param name="ticket">Supply auth ticket for application access. See com.intuit.quickbase.API_Authenticate class to obtain a ticket.</param>
 /// <param name="appToken">Supply application token that is assigned to your QuickBase Application. See QuickBase Online help to obtain an application token.</param>
 /// <param name="accountDomain"></param>
 /// <param name="dbid">Supply application-level or table-level dbid.</param>
 public DeleteDatabase(string ticket, string appToken, string accountDomain, string dbid)
 {
     _deleteDatabasePayload = new DeleteDatabasePayload();
     _deleteDatabasePayload = new ApplicationTicket(_deleteDatabasePayload, ticket);
     _deleteDatabasePayload = new ApplicationToken(_deleteDatabasePayload, appToken);
     _deleteDatabasePayload = new WrapPayload(_deleteDatabasePayload);
     _uri = new QUriDbid(accountDomain, dbid);
 }
 public FieldAddChoices(string ticket, string appToken, string accountDomain, string dbid, int fid, List<string> choices)
 {
     _fieldAddChoicesPayload = new FieldChoicesPayload(fid, choices);
     _fieldAddChoicesPayload = new ApplicationTicket(_fieldAddChoicesPayload, ticket);
     _fieldAddChoicesPayload = new ApplicationToken(_fieldAddChoicesPayload, appToken);
     _fieldAddChoicesPayload = new WrapPayload(_fieldAddChoicesPayload);
     _uri = new QUriDbid(accountDomain, dbid);
 }
예제 #18
0
 /// <summary>
 /// Initializes a new instance of the com.intuit.quickbase.API_DeleteField class.
 /// </summary>
 /// <param name="ticket">Supply auth ticket for application access. See com.intuit.quickbase.API_Authenticate class to obtain a ticket.</param>
 /// <param name="appToken">Supply application token that is assigned to your QuickBase Application. See QuickBase Online help to obtain an application token.</param>
 /// <param name="accountDomain"></param>
 /// <param name="dbid">Supply table-level dbid.</param>
 /// <param name="fid">Supply a column object.</param>
 public DeleteField(string ticket, string appToken, string accountDomain, string dbid, int fid)
 {
     _deleteFieldPayload = new DeleteFieldPayload(fid);
     _deleteFieldPayload = new ApplicationTicket(_deleteFieldPayload, ticket);
     _deleteFieldPayload = new ApplicationToken(_deleteFieldPayload, appToken);
     _deleteFieldPayload = new WrapPayload(_deleteFieldPayload);
     _uri = new QUriDbid(accountDomain, dbid);
 }
예제 #19
0
 public RunImport(string ticket, string appToken, string accountDomain, string dbid, int id)
 {
     _runImportPayload = new RunImportPayload(id);
     _runImportPayload = new ApplicationTicket(_runImportPayload, ticket);
     _runImportPayload = new ApplicationToken(_runImportPayload, appToken);
     _runImportPayload = new WrapPayload(_runImportPayload);
     _uri = new QUriDbid(accountDomain, dbid);
 }
예제 #20
0
 /// <summary>
 /// Initializes a new instance of the com.intuit.quickbase.API_RenameApp class.
 /// </summary>
 /// <param name="ticket">Supply auth ticket for application access. See com.intuit.quickbase.API_Authenticate class to obtain a ticket.</param>
 /// <param name="appToken">Supply application token that is assigned to your QuickBase Application. See QuickBase Online help to obtain an application token.</param>
 /// <param name="accountDomain"></param>
 /// <param name="dbid">Supply application-level dbid.</param>
 /// <param name="newAppName">Supply a new application name.</param>
 public RenameApp(string ticket, string appToken, string accountDomain, string dbid, string newAppName)
 {
     _renameAppPayload = new RenameAppPayload(newAppName);
     _renameAppPayload = new ApplicationTicket(_renameAppPayload, ticket);
     _renameAppPayload = new ApplicationToken(_renameAppPayload, appToken);
     _renameAppPayload = new WrapPayload(_renameAppPayload);
     _uri = new QUriDbid(accountDomain, dbid);
 }
예제 #21
0
 public AddUserToRole(string ticket, string appToken, string accountDomain, string dbid, string userId, int roleId)
 {
     _addUserToRolePayload = new AddUserToRolePayload(userId, roleId);
     _addUserToRolePayload = new ApplicationTicket(_addUserToRolePayload, ticket);
     _addUserToRolePayload = new ApplicationToken(_addUserToRolePayload, appToken);
     _addUserToRolePayload = new WrapPayload(_addUserToRolePayload);
     _uri = new QUriDbid(accountDomain, dbid);
 }
예제 #22
0
 public AddUserToRole(string ticket, string appToken, string accountDomain, string dbid, string userId, int roleId)
 {
     _addUserToRolePayload = new AddUserToRolePayload(userId, roleId);
     _addUserToRolePayload = new ApplicationTicket(_addUserToRolePayload, ticket);
     _addUserToRolePayload = new ApplicationToken(_addUserToRolePayload, appToken);
     _addUserToRolePayload = new WrapPayload(_addUserToRolePayload);
     _uri = new QUriDbid(accountDomain, dbid);
 }
예제 #23
0
 /// <summary>
 /// Initializes a new instance of the com.intuit.quickbase.API_DeleteField class.
 /// </summary>
 /// <param name="ticket">Supply auth ticket for application access. See com.intuit.quickbase.API_Authenticate class to obtain a ticket.</param>
 /// <param name="appToken">Supply application token that is assigned to your QuickBase Application. See QuickBase Online help to obtain an application token.</param>
 /// <param name="accountDomain"></param>
 /// <param name="dbid">Supply table-level dbid.</param>
 /// <param name="fid">Supply a column object.</param>
 public DeleteField(string ticket, string appToken, string accountDomain, string dbid, int fid)
 {
     _deleteFieldPayload = new DeleteFieldPayload(fid);
     _deleteFieldPayload = new ApplicationTicket(_deleteFieldPayload, ticket);
     _deleteFieldPayload = new ApplicationToken(_deleteFieldPayload, appToken);
     _deleteFieldPayload = new WrapPayload(_deleteFieldPayload);
     _uri = new QUriDbid(accountDomain, dbid);
 }
예제 #24
0
 public SetDBvar(string ticket, string appToken, string accountDomain, string dbid, string varName, string value)
 {
     _setDbVarPayload = new SetDBvarPayload(varName, value);
     _setDbVarPayload = new ApplicationTicket(_setDbVarPayload, ticket);
     _setDbVarPayload = new ApplicationToken(_setDbVarPayload, appToken);
     _setDbVarPayload = new WrapPayload(_setDbVarPayload);
     _uri = new QUriDbid(accountDomain, dbid);
 }
예제 #25
0
 private CloneDatabase(Builder builder)
 {
     _cloneDatabasePayload = new CloneDatabasePayload.Builder(builder.NewDBName, builder.NewDBDesc)
                             .SetKeepData(builder.KeepData)
                             .SetExcludeFiles(builder.ExcludeFiles)
                             .Build();
     _cloneDatabasePayload = new ApplicationTicket(_cloneDatabasePayload, builder.Ticket);
     _cloneDatabasePayload = new ApplicationToken(_cloneDatabasePayload, builder.AppToken);
     _cloneDatabasePayload = new WrapPayload(_cloneDatabasePayload);
     _uri = new QUriDbid(builder.AccountDomain, builder.Dbid);
 }
예제 #26
0
 private CreateTable(Builder builder)
 {
     _createTablePayload = new CreateTablePayload.Builder()
                           .SetTName(builder.TName)
                           .SetPNoun(builder.PNoun)
                           .Build();
     _createTablePayload = new ApplicationTicket(_createTablePayload, builder.Ticket);
     _createTablePayload = new ApplicationToken(_createTablePayload, builder.AppToken);
     _createTablePayload = new WrapPayload(_createTablePayload);
     _uri = new QUriDbid(builder.AccountDomain, builder.Dbid);
 }
예제 #27
0
 private CreateTable(Builder builder)
 {
     _createTablePayload = new CreateTablePayload.Builder()
         .SetTName(builder.TName)
         .SetPNoun(builder.PNoun)
         .Build();
     _createTablePayload = new ApplicationTicket(_createTablePayload, builder.Ticket);
     _createTablePayload = new ApplicationToken(_createTablePayload, builder.AppToken);
     _createTablePayload = new WrapPayload(_createTablePayload);
     _uri = new QUriDbid(builder.AccountDomain, builder.Dbid);
 }
예제 #28
0
 private ImportFromCSV(Builder builder)
 {
     _importFromCSVPayload = new ImportFromCSVPayload.Builder(builder.RecordsCsv)
                             .SetCList(builder.CList)
                             .SetSkipFirst(builder.SkipFirst)
                             .Build();
     _importFromCSVPayload = new ApplicationTicket(_importFromCSVPayload, builder.Ticket);
     _importFromCSVPayload = new ApplicationToken(_importFromCSVPayload, builder.AppToken);
     _importFromCSVPayload = new WrapPayload(_importFromCSVPayload);
     _uri = new QUriDbid(builder.AccountDomain, builder.Dbid);
 }
예제 #29
0
 private AddRecord(Builder builder)
 {
     _addRecordPayload = new AddRecordPayload.Builder(builder.Fields)
         .SetDisprec(builder.Disprec)
         .SetFform(builder.Fform)
         .Build();
     _addRecordPayload = new ApplicationTicket(_addRecordPayload, builder.Ticket);
     _addRecordPayload = new ApplicationToken(_addRecordPayload, builder.AppToken);
     _addRecordPayload = new WrapPayload(_addRecordPayload);
     _uri = new QUriDbid(builder.AccountDomain, builder.Dbid);
 }
예제 #30
0
 private ImportFromCSV(Builder builder)
 {
     _importFromCSVPayload = new ImportFromCSVPayload.Builder(builder.RecordsCsv)
         .SetCList(builder.CList)
         .SetSkipFirst(builder.SkipFirst)
         .Build();
     _importFromCSVPayload = new ApplicationTicket(_importFromCSVPayload, builder.Ticket);
     _importFromCSVPayload = new ApplicationToken(_importFromCSVPayload, builder.AppToken);
     _importFromCSVPayload = new WrapPayload(_importFromCSVPayload);
     _uri = new QUriDbid(builder.AccountDomain, builder.Dbid);
 }
예제 #31
0
 private AddRecord(Builder builder)
 {
     _addRecordPayload = new AddRecordPayload.Builder(builder.Fields)
                         .SetDisprec(builder.Disprec)
                         .SetFform(builder.Fform)
                         .Build();
     _addRecordPayload = new ApplicationTicket(_addRecordPayload, builder.Ticket);
     _addRecordPayload = new ApplicationToken(_addRecordPayload, builder.AppToken);
     _addRecordPayload = new WrapPayload(_addRecordPayload);
     _uri = new QUriDbid(builder.AccountDomain, builder.Dbid);
 }
예제 #32
0
 private GrantedDBs(Builder builder)
 {
     _grantDBsPayload = new GrantDBsPayload.Builder()
         .SetExcludedParents(builder.ExcludedParents)
         .SetWithEmbeddedTables(builder.WithEmbeddedTables)
         .SetAdminOnly(builder.AdminOnly)
         .Build();
     _grantDBsPayload = new ApplicationTicket(_grantDBsPayload, builder.Ticket);
     _grantDBsPayload = new ApplicationToken(_grantDBsPayload, builder.AppToken);
     _grantDBsPayload = new WrapPayload(_grantDBsPayload);
     _uri = new QUriMain(builder.AccountDomain);
 }
예제 #33
0
 private DoQueryCount(Builder builder)
 {
     _doQueryCountPayload = new DoQueryCountPayload.Builder()
         .SetQuery(builder.Query)
         .SetQid(builder.Qid)
         .SetQName(builder.QName)
         .Build();
     _doQueryCountPayload = new ApplicationTicket(_doQueryCountPayload, builder.Ticket);
     _doQueryCountPayload = new ApplicationToken(_doQueryCountPayload, builder.AppToken);
     _doQueryCountPayload = new WrapPayload(_doQueryCountPayload);
     _uri = new QUriDbid(builder.AccountDomain, builder.Dbid);
 }
예제 #34
0
 private GrantedDBs(Builder builder)
 {
     _grantDBsPayload = new GrantDBsPayload.Builder()
                        .SetExcludedParents(builder.ExcludedParents)
                        .SetWithEmbeddedTables(builder.WithEmbeddedTables)
                        .SetAdminOnly(builder.AdminOnly)
                        .Build();
     _grantDBsPayload = new ApplicationTicket(_grantDBsPayload, builder.Ticket);
     _grantDBsPayload = new ApplicationToken(_grantDBsPayload, builder.AppToken);
     _grantDBsPayload = new WrapPayload(_grantDBsPayload);
     _uri             = new QUriMain(builder.AccountDomain);
 }
예제 #35
0
 private DoQueryCount(Builder builder)
 {
     _doQueryCountPayload = new DoQueryCountPayload.Builder()
                            .SetQuery(builder.Query)
                            .SetQid(builder.Qid)
                            .SetQName(builder.QName)
                            .Build();
     _doQueryCountPayload = new ApplicationTicket(_doQueryCountPayload, builder.Ticket);
     _doQueryCountPayload = new ApplicationToken(_doQueryCountPayload, builder.AppToken);
     _doQueryCountPayload = new WrapPayload(_doQueryCountPayload);
     _uri = new QUriDbid(builder.AccountDomain, builder.Dbid);
 }
예제 #36
0
 private PurgeRecords(Builder builder)
 {
     _purgeRecordsPayload = new PurgeRecordsPayload.Builder()
                            .SetQuery(builder.Query)
                            .SetQid(builder.Qid)
                            .SetQName(builder.QName)
                            .Build();
     _purgeRecordsPayload = new ApplicationTicket(_purgeRecordsPayload, builder.Ticket);
     _purgeRecordsPayload = new ApplicationToken(_purgeRecordsPayload, builder.AppToken);
     _purgeRecordsPayload = new WrapPayload(_purgeRecordsPayload);
     _uri = new QUriDbid(builder.AccountDomain, builder.Dbid);
 }
예제 #37
0
 private void CommonConstruction(string ticket, string appToken, string accountDomain, string dbid, Payload.Payload payload, string userToken = "")
 {
     if (userToken.Length > 0)
     {
         _addFieldPayload = new ApplicationUserToken(payload, userToken);
     }
     else
     {
         _addFieldPayload = new ApplicationTicket(payload, ticket);
     }
     _addFieldPayload = new ApplicationToken(_addFieldPayload, appToken);
     _addFieldPayload = new WrapPayload(_addFieldPayload);
     _uri             = new QUriDbid(accountDomain, dbid);
 }
 /// <summary>
 /// Initializes a new instance of the com.intuit.quickbase.API_FindDBByName class.
 /// </summary>
 /// <param name="ticket">Supply auth ticket for application access. See com.intuit.quickbase.API_Authenticate class to obtain a ticket.</param>
 /// <param name="accountDomain"></param>
 /// <param name="dbName">Supply application name to search for.</param>
 /// <param name="userToken">option user token that can be used instead of ticket</param>
 public FindDbByName(string ticket, string accountDomain, string dbName, string userToken = "")
 {
     _findDbByNamePayload = new FindDbByNamePayload(dbName);
     //If a user token is provided, use it instead of a ticket
     if (userToken.Length > 0)
     {
         _findDbByNamePayload = new ApplicationUserToken(_findDbByNamePayload, userToken);
     }
     else
     {
         _findDbByNamePayload = new ApplicationTicket(_findDbByNamePayload, ticket);
     }
     _findDbByNamePayload = new WrapPayload(_findDbByNamePayload);
     _uri = new QUriMain(accountDomain);
 }
 /// <summary>
 /// Initializes a new instance of the com.intuit.quickbase.API_CreateDatabase class.
 /// </summary>
 /// <param name="ticket">Supply auth ticket for application access. See com.intuit.quickbase.API_Authenticate class to obtain a ticket.</param>
 /// <param name="accountDomain"></param>
 /// <param name="dbName">Supply a new application name.</param>
 /// <param name="dbDesc">Supply an application description.</param>
 /// <param name="createAppToken">Supply "true" to create a new token, "false" otherwise.</param>
 /// <param name="userToken">a user token that can be used instead of a ticket</param>
 public CreateDatabase(string ticket, string accountDomain, string dbName, string dbDesc, bool createAppToken, string userToken = "")
 {
     _createDatabasePayload = new CreateDatabasePayload(dbName, dbDesc, createAppToken);
     //If a user token is provided, use it instead of a ticket
     if (userToken.Length > 0)
     {
         _createDatabasePayload = new ApplicationUserToken(_createDatabasePayload, userToken);
     }
     else
     {
         _createDatabasePayload = new ApplicationTicket(_createDatabasePayload, ticket);
     }
     _createDatabasePayload = new WrapPayload(_createDatabasePayload);
     _uri = new QUriMain(accountDomain);
 }
예제 #40
0
 private void CommonConstruction(string ticket, string appToken, string accountDomain, string dbid, Payload.Payload payload, string userToken = "")
 {
     //If a user token is provided, use it instead of a ticket
     if (userToken.Length > 0)
     {
         _sendInvitationPayload = new ApplicationUserToken(payload, userToken);
     }
     else
     {
         _sendInvitationPayload = new ApplicationTicket(payload, ticket);
     }
     _sendInvitationPayload = new ApplicationToken(_sendInvitationPayload, appToken);
     _sendInvitationPayload = new WrapPayload(_sendInvitationPayload);
     _uri = new QUriDbid(accountDomain, dbid);
 }
 public UserRoles(string ticket, string appToken, string accountDomain, string dbid, string userToken = "")
 {
     _userRolesPayload = new UserRolesPayload();
     //If a user token is provided, use it instead of a ticket
     if (userToken.Length > 0)
     {
         _userRolesPayload = new ApplicationUserToken(_userRolesPayload, userToken);
     }
     else
     {
         _userRolesPayload = new ApplicationTicket(_userRolesPayload, ticket);
     }
     _userRolesPayload = new ApplicationToken(_userRolesPayload, appToken);
     _userRolesPayload = new WrapPayload(_userRolesPayload);
     _uri = new QUriDbid(accountDomain, dbid);
 }
예제 #42
0
 public ChangeRecordOwner(string ticket, string appToken, string accountDomain, string dbid, int rid, string newOwner, string userToken = "")
 {
     _changeRecordOwnerPayload = new ChangeRecordOwnerPayload(rid, newOwner);
     //If a user token is provided, use it instead of a ticket
     if (userToken.Length > 0)
     {
         _changeRecordOwnerPayload = new ApplicationUserToken(_changeRecordOwnerPayload, userToken);
     }
     else
     {
         _changeRecordOwnerPayload = new ApplicationTicket(_changeRecordOwnerPayload, ticket);
     }
     _changeRecordOwnerPayload = new ApplicationToken(_changeRecordOwnerPayload, appToken);
     _changeRecordOwnerPayload = new WrapPayload(_changeRecordOwnerPayload);
     _uri = new QUriDbid(accountDomain, dbid);
 }
예제 #43
0
 private DoQuery(Builder builder)
 {
     _doQueryPayload = new DoQueryPayload.Builder()
                       .SetQuery(builder.Query)
                       .SetQid(builder.Qid)
                       .SetQName(builder.QName)
                       .SetCList(builder.CList)
                       .SetSList(builder.SList)
                       .SetFmt(builder.Fmt)
                       .SetOptions(builder.Options)
                       .Build();
     _doQueryPayload = new ApplicationTicket(_doQueryPayload, builder.Ticket);
     _doQueryPayload = new ApplicationToken(_doQueryPayload, builder.AppToken);
     _doQueryPayload = new WrapPayload(_doQueryPayload);
     _uri            = new QUriDbid(builder.AccountDomain, builder.Dbid);
 }
예제 #44
0
 /// <summary>
 /// Initializes a new instance of the com.intuit.quickbase.API_DeleteRecord class.
 /// </summary>
 /// <param name="ticket">Supply auth ticket for application access. See com.intuit.quickbase.API_Authenticate class to obtain a ticket.</param>
 /// <param name="appToken">Supply application token that is assigned to your QuickBase Application. See QuickBase Online help to obtain an application token.</param>
 /// <param name="accountDomain"></param>
 /// <param name="dbid">Supply table-level dbid.</param>
 /// <param name="rid">Supply a record object.</param>
 /// <param name="userToken">optional user token that can be used instead of a ticket</param>
 public DeleteRecord(string ticket, string appToken, string accountDomain, string dbid, int rid, string userToken = "")
 {
     _deleteRecordPayload = new DeleteRecordPayload(rid);
     //If a user token is provided, use it instead of a ticket
     if (userToken.Length > 0)
     {
         _deleteRecordPayload = new ApplicationUserToken(_deleteRecordPayload, userToken);
     }
     else
     {
         _deleteRecordPayload = new ApplicationTicket(_deleteRecordPayload, ticket);
     }
     _deleteRecordPayload = new ApplicationToken(_deleteRecordPayload, appToken);
     _deleteRecordPayload = new WrapPayload(_deleteRecordPayload);
     _uri = new QUriDbid(accountDomain, dbid);
 }
 private DoQuery(Builder builder)
 {
     _doQueryPayload = new DoQueryPayload.Builder()
         .SetQuery(builder.Query)
         .SetQid(builder.Qid)
         .SetQName(builder.QName)
         .SetCList(builder.CList)
         .SetSList(builder.SList)
         .SetFmt(builder.Fmt)
         .SetOptions(builder.Options)
         .Build();
     _doQueryPayload = new ApplicationTicket(_doQueryPayload, builder.Ticket);
     _doQueryPayload = new ApplicationToken(_doQueryPayload, builder.AppToken);
     _doQueryPayload = new WrapPayload(_doQueryPayload);
     _uri = new QUriDbid(builder.AccountDomain, builder.Dbid);
 }
 public FieldAddChoices(string ticket, string appToken, string accountDomain, string dbid, int fid, List <string> choices, string userToken = "")
 {
     _fieldAddChoicesPayload = new FieldChoicesPayload(fid, choices);
     //If a user token is provided, use it instead of a ticket
     if (userToken.Length > 0)
     {
         _fieldAddChoicesPayload = new ApplicationUserToken(_fieldAddChoicesPayload, userToken);
     }
     else
     {
         _fieldAddChoicesPayload = new ApplicationTicket(_fieldAddChoicesPayload, ticket);
     }
     _fieldAddChoicesPayload = new ApplicationToken(_fieldAddChoicesPayload, appToken);
     _fieldAddChoicesPayload = new WrapPayload(_fieldAddChoicesPayload);
     _uri = new QUriDbid(accountDomain, dbid);
 }
예제 #47
0
 public AddUserToRole(string ticket, string appToken, string accountDomain, string dbid, string userId, int roleId, string userToken = "")
 {
     _addUserToRolePayload = new AddUserToRolePayload(userId, roleId);
     //If a user token is provided, use it instead of a ticket
     if (userToken.Length > 0)
     {
         _addUserToRolePayload = new ApplicationUserToken(_addUserToRolePayload, userToken);
     }
     else
     {
         _addUserToRolePayload = new ApplicationTicket(_addUserToRolePayload, ticket);
     }
     _addUserToRolePayload = new ApplicationToken(_addUserToRolePayload, appToken);
     _addUserToRolePayload = new WrapPayload(_addUserToRolePayload);
     _uri = new QUriDbid(accountDomain, dbid);
 }
 public RunImport(string ticket, string appToken, string accountDomain, string dbid, int id, string userToken = "")
 {
     _runImportPayload = new RunImportPayload(id);
     //If a user token is provided, use it instead of a ticket
     if (userToken.Length > 0)
     {
         _runImportPayload = new ApplicationUserToken(_runImportPayload, userToken);
     }
     else
     {
         _runImportPayload = new ApplicationTicket(_runImportPayload, ticket);
     }
     _runImportPayload = new ApplicationToken(_runImportPayload, appToken);
     _runImportPayload = new WrapPayload(_runImportPayload);
     _uri = new QUriDbid(accountDomain, dbid);
 }
예제 #49
0
 public GetDBvar(string ticket, string appToken, string accountDomain, string dbid, string varName, string userToken = "")
 {
     _getDBvarPayload = new GetDBvarPayload(varName);
     //If a user token is provided, use it instead of a ticket
     if (userToken.Length > 0)
     {
         _getDBvarPayload = new ApplicationUserToken(_getDBvarPayload, userToken);
     }
     else
     {
         _getDBvarPayload = new ApplicationTicket(_getDBvarPayload, ticket);
     }
     _getDBvarPayload = new ApplicationToken(_getDBvarPayload, appToken);
     _getDBvarPayload = new WrapPayload(_getDBvarPayload);
     _uri             = new QUriDbid(accountDomain, dbid);
 }
예제 #50
0
 private CreateTable(Builder builder)
 {
     _createTablePayload = new CreateTablePayload.Builder()
                           .SetTName(builder.TName)
                           .SetPNoun(builder.PNoun)
                           .Build();
     //If a user token is provided, use it instead of a ticket
     if (builder.UserToken.Length > 0)
     {
         _createTablePayload = new ApplicationUserToken(_createTablePayload, builder.UserToken);
     }
     else
     {
         _createTablePayload = new ApplicationTicket(_createTablePayload, builder.Ticket);
     }
     _createTablePayload = new ApplicationToken(_createTablePayload, builder.AppToken);
     _createTablePayload = new WrapPayload(_createTablePayload);
     _uri = new QUriDbid(builder.AccountDomain, builder.Dbid);
 }
예제 #51
0
 private ImportFromCSV(Builder builder)
 {
     _importFromCSVPayload = new ImportFromCSVPayload.Builder(builder.RecordsCsv)
                             .SetCList(builder.CList)
                             .SetSkipFirst(builder.SkipFirst)
                             .Build();
     //If a user token is provided, use it instead of a ticket
     if (builder.UserToken.Length > 0)
     {
         _importFromCSVPayload = new ApplicationUserToken(_importFromCSVPayload, builder.UserToken);
     }
     else
     {
         _importFromCSVPayload = new ApplicationTicket(_importFromCSVPayload, builder.Ticket);
     }
     _importFromCSVPayload = new ApplicationToken(_importFromCSVPayload, builder.AppToken);
     _importFromCSVPayload = new WrapPayload(_importFromCSVPayload);
     _uri = new QUriDbid(builder.AccountDomain, builder.Dbid);
 }
예제 #52
0
 private CloneDatabase(Builder builder)
 {
     _cloneDatabasePayload = new CloneDatabasePayload.Builder(builder.NewDBName, builder.NewDBDesc)
                             .SetKeepData(builder.KeepData)
                             .SetExcludeFiles(builder.ExcludeFiles)
                             .Build();
     //If a user token is provided, use it instead of a ticket
     if (builder.UserToken.Length > 0)
     {
         _cloneDatabasePayload = new ApplicationUserToken(_cloneDatabasePayload, builder.UserToken);
     }
     else
     {
         _cloneDatabasePayload = new ApplicationTicket(_cloneDatabasePayload, builder.Ticket);
     }
     _cloneDatabasePayload = new ApplicationToken(_cloneDatabasePayload, builder.AppToken);
     _cloneDatabasePayload = new WrapPayload(_cloneDatabasePayload);
     _uri = new QUriDbid(builder.AccountDomain, builder.Dbid);
 }
 private PurgeRecords(Builder builder)
 {
     _purgeRecordsPayload = new PurgeRecordsPayload.Builder()
                            .SetQuery(builder.Query)
                            .SetQid(builder.Qid)
                            .SetQName(builder.QName)
                            .Build();
     //If a user token is provided, use it instead of a ticket
     if (builder.UserToken.Length > 0)
     {
         _purgeRecordsPayload = new ApplicationUserToken(_purgeRecordsPayload, builder.UserToken);
     }
     else
     {
         _purgeRecordsPayload = new ApplicationTicket(_purgeRecordsPayload, builder.Ticket);
     }
     _purgeRecordsPayload = new ApplicationToken(_purgeRecordsPayload, builder.AppToken);
     _purgeRecordsPayload = new WrapPayload(_purgeRecordsPayload);
     _uri = new QUriDbid(builder.AccountDomain, builder.Dbid);
 }
예제 #54
0
 private CloneDatabase(Builder builder)
 {
     _cloneDatabasePayload = new CloneDatabasePayload.Builder(builder.NewDBName, builder.NewDBDesc)
         .SetKeepData(builder.KeepData)
         .SetExcludeFiles(builder.ExcludeFiles)
         .Build();
     _cloneDatabasePayload = new ApplicationTicket(_cloneDatabasePayload, builder.Ticket);
     _cloneDatabasePayload = new ApplicationToken(_cloneDatabasePayload, builder.AppToken);
     _cloneDatabasePayload = new WrapPayload(_cloneDatabasePayload);
     _uri = new QUriDbid(builder.AccountDomain, builder.Dbid);
 }
예제 #55
0
 private PurgeRecords(Builder builder)
 {
     _purgeRecordsPayload = new PurgeRecordsPayload.Builder()
         .SetQuery(builder.Query)
         .SetQid(builder.Qid)
         .SetQName(builder.QName)
         .Build();
     _purgeRecordsPayload = new ApplicationTicket(_purgeRecordsPayload, builder.Ticket);
     _purgeRecordsPayload = new ApplicationToken(_purgeRecordsPayload, builder.AppToken);
     _purgeRecordsPayload = new WrapPayload(_purgeRecordsPayload);
     _uri = new QUriDbid(builder.AccountDomain, builder.Dbid);
 }
 internal ApplicationTicket(Payload payload, string ticket)
 {
     Payload = payload;
     Ticket = ticket;
 }
예제 #57
0
 private void CommonConstruction(Payload.Payload payload, string accountDomain)
 {
     _authenticatePayload = new WrapPayload(payload);
     _uri = new QUriMain(accountDomain);
 }
 internal ApplicationToken(Payload payload, string token)
 {
     Payload = payload;
     Token = token;
 }
예제 #59
0
 public SignOut(string accountDomain)
 {
     _signOutPayload = new SignOutPayload();
     _signOutPayload = new WrapPayload(_signOutPayload);
     _uri = new QUriMain(accountDomain);
 }
예제 #60
0
 internal WrapPayload(Payload payload)
 {
     Payload = payload;
 }