Skip to content

Commit

Permalink
Adding SerializedName annotations to Organization class. Related to #6
Browse files Browse the repository at this point in the history
  • Loading branch information
Rodrigo Alves committed Jul 7, 2013
1 parent f1066c6 commit fc04547
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion src/java/main/br/ufpe/cin/groundhog/Organization.java
Original file line number Diff line number Diff line change
@@ -1,21 +1,31 @@
package br.ufpe.cin.groundhog;

import java.util.Date;

import com.google.gson.annotations.SerializedName;
/**
* Represents a GitHub Organization in Groundhog
* @author gustavopinto, Rodrigo Alves
*/
public class Organization implements GitHubEntity {
@SerializedName("id")
private int id;

@SerializedName("login")
private String login;

@SerializedName("name")
private String name;

@SerializedName("location")
private String location;

@SerializedName("created_at")
private Date created_at;

@SerializedName("public_repos")
public int public_repos;

@SerializedName("public_gists")
public int public_gists;

/**
Expand Down

0 comments on commit fc04547

Please sign in to comment.