-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #63 from ilovepdf/develop
Develop
- Loading branch information
Showing
5 changed files
with
136 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Text; | ||
|
||
namespace iLovePdf.Model.TaskParams | ||
{ | ||
// This class is designed so that every programmer adapts it to the additional tools with specific needs and uses the SetValue method | ||
public abstract class BaseExtraUploadParams | ||
{ | ||
protected Dictionary<string, string> extraParams = new Dictionary<string, string>(); | ||
|
||
protected void SetValue(string key, string value) | ||
{ | ||
extraParams[key] = value; | ||
} | ||
|
||
public Dictionary<string, string> GetValues() | ||
{ | ||
return new Dictionary<string, string>(extraParams); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Text; | ||
|
||
namespace iLovePdf.Model.TaskParams | ||
{ | ||
public class SignExtraUploadParams : BaseExtraUploadParams | ||
{ | ||
public SignExtraUploadParams SetPdfInfo(bool activate = true) | ||
{ | ||
extraParams["pdfinfo"] = activate ? "1" : "0"; | ||
return this; | ||
} | ||
|
||
public SignExtraUploadParams SetPdfForms(bool activate = true) | ||
{ | ||
SetPdfInfo(true); | ||
extraParams["pdfforms"] = activate ? "1" : "0"; | ||
return this; | ||
} | ||
} | ||
} |