mirror of
https://github.com/standardnotes/server
synced 2026-07-14 00:01:54 -04:00
* feat(syncing-server): refactor syncing to decouple getting and saving items * fix(syncing-server): item hash http representation mapping * fix(syncing-server): remove redundant specs for inversify express controller
22 lines
604 B
TypeScript
22 lines
604 B
TypeScript
import { Result, Entity, UniqueEntityId } from '@standardnotes/domain-core'
|
|
|
|
import { StatisticMeasureProps } from './StatisticMeasureProps'
|
|
|
|
export class StatisticMeasure extends Entity<StatisticMeasureProps> {
|
|
get name(): string {
|
|
return this.props.name.value
|
|
}
|
|
|
|
get value(): number {
|
|
return this.props.value
|
|
}
|
|
|
|
private constructor(props: StatisticMeasureProps, id?: UniqueEntityId) {
|
|
super(props, id)
|
|
}
|
|
|
|
static create(props: StatisticMeasureProps, id?: UniqueEntityId): Result<StatisticMeasure> {
|
|
return Result.ok<StatisticMeasure>(new StatisticMeasure(props, id))
|
|
}
|
|
}
|