blob: 3bece6a61428e63a6f13faf6ad279e365e885052 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
import * as METADATA_KEY from "../constants/metadata_keys";
var Metadata = (function () {
function Metadata(key, value) {
this.key = key;
this.value = value;
}
Metadata.prototype.toString = function () {
if (this.key === METADATA_KEY.NAMED_TAG) {
return "named: " + this.value.toString() + " ";
}
else {
return "tagged: { key:" + this.key.toString() + ", value: " + this.value + " }";
}
};
return Metadata;
}());
export { Metadata };
|