Esempio n. 1
0
 public void AddUser(ApiUserClientResponseModel item)
 {
     if (!this.Users.Any(x => x.Id == item.Id))
     {
         this.Users.Add(item);
     }
 }
Esempio n. 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);
        }
 public void SetUserIdNavigation(ApiUserClientResponseModel value)
 {
     this.UserIdNavigation = value;
 }
Esempio n. 4
0
 public void SetLastEditorUserIdNavigation(ApiUserClientResponseModel value)
 {
     this.LastEditorUserIdNavigation = value;
 }