CMPUT301W13T06 / classproject

RecipeBot
http://cmput301w13t06.github.com/classproject/
2 stars 6 forks source link

Email Recipes to Users with Ability to Import #57

Open ethanmykytiuk opened 11 years ago

ethanmykytiuk commented 11 years ago

References Issue #003

Story(optional): As a user, I want to email other users recipes that they can immediately import into their recipe program.

Description: User can email recipes to other users, who can them import them onto their app

Actor: User, Receiver

Precondition: User chooses a recipe to email

Trigger: User selects to email recipes

Basic Flow:

1. User selects recipe
2. User chooses email
3. Receiver gets email
4. Receiver imports recipe 

Tests:

  1. Email goes through
  2. Everything imports for the receiver
f2prateek commented 11 years ago

Just writing this down so I don't forget. The flow is something like this.

  1. User selects share in the Recipe Activity. We put all the recipe information as text, but also attach a json object of the recipe as an extra.
  2. User emails.
  3. Receiving user views email. They'll see the recipe text, but also an attachment.
  4. When they click the attachment, our Broadcast receiver accepts the json file, parses it into a recipe, and start the activity with the recipe as an extra. We should probably save the recipe to the database automatically.
f2prateek commented 11 years ago

Part 1 was done (email the recipe). Part 2 needs to be done - that is import. Should be a simple matter of writing the Broadcast Receiver that supplies a Recipe to RecipeActivity