You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
526 B
18 lines
526 B
4 weeks ago
|
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 };
|