コード例 #1
0
 public ChallengeViewModel()
 {
     User = new UserViewModel();
     Title = "some challenge";
     Image = new Uri("http://farm8.staticflickr.com/7343/11914204134_8de5a28ff7_z.jpg");
     Location = new ParseGeoPoint(34, 34);
     Distance = "3 miles";
     DistanceCount = 5;
     SolvedCount = 12;
     Created = DateTime.Now;
     CommentListViewModel = new CommentListViewModel();
 }
コード例 #2
0
 public CommentViewModel()
 {
     User = new UserViewModel();
     CommentText = "some comment text";
     Created = DateTime.Now;
 }