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

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

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

import org.codehaus.jackson.annotate.JsonProperty;

import org.joda.time.ReadableDateTime;

public class Comment extends ContentItemBase
{
    @JsonProperty protected ReadableDateTime updatedDate;
    protected String description;

    @JsonProperty protected Key> attachedTo;
    @JsonProperty protected String attachedToType;
    @JsonProperty protected Key attachedToAuthor;

    // note: non-public since it's only to be called by deserializer:
    protected Comment() { }

    /**
     * Constructor used for purpose of creating new comments.
     */
    public Comment(Key> attachedTo, String description)
    {
        this.attachedTo = attachedTo;
        this.description = description;
    }
    
    // Mutable properties:
    
    public String getDescription() { return description; }
    public void setDescription(String s) { description = s; }

    // Others:

    public ReadableDateTime getUpdatedDate() { return updatedDate; }
    public Key> getAttachedTo() { return attachedTo; }
    public String getAttachedToType() { return attachedToType; }
    public Key getAttachedToAuthor() { return attachedToAuthor; }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy