C4W-BOT
Loading...
Searching...
No Matches
Library.Customer Class Reference

Representa a un cliente del sistema, con su información personal, etiquetas e historial de interacciones. Contiene comportamientos para gestionar su estado y sus relaciones. More...

Public Member Functions

 Customer (string id, string name, string familyName, string mail, string phone, string gender, DateTime birthDate)
bool IsValidMail (string mail)
void AddTag (Tag tag)
void RemoveTag (Tag tag)
void AddInteraction (Interaction interaction)
List< InteractionGetInteraction ()
List< InteractionGetInteractionsByTypeName (string typeName)
 Filtra las interacciones del cliente por tipo utilizando genéricos. Devuelve solo las interacciones que coincidan con el tipo especificado.
List< InteractionGetInteractionsByDate (DateTime date)
List< InteractionGetInteractionsByTypeAndDate (string typeName, DateTime date)
DateTime? GetLastInteraction ()
void Deactivate ()
void Activate ()
bool CheckIsActive ()
void MarkAsPending ()
void MarkAsActive ()
void MarkLastReceivedAsResponded ()
List< InteractionGetUnansweredInteractions ()
List< InteractionGetRecentInteractions ()
List< MeetingGetUpcomingMeetings ()
bool HasQuote (DateTime date, string topic, ExchangeType type, double amount, string description)
Quote FindQuote (DateTime date, string topic, ExchangeType type, double amount, string description=null)
bool HasSale (DateTime date, string topic, ExchangeType type, string product, double amount)
Interaction FindInteraction (string topic, DateTime date, ExchangeType type)
override string ToString ()

Properties

string Id [get, set]
string Name [get, set]
string FamilyName [get, set]
string Mail [get, set]
string Phone [get, set]
string Gender [get, set]
DateTime BirthDate [get, set]
List< TagTags [get, set]
List< InteractionInteractions [get, set]
Seller Seller [get, set]
bool IsActive [get, set]
bool HasPendingCustomerReply [get]

Detailed Description

Representa a un cliente del sistema, con su información personal, etiquetas e historial de interacciones. Contiene comportamientos para gestionar su estado y sus relaciones.

Constructor & Destructor Documentation

◆ Customer()

Library.Customer.Customer ( string id,
string name,
string familyName,
string mail,
string phone,
string gender,
DateTime birthDate )

Member Function Documentation

◆ Activate()

void Library.Customer.Activate ( )

◆ AddInteraction()

void Library.Customer.AddInteraction ( Interaction interaction)

◆ AddTag()

void Library.Customer.AddTag ( Tag tag)

◆ CheckIsActive()

bool Library.Customer.CheckIsActive ( )

◆ Deactivate()

void Library.Customer.Deactivate ( )

◆ FindInteraction()

Interaction Library.Customer.FindInteraction ( string topic,
DateTime date,
ExchangeType type )

◆ FindQuote()

Quote Library.Customer.FindQuote ( DateTime date,
string topic,
ExchangeType type,
double amount,
string description = null )

◆ GetInteraction()

List< Interaction > Library.Customer.GetInteraction ( )

◆ GetInteractionsByDate()

List< Interaction > Library.Customer.GetInteractionsByDate ( DateTime date)

◆ GetInteractionsByTypeAndDate()

List< Interaction > Library.Customer.GetInteractionsByTypeAndDate ( string typeName,
DateTime date )

◆ GetInteractionsByTypeName()

List< Interaction > Library.Customer.GetInteractionsByTypeName ( string typeName)

Filtra las interacciones del cliente por tipo utilizando genéricos. Devuelve solo las interacciones que coincidan con el tipo especificado.

Template Parameters
TTipo de interacción (por ejemplo: Sale, Meeting, Call).
Returns
Lista de interacciones del tipo solicitado.

◆ GetLastInteraction()

DateTime? Library.Customer.GetLastInteraction ( )

◆ GetRecentInteractions()

List< Interaction > Library.Customer.GetRecentInteractions ( )

◆ GetUnansweredInteractions()

List< Interaction > Library.Customer.GetUnansweredInteractions ( )

◆ GetUpcomingMeetings()

List< Meeting > Library.Customer.GetUpcomingMeetings ( )

◆ HasQuote()

bool Library.Customer.HasQuote ( DateTime date,
string topic,
ExchangeType type,
double amount,
string description )

◆ HasSale()

bool Library.Customer.HasSale ( DateTime date,
string topic,
ExchangeType type,
string product,
double amount )

◆ IsValidMail()

bool Library.Customer.IsValidMail ( string mail)

◆ MarkAsActive()

void Library.Customer.MarkAsActive ( )

◆ MarkAsPending()

void Library.Customer.MarkAsPending ( )

◆ MarkLastReceivedAsResponded()

void Library.Customer.MarkLastReceivedAsResponded ( )

◆ RemoveTag()

void Library.Customer.RemoveTag ( Tag tag)

◆ ToString()

override string Library.Customer.ToString ( )

Property Documentation

◆ BirthDate

DateTime Library.Customer.BirthDate
getset

◆ FamilyName

string Library.Customer.FamilyName
getset

◆ Gender

string Library.Customer.Gender
getset

◆ HasPendingCustomerReply

bool Library.Customer.HasPendingCustomerReply
get

◆ Id

string Library.Customer.Id
getset

◆ Interactions

List<Interaction> Library.Customer.Interactions
getset

◆ IsActive

bool Library.Customer.IsActive
getset

◆ Mail

string Library.Customer.Mail
getset

◆ Name

string Library.Customer.Name
getset

◆ Phone

string Library.Customer.Phone
getset

◆ Seller

Seller Library.Customer.Seller
getset

◆ Tags

List<Tag> Library.Customer.Tags
getset

The documentation for this class was generated from the following file: