DotNetPanel has the concept of users or resellers. However, they are all ultimately customers of either the main administrative account (named 'serveradmin' by default) or a reseller. Because of this Easy API for DNP considers them both customers.
The Customer Class manages DotNetPanel's user and reseller accounts.
| All Members | Methods | Properties | |||
| Icon | Member | Description |
|---|---|---|
| Address |
Gets and sets the address.
| |
| Changed |
Gets the timestamp of the last change.
| |
| ChangePassword(String) |
Changes the password for the account.
| |
| City |
Gets and sets the city.
| |
| Comments |
Gets and sets the comments.
| |
| CompanyName |
Gets and sets the company name.
| |
| Country |
Gets and sets the country.
| |
| CreateCustomer()()() |
Returns a new customer to be created under this account.
| |
| Created |
Gets the timestamp of when it was first created.
| |
| CreateHostingSpace(Int32) |
Returns a new hosting space to be created under this account.
| |
| CustomerExists(String) |
Checks to see if a given account exists.
| |
| Delete()()() |
Deletes the account.
| |
Gets and sets the email.
| ||
| Equals(Object) | (Inherited from Object.) | |
| Fax |
Gets and sets the fax number.
| |
| FirstName |
Gets and sets the first name.
| |
| GetCustomerById(Int32) |
Gets a given DotNetPanel account by its unique id.
| |
| GetCustomerByUserName(String) |
Gets a given DotNetPanel account by its username.
| |
| GetCustomers()()() |
Gets all the customers under this account.
| |
| GetHashCode()()() | Serves as a hash function for a particular type. GetHashCode()()() is suitable for use in hashing algorithms and data structures like a hash table. (Inherited from Object.) | |
| GetHostingPlanAddOnById(Int32) |
Gets a given hosting plan add-on by its unique id.
| |
| GetHostingPlanAddOns()()() |
Gets all hosting plan add-ons under this account.
| |
| GetHostingPlanById(Int32) |
Gets a given hosting plan by its unique id.
| |
| GetHostingPlans()()() |
Gets all hosting plans under this account.
| |
| GetHostingSpaceById(Int32) |
Get a hosting space by its unique id.
| |
| GetHostingSpaces()()() |
Get all hosting spaces under this account.
| |
| GetType()()() | Gets the Type of the current instance. (Inherited from Object.) | |
| HtmlMail |
Gets and sets whether the customer wants to receive emails in HTML format.
| |
| Id |
Gets the DotNetPanel unique identifier for this account.
| |
| InitialPassword |
Sets the password to be used when the account is first created.
| |
| InstantMessenger |
Gets and sets the instant messenger account.
| |
| IsDemo |
Gets and sets whether it is a demo account.
| |
| LastName |
Gets and sets the last name.
| |
| ParentCustomerId |
Gets DotNetPanel's unique identifier for the parent DNP account.
| |
| PrimaryPhone |
Gets and sets the primary phone number.
| |
| Role |
Gets and sets the role.
| |
| RoleId |
Gets and sets the role as a number.
| |
| Save()()() |
Saves the account.
| |
| SecondaryEmail |
Gets and sets the secondary email.
| |
| SecondaryPhone |
Gets and sets the secondary phone number.
| |
| SendAccountSummaryEmail(String, String) |
Sends the account summary email.
| |
| State |
Gets and sets the state.
| |
| Status |
Gets and sets the status.
| |
| StatusId |
Gets and sets the status as a number.
| |
| ToString()()() | (Inherited from Object.) | |
| Username |
Gets and sets the username.
| |
| Zip |
Gets and sets the zip.
|
The following properties are required in order to save a new customer: Username, InitialPassword, FirstName, LastName and Email.
| Object | ||
| Customer | ||
| EnterpriseServer | ||