public void AddMachine(ApiMachineClientResponseModel item) { if (!this.Machines.Any(x => x.Id == item.Id)) { this.Machines.Add(item); } }
public virtual ApiMachineClientRequestModel MapClientResponseToRequest( ApiMachineClientResponseModel response) { var request = new ApiMachineClientRequestModel(); request.SetProperties( response.Description, response.JwtKey, response.LastIpAddress, response.MachineGuid, response.Name); return(request); }
public virtual ApiMachineClientResponseModel MapClientRequestToResponse( int id, ApiMachineClientRequestModel request) { var response = new ApiMachineClientResponseModel(); response.SetProperties(id, request.Description, request.JwtKey, request.LastIpAddress, request.MachineGuid, request.Name); return(response); }
public void SetAssignedMachineIdNavigation(ApiMachineClientResponseModel value) { this.AssignedMachineIdNavigation = value; }