2323package com .aspose .asposecloudpdfandroid .model ;
2424
2525import java .util .Objects ;
26+ import com .aspose .asposecloudpdfandroid .model .Color ;
27+ import com .aspose .asposecloudpdfandroid .model .Rotation ;
28+ import com .aspose .asposecloudpdfandroid .model .SignatureSubjectNameElements ;
2629import com .google .gson .TypeAdapter ;
2730import com .google .gson .annotations .JsonAdapter ;
2831import com .google .gson .annotations .SerializedName ;
3134import io .swagger .annotations .ApiModel ;
3235import io .swagger .annotations .ApiModelProperty ;
3336import java .io .IOException ;
37+ import java .util .ArrayList ;
38+ import java .util .List ;
3439
3540/**
3641 * An abstract class which represents signature custom appearance object.
@@ -44,6 +49,9 @@ public class SignatureCustomAppearance {
4449 @ SerializedName ("FontSize" )
4550 private Double fontSize = null ;
4651
52+ @ SerializedName ("Rotation" )
53+ private Rotation rotation = null ;
54+
4755 @ SerializedName ("ShowContactInfo" )
4856 private Boolean showContactInfo = null ;
4957
@@ -74,6 +82,18 @@ public class SignatureCustomAppearance {
7482 @ SerializedName ("DateTimeFormat" )
7583 private String dateTimeFormat = null ;
7684
85+ @ SerializedName ("BackgroundColor" )
86+ private Color backgroundColor = null ;
87+
88+ @ SerializedName ("ForegroundColor" )
89+ private Color foregroundColor = null ;
90+
91+ @ SerializedName ("UseDigitalSubjectFormat" )
92+ private Boolean useDigitalSubjectFormat = null ;
93+
94+ @ SerializedName ("DigitalSubjectFormat" )
95+ private List <SignatureSubjectNameElements > digitalSubjectFormat = null ;
96+
7797 public SignatureCustomAppearance fontFamilyName (String fontFamilyName ) {
7898 this .fontFamilyName = fontFamilyName ;
7999 return this ;
@@ -101,7 +121,7 @@ public SignatureCustomAppearance fontSize(Double fontSize) {
101121 * Gets/sets font size. Default value: 10.
102122 * @return fontSize
103123 **/
104- @ ApiModelProperty (required = true , value = "Gets/sets font size. Default value: 10." )
124+ @ ApiModelProperty (value = "Gets/sets font size. Default value: 10." )
105125 public Double getFontSize () {
106126 return fontSize ;
107127 }
@@ -110,6 +130,24 @@ public void setFontSize(Double fontSize) {
110130 this .fontSize = fontSize ;
111131 }
112132
133+ public SignatureCustomAppearance rotation (Rotation rotation ) {
134+ this .rotation = rotation ;
135+ return this ;
136+ }
137+
138+ /**
139+ * Gets or sets signature rotation.
140+ * @return rotation
141+ **/
142+ @ ApiModelProperty (required = true , value = "Gets or sets signature rotation." )
143+ public Rotation getRotation () {
144+ return rotation ;
145+ }
146+
147+ public void setRotation (Rotation rotation ) {
148+ this .rotation = rotation ;
149+ }
150+
113151 public SignatureCustomAppearance showContactInfo (Boolean showContactInfo ) {
114152 this .showContactInfo = showContactInfo ;
115153 return this ;
@@ -290,6 +328,86 @@ public void setDateTimeFormat(String dateTimeFormat) {
290328 this .dateTimeFormat = dateTimeFormat ;
291329 }
292330
331+ public SignatureCustomAppearance backgroundColor (Color backgroundColor ) {
332+ this .backgroundColor = backgroundColor ;
333+ return this ;
334+ }
335+
336+ /**
337+ * Gets/sets background color.
338+ * @return backgroundColor
339+ **/
340+ @ ApiModelProperty (value = "Gets/sets background color." )
341+ public Color getBackgroundColor () {
342+ return backgroundColor ;
343+ }
344+
345+ public void setBackgroundColor (Color backgroundColor ) {
346+ this .backgroundColor = backgroundColor ;
347+ }
348+
349+ public SignatureCustomAppearance foregroundColor (Color foregroundColor ) {
350+ this .foregroundColor = foregroundColor ;
351+ return this ;
352+ }
353+
354+ /**
355+ * Gets/sets foreground color.
356+ * @return foregroundColor
357+ **/
358+ @ ApiModelProperty (value = "Gets/sets foreground color." )
359+ public Color getForegroundColor () {
360+ return foregroundColor ;
361+ }
362+
363+ public void setForegroundColor (Color foregroundColor ) {
364+ this .foregroundColor = foregroundColor ;
365+ }
366+
367+ public SignatureCustomAppearance useDigitalSubjectFormat (Boolean useDigitalSubjectFormat ) {
368+ this .useDigitalSubjectFormat = useDigitalSubjectFormat ;
369+ return this ;
370+ }
371+
372+ /**
373+ * Gets/sets subject format usage.
374+ * @return useDigitalSubjectFormat
375+ **/
376+ @ ApiModelProperty (required = true , value = "Gets/sets subject format usage." )
377+ public Boolean isUseDigitalSubjectFormat () {
378+ return useDigitalSubjectFormat ;
379+ }
380+
381+ public void setUseDigitalSubjectFormat (Boolean useDigitalSubjectFormat ) {
382+ this .useDigitalSubjectFormat = useDigitalSubjectFormat ;
383+ }
384+
385+ public SignatureCustomAppearance digitalSubjectFormat (List <SignatureSubjectNameElements > digitalSubjectFormat ) {
386+ this .digitalSubjectFormat = digitalSubjectFormat ;
387+ return this ;
388+ }
389+
390+ public SignatureCustomAppearance addDigitalSubjectFormatItem (SignatureSubjectNameElements digitalSubjectFormatItem ) {
391+ if (this .digitalSubjectFormat == null ) {
392+ this .digitalSubjectFormat = new ArrayList <SignatureSubjectNameElements >();
393+ }
394+ this .digitalSubjectFormat .add (digitalSubjectFormatItem );
395+ return this ;
396+ }
397+
398+ /**
399+ * Gets/sets subject format.
400+ * @return digitalSubjectFormat
401+ **/
402+ @ ApiModelProperty (value = "Gets/sets subject format." )
403+ public List <SignatureSubjectNameElements > getDigitalSubjectFormat () {
404+ return digitalSubjectFormat ;
405+ }
406+
407+ public void setDigitalSubjectFormat (List <SignatureSubjectNameElements > digitalSubjectFormat ) {
408+ this .digitalSubjectFormat = digitalSubjectFormat ;
409+ }
410+
293411
294412 @ Override
295413 public boolean equals (java .lang .Object o ) {
@@ -302,6 +420,7 @@ public boolean equals(java.lang.Object o) {
302420 SignatureCustomAppearance signatureCustomAppearance = (SignatureCustomAppearance ) o ;
303421 return Objects .equals (this .fontFamilyName , signatureCustomAppearance .fontFamilyName ) &&
304422 Objects .equals (this .fontSize , signatureCustomAppearance .fontSize ) &&
423+ Objects .equals (this .rotation , signatureCustomAppearance .rotation ) &&
305424 Objects .equals (this .showContactInfo , signatureCustomAppearance .showContactInfo ) &&
306425 Objects .equals (this .showReason , signatureCustomAppearance .showReason ) &&
307426 Objects .equals (this .showLocation , signatureCustomAppearance .showLocation ) &&
@@ -311,12 +430,16 @@ public boolean equals(java.lang.Object o) {
311430 Objects .equals (this .digitalSignedLabel , signatureCustomAppearance .digitalSignedLabel ) &&
312431 Objects .equals (this .dateSignedAtLabel , signatureCustomAppearance .dateSignedAtLabel ) &&
313432 Objects .equals (this .dateTimeLocalFormat , signatureCustomAppearance .dateTimeLocalFormat ) &&
314- Objects .equals (this .dateTimeFormat , signatureCustomAppearance .dateTimeFormat );
433+ Objects .equals (this .dateTimeFormat , signatureCustomAppearance .dateTimeFormat ) &&
434+ Objects .equals (this .backgroundColor , signatureCustomAppearance .backgroundColor ) &&
435+ Objects .equals (this .foregroundColor , signatureCustomAppearance .foregroundColor ) &&
436+ Objects .equals (this .useDigitalSubjectFormat , signatureCustomAppearance .useDigitalSubjectFormat ) &&
437+ Objects .equals (this .digitalSubjectFormat , signatureCustomAppearance .digitalSubjectFormat );
315438 }
316439
317440 @ Override
318441 public int hashCode () {
319- return Objects .hash (fontFamilyName , fontSize , showContactInfo , showReason , showLocation , contactInfoLabel , reasonLabel , locationLabel , digitalSignedLabel , dateSignedAtLabel , dateTimeLocalFormat , dateTimeFormat );
442+ return Objects .hash (fontFamilyName , fontSize , rotation , showContactInfo , showReason , showLocation , contactInfoLabel , reasonLabel , locationLabel , digitalSignedLabel , dateSignedAtLabel , dateTimeLocalFormat , dateTimeFormat , backgroundColor , foregroundColor , useDigitalSubjectFormat , digitalSubjectFormat );
320443 }
321444
322445
@@ -327,6 +450,7 @@ public String toString() {
327450
328451 sb .append (" fontFamilyName: " ).append (toIndentedString (fontFamilyName )).append ("\n " );
329452 sb .append (" fontSize: " ).append (toIndentedString (fontSize )).append ("\n " );
453+ sb .append (" rotation: " ).append (toIndentedString (rotation )).append ("\n " );
330454 sb .append (" showContactInfo: " ).append (toIndentedString (showContactInfo )).append ("\n " );
331455 sb .append (" showReason: " ).append (toIndentedString (showReason )).append ("\n " );
332456 sb .append (" showLocation: " ).append (toIndentedString (showLocation )).append ("\n " );
@@ -337,6 +461,10 @@ public String toString() {
337461 sb .append (" dateSignedAtLabel: " ).append (toIndentedString (dateSignedAtLabel )).append ("\n " );
338462 sb .append (" dateTimeLocalFormat: " ).append (toIndentedString (dateTimeLocalFormat )).append ("\n " );
339463 sb .append (" dateTimeFormat: " ).append (toIndentedString (dateTimeFormat )).append ("\n " );
464+ sb .append (" backgroundColor: " ).append (toIndentedString (backgroundColor )).append ("\n " );
465+ sb .append (" foregroundColor: " ).append (toIndentedString (foregroundColor )).append ("\n " );
466+ sb .append (" useDigitalSubjectFormat: " ).append (toIndentedString (useDigitalSubjectFormat )).append ("\n " );
467+ sb .append (" digitalSubjectFormat: " ).append (toIndentedString (digitalSubjectFormat )).append ("\n " );
340468 sb .append ("}" );
341469 return sb .toString ();
342470 }
0 commit comments