コード例 #1
0
ファイル: ApiResponse.cs プロジェクト: codenesium/samples
 public void AddUser(ApiUserClientResponseModel item)
 {
     if (!this.Users.Any(x => x.Id == item.Id))
     {
         this.Users.Add(item);
     }
 }
コード例 #2
0
        public virtual ApiUserClientRequestModel MapClientResponseToRequest(
            ApiUserClientResponseModel response)
        {
            var request = new ApiUserClientRequestModel();

            request.SetProperties(
                response.AboutMe,
                response.AccountId,
                response.Age,
                response.CreationDate,
                response.DisplayName,
                response.DownVote,
                response.EmailHash,
                response.LastAccessDate,
                response.Location,
                response.Reputation,
                response.UpVote,
                response.View,
                response.WebsiteUrl);
            return(request);
        }
コード例 #3
0
 public void SetUserIdNavigation(ApiUserClientResponseModel value)
 {
     this.UserIdNavigation = value;
 }
コード例 #4
0
 public void SetLastEditorUserIdNavigation(ApiUserClientResponseModel value)
 {
     this.LastEditorUserIdNavigation = value;
 }