Class UserViewModel
- Namespace
- Dynamicweb.Frontend
- Assembly
- Dynamicweb.dll
UserViewModel represents the rendering context used when a user is rendered.
public class UserViewModel : ViewModelBase
- Inheritance
-
UserViewModel
- Derived
- Inherited Members
- Extension Methods
Constructors
UserViewModel()
Initializes a new instance of the UserViewModel class.
public UserViewModel()
Properties
Address
Gets or sets the address.
public string? Address { get; set; }
Property Value
- string
The address.
Address2
Gets or sets the address2.
public string? Address2 { get; set; }
Property Value
- string
The address2.
AddressCustomFields
public Dictionary<string, CustomFieldValueViewModel> AddressCustomFields { get; set; }
Property Value
City
Gets or sets the city.
public string? City { get; set; }
Property Value
- string
The city.
Company
Gets or sets the company.
public string? Company { get; set; }
Property Value
- string
The company.
Country
Gets or sets the country.
public string? Country { get; set; }
Property Value
- string
The country.
CountryCode
Gets or sets the country code.
public string? CountryCode { get; set; }
Property Value
- string
The country code.
Currency
Gets or sets the currency.
public string? Currency { get; set; }
Property Value
- string
The currency.
CustomFields
Gets the collection of custom field values associated with the entity.
public Dictionary<string, CustomFieldValueViewModel> CustomFields { get; set; }
Property Value
Remarks
The collection is returned as a dictionary where the key is the name of the custom field and the value is the corresponding custom field value. If no custom fields are present, an empty dictionary is returned.
CustomerNumber
Gets or sets the customer number.
public string? CustomerNumber { get; set; }
Property Value
- string
The customer number.
Department
Gets or sets the department.
public string? Department { get; set; }
Property Value
- string
The department.
Gets or sets the email.
public string? Email { get; set; }
Property Value
- string
The email.
ExternalID
Gets the external identifier.
public string? ExternalID { get; set; }
Property Value
- string
The external identifier.
FirstName
Gets or sets the first name.
public string? FirstName { get; set; }
Property Value
- string
The first name.
HouseNumber
Gets or sets the house number.
public string? HouseNumber { get; set; }
Property Value
- string
The house number.
ID
Gets or sets the identifier.
public int ID { get; set; }
Property Value
- int
The identifier.
Image
Gets or sets the image.
public string? Image { get; set; }
Property Value
- string
The image.
InvitationSent
Gets or sets the date and time when the invitation was sent to the user.
public DateTime? InvitationSent { get; set; }
Property Value
- DateTime?
The date and time the invitation was sent, or
nullif no invitation has been sent.
JobTitle
Gets or sets the job title.
public string? JobTitle { get; set; }
Property Value
- string
The job title.
LastLogOnOn
Gets or sets the date and time when the user last logged on.
public DateTime? LastLogOnOn { get; set; }
Property Value
- DateTime?
The date and time of the user's last logon, or
nullif the user has never logged on.
LastName
Gets or sets the last name.
public string? LastName { get; set; }
Property Value
- string
The last name.
Location
public UserViewModel.GeoLocation Location { get; set; }
Property Value
MiddleName
Gets or sets the name of the middle.
public string? MiddleName { get; set; }
Property Value
- string
The name of the middle.
Name
Gets or sets the name.
public string? Name { get; set; }
Property Value
- string
The name.
Phone
Gets or sets the phone.
public string? Phone { get; set; }
Property Value
- string
The phone.
PhoneBusiness
Gets or sets the phone business.
public string? PhoneBusiness { get; set; }
Property Value
- string
The phone business.
PhoneMobile
Gets or sets the phone mobile.
public string? PhoneMobile { get; set; }
Property Value
- string
The phone mobile.
PhonePrivate
Gets or sets the phone private.
public string? PhonePrivate { get; set; }
Property Value
- string
The phone private.
PointBalance
Gets or sets user's loyalty points balance
public double PointBalance { get; set; }
Property Value
- double
User's loyalty points balance.
ShopID
Gets or sets the shop id.
public string? ShopID { get; set; }
Property Value
- string
The shop id.
State
Gets or sets the state.
public string? State { get; set; }
Property Value
- string
The state.
StockLocationID
Gets or sets the stock location ID.
public long? StockLocationID { get; set; }
Property Value
- long?
The stock location ID.
Title
Gets or sets the title.
public string? Title { get; set; }
Property Value
- string
The title.
UniqueId
Gets or sets the unique identifier.
public Guid UniqueId { get; set; }
Property Value
- Guid
The unique identifier.
UserName
Gets or sets the name of the user.
public string? UserName { get; set; }
Property Value
- string
The name of the user.
UserType
Gets or sets the system name of the user type.
public string? UserType { get; set; }
Property Value
- string
The system name of the user type, or
nullif not set.
VatRegNumber
Gets or sets the VAT number without country code.
public string? VatRegNumber { get; set; }
Property Value
- string
The vat number, e.g. 12345678.
Zip
Gets or sets the zip.
public string? Zip { get; set; }
Property Value
- string
The zip.