// Path: spring-social-yammer/src/main/java/org/springframework/social/yammer/api/YammerThread.java
// public static class ThreadStats{
// 	private Date firstReplyAt;
// 	private Date latestReplyAt;
// 	private long firstReplyId;
// 	private long latestReplyId;
// 	private int messageCount;
//        private int shares;
// 		
// 		
// 	public ThreadStats(Date firstReplyAt, Date latestReplyAt, long firstReplyId, long latestReplyId,
// 			int messageCount, int shares) {
// 		this.firstReplyAt = firstReplyAt;
// 		this.latestReplyAt = latestReplyAt;
// 		this.firstReplyId = firstReplyId;
// 		this.latestReplyId = latestReplyId;
// 		this.messageCount = messageCount;
//            this.shares=shares;
// 	}
// 
// 
// 	@Override
// 	public String toString() {
// 		return "ThreadStats [firstReplyAt=" + firstReplyAt + ", latestReplyAt=" + latestReplyAt + ", firstReplyId=" + firstReplyId
// 				+ ", latestReplyId=" + latestReplyId + ", messageCount=" + messageCount + ", shares=" + shares + "]";
// 	}
// 		
// 		
// 		
// }


import org.codehaus.jackson.annotate.JsonCreator;
import org.codehaus.jackson.annotate.JsonIgnoreProperties;
import org.codehaus.jackson.annotate.JsonProperty;
import org.springframework.social.yammer.api.YammerThread.ThreadStats;
/*
 * Copyright 2011 the original author or authors.
 *
 * 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 org.springframework.social.yammer.api.impl.json;


@JsonIgnoreProperties(ignoreUnknown=true)
abstract class ThreadReferenceMixin {
	
	@JsonCreator
	public ThreadReferenceMixin(
			@JsonProperty("id") long id, 
			@JsonProperty("url")String url, 
			@JsonProperty("web_url")String webUrl
			) {	}
	
	@JsonProperty("thread_starter_id")
	long threadStarterId;
	@JsonProperty("stats")
// Path: spring-social-yammer/src/main/java/org/springframework/social/yammer/api/YammerThread.java
// public static class ThreadStats{
// 	private Date firstReplyAt;
// 	private Date latestReplyAt;
// 	private long firstReplyId;
// 	private long latestReplyId;
// 	private int messageCount;
//        private int shares;
// 		
// 		
// 	public ThreadStats(Date firstReplyAt, Date latestReplyAt, long firstReplyId, long latestReplyId,
// 			int messageCount, int shares) {
// 		this.firstReplyAt = firstReplyAt;
// 		this.latestReplyAt = latestReplyAt;
// 		this.firstReplyId = firstReplyId;
// 		this.latestReplyId = latestReplyId;
// 		this.messageCount = messageCount;
//            this.shares=shares;
// 	}
// 
// 
// 	@Override
// 	public String toString() {
// 		return "ThreadStats [firstReplyAt=" + firstReplyAt + ", latestReplyAt=" + latestReplyAt + ", firstReplyId=" + firstReplyId
// 				+ ", latestReplyId=" + latestReplyId + ", messageCount=" + messageCount + ", shares=" + shares + "]";
// 	}
// 		
// 		
// 		
// }


// Path: spring-social-yammer/src/main/java/org/springframework/social/yammer/api/impl/json/ThreadReferenceMixin.java
import org.codehaus.jackson.annotate.JsonCreator;
import org.codehaus.jackson.annotate.JsonIgnoreProperties;
import org.codehaus.jackson.annotate.JsonProperty;
import org.springframework.social.yammer.api.YammerThread.ThreadStats;

/*
 * Copyright 2011 the original author or authors.
 *
 * 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 org.springframework.social.yammer.api.impl.json;


@JsonIgnoreProperties(ignoreUnknown=true)
abstract class ThreadReferenceMixin {
	
	@JsonCreator
	public ThreadReferenceMixin(
			@JsonProperty("id") long id, 
			@JsonProperty("url")String url, 
			@JsonProperty("web_url")String webUrl
			) {	}
	
	@JsonProperty("thread_starter_id")
	long threadStarterId;
	@JsonProperty("stats")
	ThreadStats stats;