Skip to content

Instantly share code, notes, and snippets.

@mohamed-gara
Created February 26, 2022 23:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mohamed-gara/233e1366c54bb7f29522d69daf87d291 to your computer and use it in GitHub Desktop.
Save mohamed-gara/233e1366c54bb7f29522d69daf87d291 to your computer and use it in GitHub Desktop.
interface CustomerAllocatedCapacity {
val id: CustomerAllocatedCapacityId
val allocationStartInstant: Instant
val allocationEndInstant: Instant
val quantity: EnergyQuantity
fun add(other: CustomerAllocatedCapacity): CustomerAllocatedCapacity
fun subtract(other: CustomerAllocatedCapacity): CustomerAllocatedCapacity
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment