@@ -0,0 +1,2905 @@
+/*%0A * Copyright (c) 2010-2011 Mark Allen.%0A * %0A * Permission is hereby granted, free of charge, to any person obtaining a copy%0A * of this software and associated documentation files (the %22Software%22), to deal%0A * in the Software without restriction, including without limitation the rights%0A * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell%0A * copies of the Software, and to permit persons to whom the Software is%0A * furnished to do so, subject to the following conditions:%0A * %0A * The above copyright notice and this permission notice shall be included in%0A * all copies or substantial portions of the Software.%0A * %0A * THE SOFTWARE IS PROVIDED %22AS IS%22, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR%0A * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,%0A * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE%0A * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER%0A * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,%0A * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN%0A * THE SOFTWARE.%0A */%0A%0Apackage com.restfb.types;%0A%0Aimport static com.restfb.util.DateUtils.toDateFromLongFormat;%0Aimport static java.util.Collections.unmodifiableList;%0A%0Aimport java.util.ArrayList;%0Aimport java.util.Date;%0Aimport java.util.List;%0A%0Aimport com.restfb.Facebook;%0A%0A/**%0A * Represents the %3Ca%0A * href=%22http://developers.facebook.com/docs/reference/api/status%22%3EStatus%0A * Message Graph API type%3C/a%3E.%0A * %0A * @author %3Ca href=%22http://restfb.com%22%3EMark Allen%3C/a%3E%0A * @since 1.6%0A */%0Apublic class StatusMessage extends NamedFacebookType %7B%0A  @Facebook%0A  private NamedFacebookType from;%0A%0A  @Facebook%0A  private String message;%0A%0A  @Facebook(%22updated_time%22)%0A  private String updatedTime;%0A%0A  @Facebook(contains = NamedFacebookType.class)%0A  private List%3CNamedFacebookType%3E likes = new ArrayList%3CNamedFacebookType%3E();%0A%0A  @Facebook(contains = Comment.class)%0A  private List%3CComment%3E comments = new ArrayList%3CComment%3E();%0A%0A  /**%0A   * The user who posted the message.%0A   * %0A   * @return The user who posted the message.%0A   */%0A  public NamedFacebookType getFrom() %7B%0A    return from;%0A  %7D%0A%0A  /**%0A   * The status message content.%0A   * %0A   * @return The status message content.%0A   */%0A  public String getMessage() %7B%0A    return message;%0A  %7D%0A%0A  /**%0A   * The time the message was published.%0A   * %0A   * @return The time the message was published.%0A   */%0A  public Date getUpdatedTime() %7B%0A    return toDateFromLongFormat(updatedTime);%0A  %7D%0A%0A  /**%0A   * The users that have liked this message.%0A   * %0A   * @return The users that have liked this message.%0A   */%0A  public List%3CNamedFacebookType%3E getLikes() %7B%0A    return unmodifiableList(likes);%0A  %7D%0A%0A  /**%0A   * All of the comments on this message.%0A   * %0A   * @return All of the comments on this message.%0A   */%0A  public List%3CComment%3E getComments() %7B%0A    return unmodifiableList(comments);%0A  %7D%0A%7D

Fix for Issue 78: Support new StatusMessage type