Show / Hide Table of Contents

Class ContactPreviewPlugin

Inheritance
object
PreviewPluginBase
ContactPreviewPlugin
Inherited Members
PreviewPluginBase.ImageHint
PreviewPluginBase.SimpleHint
PreviewPluginBase.UpdatedHint
PreviewPluginBase.GetPreviewAsync(Dictionary<string, List<string>>, PreviewData, CancellationToken)
PreviewPluginBase.TryGetIntHint(string, out int)
PreviewPluginBase.TryGetStringHint(string, out string)
PreviewPluginBase.TryGetBoolHint(string, out bool)
PreviewPluginBase.TryGetDateHint(string, out DateTime)
PreviewPluginBase.GetRawValues(string)
PreviewPluginBase.MakeImageHint(string, int)
PreviewPluginBase.RemoveBlankLines(string)
PreviewPluginBase.FormatDescriptionText(string)
PreviewPluginBase.Hints
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
Namespace: SuperOffice.CRM.Previews
Assembly: SoDataBase.BusinessLogic.dll
Syntax
[PreviewPlugin("SuperOffice:ContactPreview", new string[] { "contact_id" })]
public class ContactPreviewPlugin : PreviewPluginBase

Constructors

ContactPreviewPlugin()

Declaration
public ContactPreviewPlugin()

Fields

ContactHint

Declaration
public const string ContactHint = "contact_id"
Field Value
Type Description
string

Methods

FormatLargePreviewAsync(PreviewData, ContactRow, PhoneRow, AddressRow, AddressRow, URLRow, CancellationToken)

Declaration
public static Task<PreviewData> FormatLargePreviewAsync(PreviewData pd, ContactRow contactRow, PhoneRow phoneRow, AddressRow addressRow, AddressRow postalAddressRow, URLRow urlRow, CancellationToken cancellationToken)
Parameters
Type Name Description
PreviewData pd
ContactRow contactRow
PhoneRow phoneRow
AddressRow addressRow
AddressRow postalAddressRow
URLRow urlRow
CancellationToken cancellationToken
Returns
Type Description
Task<PreviewData>

InnerGetPreviewAsync(PreviewData, CancellationToken)

Subclass contract: derived class must implement their Preview logicin this method.

Declaration
protected override Task<PreviewData> InnerGetPreviewAsync(PreviewData previewData, CancellationToken cancellationToken)
Parameters
Type Name Description
PreviewData previewData
CancellationToken cancellationToken
Returns
Type Description
Task<PreviewData>

Preview text, or an empty string

Overrides
PreviewPluginBase.InnerGetPreviewAsync(PreviewData, CancellationToken)
Remarks

The Preview hints are accessible through the Hints property, but clients should usually find the provided access methods sufficient. TryGetIntHint(string, out int), TryGetStringHint(string, out string) and TryGetBoolHint(string, out bool) look for and parse the given type of key, and return a bool value that specifies whether the given key was found.

Extension Methods

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