/**
 *  写真オブジェクト
 */
function Photo(src, thumbnail, original, comment, active) {
  this.src       = src;
  this.thumbnail = thumbnail;
  this.original  = original;
  this.comment   = comment;
  this.active    = active;
}
// toStringメソッド
Photo.prototype.toString = function() {
  return 'src=' + this.src + ',thumbnail=' + this.thumbnail + ',original=' + this.original + ',comment=' + this.comment;
}

// srcのgetter
Photo.prototype.getSrc = function() {
  return this.src;
}
// thumbnailのgetter
Photo.prototype.getThumbnail = function() {
  return this.thumbnail;
}
// originalのgetter
Photo.prototype.getOriginal = function() {
  return this.original;
}
// commentのgetter
Photo.prototype.getComment = function() {
  return this.comment;
}
// isActive
Photo.prototype.isActive = function() {
  return this.active;
}
Photo.prototype.setActive = function(active) {
  this.active = active;
}