Show / Hide Table of Contents

Class PluginResponse

PluginResponse exists to be able to respond with more than just a true/false, but also an explanation. Such an explanation can be displayed on for instance a disabled “Place Order” button.

Carrier object for PluginResponse. Services for the PluginResponse Carrier is available from the Quote Agent.
Inheritance
object
PluginResponse
Namespace: SuperOffice.CRM.Services
Assembly: SuperOffice.Services.dll
Syntax
[DataContract(Namespace = "http://www.superoffice.net/ws/crm/NetServer/11.7.0.0")]
public class PluginResponse : Carrier

Constructors

PluginResponse()

Default constructor

Declaration
public PluginResponse()
See Also
IQuoteAgent

Properties

Changes

Tablename/recordid of data changed by this method, that the client may need to reload

Declaration
[DataMember]
public virtual ChangedData Changes { get; set; }
Property Value
Type Description
ChangedData
See Also
IQuoteAgent

ErrorCode

An error code, if available.

Declaration
[DataMember]
public virtual string ErrorCode { get; set; }
Property Value
Type Description
string
See Also
IQuoteAgent

IsOk

Answer to the question / An indication if the operation went well. Equivalent to Status != Error

Declaration
[DataMember]
public virtual bool IsOk { get; set; }
Property Value
Type Description
bool
See Also
IQuoteAgent

Status

QuoteStatus = Ok / OkWithInfo / Warn / Error. Error implies IsOk = false.

Declaration
[DataMember]
public virtual QuoteStatus Status { get; set; }
Property Value
Type Description
QuoteStatus
See Also
IQuoteAgent

TechExplanation

Always in English

Declaration
[DataMember]
public virtual string TechExplanation { get; set; }
Property Value
Type Description
string
See Also
IQuoteAgent

UserExplanation

A localized explanation to the answer. Text here is displayed to the user.

Declaration
[DataMember]
public virtual string UserExplanation { get; set; }
Property Value
Type Description
string
See Also
IQuoteAgent

Methods

ToString()

Returns the carrier contents as a formatted string.

Declaration
public override string ToString()
Returns
Type Description
string

The carrier contents.

See Also
IQuoteAgent

ToString(string)

Returns the carrier contents as a formatted string, useful for debugging. Each line in the output is prefixed with the input value.

Declaration
public string ToString(string prefix)
Parameters
Type Name Description
string prefix

The line prefix (typically used for indenting)

Returns
Type Description
string

The carrier contents.

See Also
IQuoteAgent

See Also

IQuoteAgent
© SuperOffice. All rights reserved.
SuperOffice |  Community |  Release Notes |  Privacy |  Site feedback |  Search Docs |  About Docs |  Contribute |  Back to top