# Interface: ActivityInterface (/nqtr/index/interfaces/ActivityInterface)



Defined in: [src/interface/activity/ActivityInterface.ts:3](https://github.com/DRincs-Productions/nqtr/blob/db22fe9e7612d547ff25befcc444cf095348917d/src/interface/activity/ActivityInterface.ts#L3)

## Extends [#extends]

* `ActivityBaseInternalInterface`

## Properties [#properties]

### dateScheduling? [#datescheduling]

\> `readonly` `optional` **dateScheduling?**: [`DateSchedulingInterface`](/nqtr/index/interfaces/DateSchedulingInterface)

Defined in: [src/interface/activity/ActiveScheduling.ts:12](https://github.com/DRincs-Productions/nqtr/blob/db22fe9e7612d547ff25befcc444cf095348917d/src/interface/activity/ActiveScheduling.ts#L12)

Used to schedule what date it will be added and removed.

#### Inherited from [#inherited-from]

`ActivityBaseInternalInterface.dateScheduling`

***

### expired [#expired]

\> `readonly` **expired**: `boolean`

Defined in: [src/interface/activity/ActivityInterface.ts:19](https://github.com/DRincs-Productions/nqtr/blob/db22fe9e7612d547ff25befcc444cf095348917d/src/interface/activity/ActivityInterface.ts#L19)

Whether the activity/commitment is a deadline, so it will then be removed or hidden.

It **depends only on the date**, not the time. So if you set \{ dateScheduling: \{ from: 0, to: 3 }, timeSlot \{ from: 10, to: 20 } } the activity/commitment hidden or deleted on date 3 at 0.

#### Inherited from [#inherited-from-1]

`ActivityBaseInternalInterface.expired`

***

### id [#id]

\> `readonly` **id**: `string`

Defined in: [src/interface/activity/ActivityInterface.ts:9](https://github.com/DRincs-Productions/nqtr/blob/db22fe9e7612d547ff25befcc444cf095348917d/src/interface/activity/ActivityInterface.ts#L9)

The id of the activity/commitment.

#### Inherited from [#inherited-from-2]

`ActivityBaseInternalInterface.id`

***

### run [#run]

\> `readonly` **run**: [`OnRunAsyncFunction`](/nqtr/index/type-aliases/OnRunAsyncFunction)

Defined in: [src/interface/activity/ActivityInterface.ts:13](https://github.com/DRincs-Productions/nqtr/blob/db22fe9e7612d547ff25befcc444cf095348917d/src/interface/activity/ActivityInterface.ts#L13)

The function that is called when the activity/commitment is runned.

#### Inherited from [#inherited-from-3]

`ActivityBaseInternalInterface.run`

***

### timeSlot? [#timeslot]

\> `readonly` `optional` **timeSlot?**: [`TimeSchedulingInterface`](/nqtr/index/interfaces/TimeSchedulingInterface) | [`TimeSchedulingInterface`](/nqtr/index/interfaces/TimeSchedulingInterface)\[]

Defined in: [src/interface/activity/ActiveScheduling.ts:8](https://github.com/DRincs-Productions/nqtr/blob/db22fe9e7612d547ff25befcc444cf095348917d/src/interface/activity/ActiveScheduling.ts#L8)

Time slot in which activity/commitment will be active.

#### Inherited from [#inherited-from-4]

`ActivityBaseInternalInterface.timeSlot`

## Methods [#methods]

### isActive() [#isactive]

\> **isActive**(`options?`): `boolean`

Defined in: [src/interface/activity/ActivityInterface.ts:24](https://github.com/DRincs-Productions/nqtr/blob/db22fe9e7612d547ff25befcc444cf095348917d/src/interface/activity/ActivityInterface.ts#L24)

Whether the activity/commitment is active, so it will be shown in the routine and can be runned.

#### Parameters [#parameters]

##### options? [#options]

[`ActiveScheduling`](/nqtr/index/interfaces/ActiveScheduling)

The options to check if the activity/commitment is active.

#### Returns [#returns]

`boolean`

#### Inherited from [#inherited-from-5]

`ActivityBaseInternalInterface.isActive`
