package com.growthbeat.model;

import java.util.Date;
import java.util.HashMap;
import java.util.Map;

import com.growthbeat.Context;

public class Account extends Model {

	private String id;
	private String name;
	private Date created;

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Date getCreated() {
		return created;
	}

	public void setCreated(Date created) {
		this.created = created;
	}

	public static Account findById(String id, Context context) {
		return get(context, String.format("1/accounts/%s", id), new HashMap<String, Object>(), Account.class);
	}

	public static Account create(String name, Context context) {
		Map<String, Object> params = new HashMap<String, Object>();
		params.put("name", name);
		return post(context, "1/accounts", params, Account.class);
	}

}

@@ -90,19 +90,91 @@
 va.util.
-Map
+List;%0Aimport java.util.Map;%0A%0Aimport org.codehaus.jackson.type.TypeReference
 ;%0A%0Aimpor
@@ -791,24 +791,274 @@
 class);%0A%09%7D%0A%0A
+%09public static List%3CAccount%3E findListById(String id, Context context) %7B%0A%09%09Map%3CString, Object%3E params = new HashMap%3CString, Object%3E();%0A%09%09params.put(%22id%22, id);%0A%09%09return get(context, %221/accounts/%22, params, new TypeReference%3CList%3CAccount%3E%3E() %7B%0A%09%09%7D);%0A%09%7D%0A%0A
 %09public stat

Add get list accout method.