Guest User

Untitled

a guest
Jan 23rd, 2018
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.79 KB | None | 0 0
  1. // handle photos from certain users, photos with a specific tag, etc.
  2. interface AlbumWidget {
  3. }
  4.  
  5. //
  6. interface Photo {
  7.         User getOwner();
  8.     List<String> getTags();
  9.         int getRating();
  10.     void addTag();
  11.         void removeTag();
  12. }
  13.  
  14. interface PhotoWidget {
  15. }
  16.  
  17. // functionality for a user
  18. interface User {
  19.     List<Photo> getPhotos();
  20.         List<Photo> getPrivatePhotos();
  21.         List<Photo> getPublicPhotos();
  22.         List<Photo> getPhotosByTag(String tag);
  23.         List<Device> getDevices(); //Possibly?
  24.         void addPhoto();
  25.         void removePhoto();
  26.         void addDevice();
  27.         void removeDevice();
  28. }
  29.  
  30. // Handles the device, if we are going to do that.
  31. interface Device {
  32.     String getMacAddress();
  33.     String getOperatingSystem();
  34. }
  35.  
  36. interface UserWidget {
  37. }
Add Comment
Please, Sign In to add comment