Show / Hide Table of Contents

Class RecipentList

This class is stored as a blob and therefor any changes to this class is a breaking change

Inheritance
Object
RecipentList
Inherited Members
Object.ToString()
Object.Equals(Object)
Object.Equals(Object, Object)
Object.ReferenceEquals(Object, Object)
Object.GetHashCode()
Object.GetType()
Object.MemberwiseClone()
Namespace: SuperOffice.CRM.Mail
Assembly: SoDataBase.dll
Syntax
public class RecipentList

Constructors

RecipentList()

Creates a dictionary with SentEMailInfo objects - these are sorted by date and updated based on the e-mail address

Declaration
public RecipentList()

Methods

GetMostRecentRecipients(String, Int32)

Gets a sorted array of SuperOffice.CRM.Mail.MailAddress objects

Declaration
public MailAddress[] GetMostRecentRecipients(string searchString, int numberOfRecipients)
Parameters
Type Name Description
String searchString

The string from which we try to find a match. The operator of this search is "starts with" and the search is case insensitive

Int32 numberOfRecipients

The number of recipients in the returned array

Returns
Type Description
SuperOffice.CRM.Mail.MailAddress[]

An array of SuperOffice.CRM.Mail.MailAddress objects, sorted according to the time stamp whence it was sent

UpdateListWithRecipients(MailAddress, DateTime)

Adds a single MailAddress if it is not present in our cache, otherwise it updates the date stamp for the one we have. This ensures that the list is sorted correctly

Declaration
public void UpdateListWithRecipients(MailAddress address, DateTime timeStamp)
Parameters
Type Name Description
SuperOffice.CRM.Mail.MailAddress address

The address to add to the cache

DateTime timeStamp

The time stamp indicating when it was sent. This is used for sorting the auto-complete list

UpdateListWithRecipients(MailEnvelope)

Adds all the e-mail addresses in a SuperOffice.CRM.Mail.MailEnvelope

Declaration
public void UpdateListWithRecipients(MailEnvelope mail)
Parameters
Type Name Description
SuperOffice.CRM.Mail.MailEnvelope mail

The mail envelope containing a list of e-mail addresses. These addresses will be added to our recipient cache

Extension Methods

EnumUtil.MapEnums<From, To>(From)
ObjectExtensions.AssignByReflection<T>(T, T)
ObjectExtensions.GraphCopy<T>(T)
Converters.MapEnums<From, To>(From)
© SuperOffice. All rights reserved.
SuperOffice |  Community |  Release Notes |  Privacy |  Site feedback |  Search Docs |  About Docs |  Contribute |  Back to top