Skip to content

Commit

Permalink
Add CreateStatus Request
Browse files Browse the repository at this point in the history
  • Loading branch information
azenla committed Aug 29, 2014
1 parent ce74628 commit 202bacd
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions lib/src/common/repo.dart
Original file line number Diff line number Diff line change
Expand Up @@ -587,3 +587,24 @@ class RepositoryStatus {
..context = input['context'];
}
}

class CreateStatus {
final String state;

@ApiName("target_url")
String targetUrl;

String description;
String context;

CreateStatus(this.state);

String toJSON() {
var map = {};
putValue("state", base, map);
putValue("target_url", targetUrl, map);
putValue("description", description, map);
putValue("context", context, map);
return JSON.encode(map);
}
}

0 comments on commit 202bacd

Please sign in to comment.