ExRets v0.1.1 ExRets.SessionInformation View Source
Identity and parameter information.
Link to this section Summary
Types
Code that is stored in the property records for the listing agent, selling agent, etc.
User-readable indication of the money balance in the account.
Used in the validation routines of the Update transaction.
Used in the validation routines of the Update transaction.
Member's full name (display name) as it is to appear on any printed output; for example "Jane T. Row".
Persistent ID associated with the metadata applied to the current user session.
Timestamp associated with the current version of metadata on the server.
Most current version of the metadata that is available on the server.
Earliest version of the metadata that the server will support.
Enumeration of the offices to which the server will permit login.
Name of the MLS or Association operating the system.
Date that the current user password becomes invalid.
Name of the role restriction where the metadata may be restricted.
Name of the server product provided by the vendor.
Version of the server product.
Version of StandardNames that the server supports.
Free text that provides a contact email, phone, or website for development support.
Identity and parameter information.
Number of seconds after a transaction that a session will remain active.
Used in the validation routines of the Update transaction. Implementation dependent and may not exist on some systems.
ID of the signed in user.
Used in the validation routines of the Update transaction. Implementation dependent and may not exist on some systems.
Name of the server product vendor.
Number of days before the expiration date that the user should be warned of the upcoming password expiration. A value of "-1" indicates that the password expiration is disabled.
Functions
Parses session information returned as part of a login response.
Link to this section Types
Code that is stored in the property records for the listing agent, selling agent, etc.
User-readable indication of the money balance in the account.
Used in the validation routines of the Update transaction.
Used in the validation routines of the Update transaction.
Member's full name (display name) as it is to appear on any printed output; for example "Jane T. Row".
Persistent ID associated with the metadata applied to the current user session.
metadata_timestamp()
View Source (since 0.1.0)metadata_timestamp() :: NaiveDateTime.t() | nil
Timestamp associated with the current version of metadata on the server.
metadata_version()
View Source (since 0.1.0)metadata_version() :: String.t() | nil
Most current version of the metadata that is available on the server.
min_metadata_timestamp()
View Source (since 0.1.0)min_metadata_timestamp() :: NaiveDateTime.t() | nil
Earliest version of the metadata that the server will support.
Enumeration of the offices to which the server will permit login.
Name of the MLS or Association operating the system.
password_expiration()
View Source (since 0.1.0)password_expiration() :: NaiveDateTime.t() | nil
Date that the current user password becomes invalid.
Name of the role restriction where the metadata may be restricted.
server_product_name()
View Source (since 0.1.0)server_product_name() :: String.t() | nil
Name of the server product provided by the vendor.
server_product_version()
View Source (since 0.1.0)server_product_version() :: String.t() | nil
Version of the server product.
standard_names_version()
View Source (since 0.1.0)standard_names_version() :: String.t() | nil
Version of StandardNames that the server supports.
support_contact_information()
View Source (since 0.1.0)support_contact_information() :: String.t() | nil
Free text that provides a contact email, phone, or website for development support.
t()
View Source (since 0.1.0)t() :: %ExRets.SessionInformation{ agent_code: agent_code(), balance: balance(), broker_branch: broker_branch(), broker_code: broker_code(), member_name: member_name(), metadata_id: metadata_id(), metadata_timestamp: metadata_timestamp(), metadata_version: metadata_version(), min_metadata_timestamp: min_metadata_timestamp(), office_list: office_list(), operator_name: operator_name(), password_expiration: password_expiration(), role_name: role_name(), server_product_name: server_product_name(), server_product_version: server_product_version(), standard_names_version: standard_names_version(), support_contact_information: support_contact_information(), timeout_seconds: timeout_seconds(), user_class: user_class(), user_id: user_id(), user_level: user_level(), vendor_name: vendor_name(), warn_password_expiration_days: warn_password_expiration_days() }
Identity and parameter information.
Number of seconds after a transaction that a session will remain active.
Used in the validation routines of the Update transaction. Implementation dependent and may not exist on some systems.
ID of the signed in user.
Used in the validation routines of the Update transaction. Implementation dependent and may not exist on some systems.
Name of the server product vendor.
warn_password_expiration_days()
View Source (since 0.1.0)warn_password_expiration_days() :: integer() | nil
Number of days before the expiration date that the user should be warned of the upcoming password expiration. A value of "-1" indicates that the password expiration is disabled.
Link to this section Functions
parse(key_value_body)
View Source (since 0.1.0)parse(ExRets.LoginResponse.key_value_body()) :: t()
Parses session information returned as part of a login response.
Attempts to parse data types into equivalent Elixir types, but will pass through invalid values as strings.
Examples
iex> ExRets.SessionInformation.parse("Info=USERID;Character;1")
%ExRets.SessionInformation{user_id: "1"}
iex> ExRets.SessionInformation.parse("Info=MetadataTimestamp;DateTime;2019-11-13T19:58:45Z")
%ExRets.SessionInformation{metadata_timestamp: ~N[2019-11-13T19:58:45Z]}
iex> ExRets.SessionInformation.parse("Info=MetadataTimestamp;DateTime;invalid")
%ExRets.SessionInformation{metadata_timestamp: "invalid"}