sammarks

CodeTitan's JSON

Jun 10th, 2011
260
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.80 KB | None | 0 0
  1. public Ticket(IJSonObject json)
  2.         {
  3.             _id = json["id"].Int32Value;
  4.             _name = json["name"].StringValue;
  5.             _description = json["description"].StringValue;
  6.             _projectID = json["projectID"].Int32Value;
  7.             _author = json["author"].StringValue;
  8.             _assignedTo = json["assignedTo"].StringValue;
  9.             _priority = new Priority(json["priority"]);
  10.             _state = new State(json["state"]);
  11.             _changes = json["changes"].Int32Value;
  12.             _lastUpdated = json["lastUpdated"].DateTimeValue;
  13.             _milestone = new Milestone(json["milestone"]);
  14.             _startDate = json["startDate"].DateTimeValue;
  15.             _endDate = json["endDate"].DateTimeValue;
  16.             _closed = json["closed"].BooleanValue;
  17.         }
Advertisement
Add Comment
Please, Sign In to add comment