Skip to content

Commit

Permalink
Merge pull request #63 from Asana/mark-add-story-target
Browse files Browse the repository at this point in the history
Add target field to stories
  • Loading branch information
theaeolianmachine authored Feb 6, 2018
2 parents 751d92a + eb37501 commit c30ad4b
Show file tree
Hide file tree
Showing 13 changed files with 19 additions and 24 deletions.
3 changes: 1 addition & 2 deletions src/main/java/com/asana/models/Attachment.java
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package com.asana.models;

public class Attachment {
public String id;
public class Attachment extends Resource {
public String name;
}
3 changes: 1 addition & 2 deletions src/main/java/com/asana/models/CustomField.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

import java.util.Collection;

public class CustomField {
public class CustomField extends Resource {

public static class EnumOption {
public String id;
Expand All @@ -14,7 +14,6 @@ public static class EnumOption {
}


public String id;
public String name;
public String type;

Expand Down
3 changes: 1 addition & 2 deletions src/main/java/com/asana/models/CustomFieldSetting.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,8 @@

import java.util.Collection;

public class CustomFieldSetting {
public class CustomFieldSetting extends Resource {

public String id;
@SerializedName("is_important")
public Boolean isImportant;

Expand Down
3 changes: 1 addition & 2 deletions src/main/java/com/asana/models/Event.java
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@
import com.google.api.client.util.DateTime;

public class Event {
public class Entity {
public String id;
public class Entity extends Resource {
public String name;
}

Expand Down
3 changes: 1 addition & 2 deletions src/main/java/com/asana/models/Project.java
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@
import java.util.Collection;
import com.google.api.client.util.DateTime;

public class Project {
public String id;
public class Project extends Resource {
public String name;

public String notes;
Expand Down
5 changes: 5 additions & 0 deletions src/main/java/com/asana/models/Resource.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
package com.asana.models;

public class Resource {
public String id;
}
5 changes: 3 additions & 2 deletions src/main/java/com/asana/models/Story.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,12 @@

import com.google.api.client.util.DateTime;

public class Story {
public String id;
public class Story extends Resource {
public String text;
public String type;

public Resource target;

@SerializedName("created_by")
public User createdBy;
@SerializedName("created_at")
Expand Down
3 changes: 1 addition & 2 deletions src/main/java/com/asana/models/Tag.java
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@
import java.util.Collection;
import com.google.api.client.util.DateTime;

public class Tag {
public String id;
public class Tag extends Resource {
public String name;
public String notes;

Expand Down
3 changes: 1 addition & 2 deletions src/main/java/com/asana/models/Task.java
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

import java.util.Collection;

public class Task {
public class Task extends Resource {
public static class Membership {
public Project project;
public Task section;
Expand All @@ -16,7 +16,6 @@ public static class Heart {
public User user;
}

public String id;
public String name;
public String notes;

Expand Down
3 changes: 1 addition & 2 deletions src/main/java/com/asana/models/Team.java
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package com.asana.models;

public class Team {
public String id;
public class Team extends Resource {
public String name;

public Workspace organization;
Expand Down
3 changes: 1 addition & 2 deletions src/main/java/com/asana/models/User.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import java.util.Collection;

public class User {
public class User extends Resource {
public static class Photo {
public String image_128x128;
public String image_21x21;
Expand All @@ -11,7 +11,6 @@ public static class Photo {
public String image_60x60;
}

public String id;
public String name;

public String email;
Expand Down
3 changes: 1 addition & 2 deletions src/main/java/com/asana/models/Webhook.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@

import com.google.api.client.util.DateTime;

public class Webhook {
public String id;
public class Webhook extends Resource {
public Event.Entity resource;
public String target;
public boolean active;
Expand Down
3 changes: 1 addition & 2 deletions src/main/java/com/asana/models/Workspace.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@

import java.util.Collection;

public class Workspace {
public String id;
public class Workspace extends Resource {
public String name;

@SerializedName("email_domains")
Expand Down

0 comments on commit c30ad4b

Please sign in to comment.