Esempio n. 1
0
 public void AddMachine(ApiMachineResponseModel item)
 {
     if (!this.Machines.Any(x => x.Id == item.Id))
     {
         this.Machines.Add(item);
     }
 }
        public virtual ApiMachineRequestModel MapResponseToRequest(
            ApiMachineResponseModel response)
        {
            var request = new ApiMachineRequestModel();

            request.SetProperties(
                response.CommunicationStyle,
                response.EnvironmentIds,
                response.Fingerprint,
                response.IsDisabled,
                response.JSON,
                response.MachinePolicyId,
                response.Name,
                response.RelatedDocumentIds,
                response.Roles,
                response.TenantIds,
                response.TenantTags,
                response.Thumbprint);
            return(request);
        }