/* Copyright 2010 Marcel Overdijk
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.googlecode.janrain4j.api.engage;

/**
 * TODO
 * 
 * @author Marcel Overdijk
 * @since 1.0
 */
public class Activity {

}

@@ -640,92 +640,2941 @@
 e;%0A%0A
-/**%0A * TODO%0A * %0A * @author Marcel Overdijk%0A * @since 1.0%0A */%0Apublic class Activity %7B%0A
+import java.net.URL;%0A%0A/**%0A * Represents an activity update to be posted to the user's activity stream.  %0A * %0A * @author Marcel Overdijk%0A * @since 1.0%0A */%0Apublic class Activity %7B%0A%0A    private URL url;%0A    private String action;%0A    private String userGeneratedContent;%0A    private String title;%0A    private String description;%0A    // TODO private ? actionLinks%0A    // TODO private ? media%0A    // TODO private ? properties%0A    %0A    public Activity(URL url, String action) %7B%0A        this.url = url;%0A        this.action = action;%0A    %7D%0A    %0A    /**%0A     * Returns the url of the resource being mentioned in the activity update%0A     */%0A    public URL getUrl() %7B%0A        return url;%0A    %7D%0A    %0A    /**%0A     * Sets the url of the resource being mentioned in the activity update%0A     * @param url The url.%0A     */%0A    public void setUrl(URL url) %7B%0A        this.url = url;%0A    %7D%0A    %0A    /**%0A     * Returns the string describing what the user did.%0A     */%0A    public String getAction() %7B%0A        return action;%0A    %7D%0A    %0A    /**%0A     * Sets the string describing what the user did, written in the third person. %0A     * Examples:%0A     * %3Cul%3E%0A     *   %3Cli%3E%22wrote a restaurant review%22%3C/li%3E%0A     *   %3Cli%3E%22posted a comment%22%3C/li%3E%0A     *   %3Cli%3E%22took a quiz%22%3C/li%3E%0A     * %3C/ul%3E%0A     * @param action The string describing what the user did.%0A     */%0A    public void setAction(String action) %7B%0A        this.action = action;%0A    %7D%0A    %0A    /**%0A     * Returns the string containing the user-supplied content.%0A     */%0A    public String getUserGeneratedContent() %7B%0A        return userGeneratedContent;%0A    %7D%0A    %0A    /**%0A     * Sets the string containing the user-supplied content, such as a comment %0A     * or the first paragraph of an article that the user wrote. Note that some %0A     * providers (Twitter in particular) may truncate this value.%0A     * @param userGeneratedContent The string containing the user-supplied content.%0A     */%0A    public void setUserGeneratedContent(String userGeneratedContent) %7B%0A        this.userGeneratedContent = userGeneratedContent;%0A    %7D%0A    %0A    /**%0A     * Returns the title of the resource being mentioned in the activity update.%0A     */%0A    public String getTitle() %7B%0A        return title;%0A    %7D%0A    %0A    /**%0A     * Sets the title of the resource being mentioned in the activity update.%0A     * @param title The title of the resource being mentioned in the activity update.%0A     */%0A    public void setTitle(String title) %7B%0A        this.title = title;%0A    %7D%0A    %0A    /**%0A     * Returns the description of the resource mentioned in the activity update.%0A     */%0A    public String getDescription() %7B%0A        return description;%0A    %7D%0A    %0A    /**%0A     * Sets the description of the resource mentioned in the activity update.%0A     * @param description The description of the resource mentioned in the activity update.%0A     */%0A    public void setDescription(String description) %7B%0A        this.description = description;%0A    %7D
 %0A%7D%0A

work in progress on activity class