internal void UpdateFrom(Proxy_PVS_server proxy) { uuid = proxy.uuid == null ? null : proxy.uuid; addresses = proxy.addresses == null ? new string[] {} : (string [])proxy.addresses; first_port = proxy.first_port == null ? 0 : long.Parse(proxy.first_port); last_port = proxy.last_port == null ? 0 : long.Parse(proxy.last_port); site = proxy.site == null ? null : XenRef <PVS_site> .Create(proxy.site); }
public Proxy_PVS_server ToProxy() { Proxy_PVS_server result_ = new Proxy_PVS_server(); result_.uuid = uuid ?? ""; result_.addresses = addresses; result_.first_port = first_port.ToString(); result_.last_port = last_port.ToString(); result_.site = site ?? ""; return(result_); }
public Proxy_PVS_server ToProxy() { Proxy_PVS_server result_ = new Proxy_PVS_server(); result_.uuid = (uuid != null) ? uuid : ""; result_.addresses = addresses; result_.first_port = first_port.ToString(); result_.last_port = last_port.ToString(); result_.site = (site != null) ? site : ""; return(result_); }
/// <summary> /// Creates a new PVS_server from a Proxy_PVS_server. /// </summary> /// <param name="proxy"></param> public PVS_server(Proxy_PVS_server proxy) { UpdateFrom(proxy); }
/// <summary> /// Creates a new PVS_server from a Proxy_PVS_server. /// </summary> /// <param name="proxy"></param> public PVS_server(Proxy_PVS_server proxy) { this.UpdateFromProxy(proxy); }