Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New Event + EventHandler model. #51

Open
avaidyam opened this issue May 12, 2017 · 0 comments
Open

New Event + EventHandler model. #51

avaidyam opened this issue May 12, 2017 · 0 comments
Assignees
Milestone

Comments

@avaidyam
Copy link
Owner

avaidyam commented May 12, 2017

Event shall describe an action in the Parrot UI.
EventHandler shall describe a response to an action in the Parrot UI.

Events:

  • FocusEvent: A person changed their focus (viewing or typing in a conversation). Includes self.
  • PresenceEvent: A person's presence changed. Includes self. Includes dis/connections.
  • MessageEvent: A message was sent or received. Includes self.
    • Properties: Group?, Background?, Sent?
  • InvitationEvent: A person was invited to join a conversation.
  • MentionEvent: A name or a keyword was mentioned in a conversation.

EventHandlers:

  • SoundEventHandler: Play a sound.
  • UserNotificationEventHandler: Show a user notification.
  • BezelEventHandler: Show a display bezel (like volume/brightness).
  • BacklightFlashEventHandler: Flash the (keyboard) backlight.
  • VibrationEventHandler: Vibrate the device.
  • LEDEventHandler: Flash the LED (not available).
  • ScriptEventHandler: Run a script.
  • BounceDockEventHandler: Bounce the app's dock icon.
  • SpeakEventHandler: Speak the event using TTS.

Maybe a SoundCenter class in Parrot that listens to all send/recv message notifications and plays sounds/notes?

@avaidyam avaidyam self-assigned this May 23, 2017
@avaidyam avaidyam modified the milestone: 1.0 May 23, 2017
@avaidyam avaidyam assigned avaidyam and unassigned avaidyam Jul 21, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant