예제 #1
0
        public void Setup(Int32 answerId)
        {
            //if (AnswerId > 0)
            //{
            //    VmHelper.SaveStates(this, AnswerId.ToString());
            //}

            AnswerId = answerId;

            //VmHelper.ResumeStates(this, AnswerId.ToString());

            if (LoginUser.Current.Profile == null)
            {
                return;
            }

            _isDetailLoaded = false;
            AnswerId        = answerId;
            Detail          = null;
            Relationship    = new AnswerRelationship();

            Comments = new IncrementalLoading <Comment>(GetAnswerCommentsMethod,
                                                        String.Format("/answers/{0}/comments", AnswerId), "offset=0&limit=20", false);

            Collections = new IncrementalLoading <Collection>(GetPersonCollectionsMethod,
                                                              String.Format("/people/{0}/collections", LoginUser.Current.Profile.Id), "limit=20&offset=0", false);
        }
예제 #2
0
 public AnswerRelationshipResult(AnswerRelationship result)
 {
     Result = result;
 }