aboutsummaryrefslogtreecommitdiffstats
path: root/lang/js/src/Message.js
diff options
context:
space:
mode:
Diffstat (limited to 'lang/js/src/Message.js')
-rw-r--r--lang/js/src/Message.js14
1 files changed, 14 insertions, 0 deletions
diff --git a/lang/js/src/Message.js b/lang/js/src/Message.js
index 6a59c3e0..932212a6 100644
--- a/lang/js/src/Message.js
+++ b/lang/js/src/Message.js
@@ -41,6 +41,7 @@ export class GPGME_Message {
constructor(operation){
this.operation = operation;
+ this._expected = 'string';
}
set operation (op){
@@ -58,6 +59,19 @@ export class GPGME_Message {
return this._msg.op;
}
+ set expected(string){
+ if (string === 'base64'){
+ this._expected = 'base64';
+ }
+ }
+
+ get expected() {
+ if (this._expected === "base64"){
+ return this._expected;
+ }
+ return "string";
+ }
+
/**
* Sets a parameter for the message. Note that the operation has to be set
* first, to be able to check if the parameter is permittted