Class TemplateRole
Template role DTO.
[DataContract]
public class TemplateRole
- Inheritance
-
TemplateRole
- Inherited Members
Constructors
TemplateRole()
Initializes a new instance of the TemplateRole class.
public TemplateRole()
TemplateRole(int, string, string, string, int, SignerType, List<FormField>, string, ImposeAuthentication, bool, bool, Locales)
Initializes a new instance of the TemplateRole class.
public TemplateRole(int roleIndex, string name, string defaultSignerName = null, string defaultSignerEmail = null, int signerOrder = 0, SignerType signerType = SignerType.Signer, List<FormField> formFields = null, string hostEmail = null, ImposeAuthentication imposeAuthentication = ImposeAuthentication.None, bool allowRoleEdit = true, bool allowRoleDelete = true, Locales locale = Locales.EN)
Parameters
roleIndexintGets or sets the role index. (required).
namestringGets or sets the name. (required).
defaultSignerNamestringGets or sets the role signer name.
defaultSignerEmailstringGets or sets the role signer email address.
signerOrderintGets or sets the signer order.
signerTypeSignerTypesignerType.
formFieldsList<FormField>Gets or sets the formFields.
hostEmailstringGets or sets the hostEmail.
imposeAuthenticationImposeAuthenticationGets or sets the authentication type of template.
allowRoleEditboolGets or sets the allow permission to role edit option of template.
allowRoleDeleteboolGets or sets the allow permission to role delete option of template.
localeLocalesGets or sets the locale.
TemplateRole(string, int, string, string, int, SignerType, List<FormField>, string, Languages, ImposeAuthentication, bool, bool)
Initializes a new instance of the TemplateRole class.
[Obsolete("The language-based constructor is deprecated. Please use the new constructor: TemplateRole(int roleIndex, string name, string defaultSignerName = default, string defaultSignerEmail = default, int signerOrder = default, SignerType signerType = SignerType.Signer, List<FormField> formFields = default, string hostEmail = default, ImposeAuthentication imposeAuthentication = ImposeAuthentication.None, bool allowRoleEdit = true, bool allowRoleDelete = true, Locales locale = Locales.EN)")]
public TemplateRole(string name, int index, string defaultSignerName = null, string defaultSignerEmail = null, int signerOrder = 0, SignerType signerType = SignerType.Signer, List<FormField> formFields = null, string hostEmail = null, Languages language = Languages.None, ImposeAuthentication imposeAuthentication = ImposeAuthentication.None, bool allowRoleEdit = true, bool allowRoleDelete = true)
Parameters
namestringGets or sets the name. (required).
indexintGets or sets the role index. (required).
defaultSignerNamestringGets or sets the role signer name. (required).
defaultSignerEmailstringGets or sets the role signer email address. (required).
signerOrderintGets or sets the signer order..
signerTypeSignerTypesignerType.
formFieldsList<FormField>Gets or sets the formFields..
hostEmailstringGets or sets the hostEmail.
languageLanguagesGets or sets the Language.
imposeAuthenticationImposeAuthenticationGets or sets the authentication type of template.
allowRoleEditboolGets or sets the allow permission to role edit option of template.
allowRoleDeleteboolGets or sets the allow permission to role delete option of template.
Properties
AllowFieldConfiguration
Gets or sets a value indicating whether gets or sets the allow field configuration.
[DataMember(Name = "allowFieldConfiguration", EmitDefaultValue = false)]
public bool AllowFieldConfiguration { get; set; }
Property Value
AllowRoleDelete
Gets or sets a value indicating whether the enable allow role delete option is enabled or disabled.
[DataMember(Name = "allowRoleDelete", EmitDefaultValue = true)]
public bool AllowRoleDelete { get; set; }
Property Value
AllowRoleEdit
Gets or sets a value indicating whether the allow role edit option is enabled or disabled.
[DataMember(Name = "allowRoleEdit", EmitDefaultValue = true)]
public bool AllowRoleEdit { get; set; }
Property Value
DefaultSignerEmail
Gets or sets the Default signer Email.
[DataMember(Name = "defaultSignerEmail", EmitDefaultValue = false)]
public string DefaultSignerEmail { get; set; }
Property Value
DefaultSignerName
Gets or sets the Default Signer Name.
[DataMember(Name = "defaultSignerName", EmitDefaultValue = false)]
public string DefaultSignerName { get; set; }
Property Value
DeliveryMode
Gets or Sets the delivery mode of the signer.
[DataMember(Name = "deliveryMode", EmitDefaultValue = true)]
public DeliveryMode DeliveryMode { get; set; }
Property Value
EnableQes
Gets or sets a value indicating whether to enable qualified electronic signature the document signer.
[DataMember(Name = "enableQes", EmitDefaultValue = false)]
public bool? EnableQes { get; set; }
Property Value
- bool?
FormFields
Gets or sets document Form fields such as Sign, Checkbox, Radio buttons etc.
[DataMember(Name = "formFields", EmitDefaultValue = true)]
public IEnumerable<FormField> FormFields { get; set; }
Property Value
HostEmail
Gets or sets the default Host Email.
[DataMember(Name = "hostEmail", EmitDefaultValue = false)]
public string HostEmail { get; set; }
Property Value
ImposeAuthentication
Gets or sets the Authentication Type such as None ,Access Code, EmailOTP.
[DataMember(Name = "imposeAuthentication", EmitDefaultValue = true)]
public ImposeAuthentication ImposeAuthentication { get; set; }
Property Value
Index
Gets or sets the Index value.
[DataMember(Name = "index", EmitDefaultValue = false)]
public int Index { get; set; }
Property Value
Language
Gets or sets Languages such as English, French, Spanish, German.
[DataMember(Name = "language", EmitDefaultValue = true)]
[Obsolete("language is deprecated, please use locale instead")]
public Languages Language { get; set; }
Property Value
Locale
Gets or sets locale such as EN, FR, ES.
[DataMember(Name = "locale", EmitDefaultValue = true)]
public Locales Locale { get; set; }
Property Value
Name
Gets or sets the role Name.
[DataMember(Name = "name", EmitDefaultValue = false)]
public string Name { get; set; }
Property Value
PhoneNumber
Gets or sets the phone number.
[DataMember(Name = "phoneNumber", EmitDefaultValue = false)]
public PhoneNumber PhoneNumber { get; set; }
Property Value
RecipientNotificationSettings
Gets or sets the Recipient Notification Settings.
[DataMember(Name = "recipientNotificationSettings", EmitDefaultValue = false)]
public RecipientNotificationSettings RecipientNotificationSettings { get; set; }
Property Value
SignerOrder
Gets or sets the signer order value.
[DataMember(Name = "signerOrder", EmitDefaultValue = false)]
public int SignerOrder { get; set; }
Property Value
SignerType
Gets or sets the signer type.
Defaults to Signer.
[DataMember(Name = "signerType", EmitDefaultValue = false)]
public SignerType SignerType { get; set; }
Property Value
Methods
ToJson()
Returns the JSON string presentation of the object.
public virtual string ToJson()
Returns
- string
JSON string presentation of the object.