-
-
Notifications
You must be signed in to change notification settings - Fork 109
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
449f48e
commit 422e41e
Showing
13 changed files
with
128 additions
and
117 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import { IAfterSessionDeletedEventOptions } from '../interfaces/IDeviceFarmSession'; | ||
import { Event } from '../notifier/event'; | ||
import { EventListener } from '../notifier/event-listener'; | ||
import { EventConsumer } from '../types/event'; | ||
|
||
export class AfterSessionDeletedEvent extends Event<IAfterSessionDeletedEventOptions> { | ||
private static readonly EVENT_NAME: string = 'after-session-deleted'; | ||
|
||
constructor(options: IAfterSessionDeletedEventOptions) { | ||
super(AfterSessionDeletedEvent.EVENT_NAME, options); | ||
} | ||
|
||
static listener(handler: EventConsumer<IAfterSessionDeletedEventOptions>) { | ||
return new EventListener<IAfterSessionDeletedEventOptions>( | ||
AfterSessionDeletedEvent.EVENT_NAME, | ||
handler, | ||
); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import { IBeforeSessionCreateEventOptions } from '../interfaces/IDeviceFarmSession'; | ||
import { Event } from '../notifier/event'; | ||
import { EventListener } from '../notifier/event-listener'; | ||
import { EventConsumer } from '../types/event'; | ||
|
||
export class BeforeSessionCreatedEvent extends Event<IBeforeSessionCreateEventOptions> { | ||
private static readonly EVENT_NAME: string = 'before-session-create'; | ||
|
||
constructor(session: IBeforeSessionCreateEventOptions) { | ||
super(BeforeSessionCreatedEvent.EVENT_NAME, session); | ||
} | ||
|
||
static listener(handler: EventConsumer<IBeforeSessionCreateEventOptions>) { | ||
return new EventListener<IBeforeSessionCreateEventOptions>( | ||
BeforeSessionCreatedEvent.EVENT_NAME, | ||
handler, | ||
); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import { Event } from '../notifier/event'; | ||
import { EventListener } from '../notifier/event-listener'; | ||
import { EventConsumer } from '../types/event'; | ||
|
||
export class UnexpectedServerShutdownEvent extends Event<null> { | ||
private static readonly EVENT_NAME: string = 'unexpected-server-shutdown-event'; | ||
|
||
constructor() { | ||
super(UnexpectedServerShutdownEvent.EVENT_NAME, null); | ||
} | ||
|
||
static listener(handler: EventConsumer<null>) { | ||
return new EventListener<null>(UnexpectedServerShutdownEvent.EVENT_NAME, handler); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Submodule modules
updated
from d0f0a8 to fe9df8
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.