@fontoxml/fontoxml-development-tools
Version:
Development tools for Fonto.
16 lines (14 loc) • 601 B
JavaScript
export const STATUS_OK = 'ok';
export const STATUS_NOT_FOUND = 'not_found';
export const STATUS_FORBIDDEN = 'forbidden';
export const STATUS_OUT_OF_SYNC = 'out_of_sync';
export const STATUS_CREATED = 'created';
// TODO: Implement this properly. i.e. Create a separate Reply & Annotation result class instead of reusing this. Annotations don't need the revisionId property.
export default class Result {
constructor(status, annotationId, annotation, revisionId = null) {
this.status = status;
this.annotationId = annotationId;
this.annotation = annotation;
this.revisionId = revisionId;
}
}