OpenMarshal/npm-WebDAV-Server

View on GitHub
src/resource/v2/lock/LockType.ts

Summary

Maintainability
A
40 mins
Test Coverage

export class LockType
{
    static Write = new LockType('write')

    constructor(public value : string)
    { }

    toString()
    {
        return this.value;
    }

    isSame(scope : LockType) : boolean
    {
        return scope.value.toLowerCase() === this.value.toLowerCase();
    }
}