All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.ning.api.client.item.Photo Maven / Gradle / Ivy

There is a newer version: 0.5.1
Show newest version
package com.ning.api.client.item;

import java.net.URI;

import org.codehaus.jackson.annotate.JsonProperty;
import org.joda.time.ReadableDateTime;

import java.util.*;

public class Photo
    extends ContentItemBase
    implements Cloneable
{
    // Read/write properties:

    protected String description;
    protected String title;
    protected Visibility visibility;

    protected Boolean approved;

    // Read-only properties:
    @JsonProperty protected ReadableDateTime updatedDate;
    /**
     * Link to browser-viewable representation of the item
     */
    @JsonProperty protected URI url;
    @JsonProperty protected Integer commentCount;
    @JsonProperty protected List tags;
    
    public Photo() { this(null); }
    public Photo(Key id) { this.id = id; }

    /**
     * Let's expose clone() for convenient immutable/fluent style pattern by
     * builders
     */
    public Photo clone() {
        try {
            return (Photo) super.clone();
        } catch (CloneNotSupportedException e) {
            throw new Error(e);
        }
    }
    
    // Read/write properties:
    
    public String getDescription() { return description; }
    public void setDescription(String s) { description = s; }

    public String getTitle() { return title; }
    public void setTitle(String s) { title = s; }

    public Visibility getVisibility() { return visibility; }
    public void setVisibility(Visibility v) { visibility = v; }
    
    public Boolean isApproved() { return approved; }
    public void setApproved(Boolean b) { approved = b; }
    
    
    // Read-only properties

    public URI getUrl() { return url; }
    public Integer getCommentCount() { return commentCount; }
    public List getTags() { return tags; }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy