code: public PhotoType getType() {
          if (this.source != null) { return PhotoType.SOURCE; }
          if (this.file   != null) { return PhotoType.FILE;   }
          return null;
      }
docs: Get the type of this photo
  @return PhotoType the type of photo