internal void UpdateFromProxy(Proxy_Console proxy) { this.uuid = (proxy.uuid == null) ? null : proxy.uuid; this.protocol = (proxy.protocol == null) ? console_protocol.vt100 : ((console_protocol)Helper.EnumParseDefault(typeof(console_protocol), proxy.protocol)); this.location = (proxy.location == null) ? null : proxy.location; this.VM = (proxy.VM == null) ? null : XenRef <WinAPI.VM> .Create(proxy.VM); this.other_config = (proxy.other_config == null) ? null : Maps.convert_from_proxy_string_string(proxy.other_config); }
public override string SaveChanges(Session session, string opaqueRef, WinAPI.Console server) { if (opaqueRef == null) { Proxy_Console console = this.ToProxy(); return(session.proxy.console_create(session.uuid, console).parse()); } if (!Helper.AreEqual2 <Dictionary <string, string> >(this._other_config, server._other_config)) { set_other_config(session, opaqueRef, this._other_config); } return(null); }
public Console(Proxy_Console proxy) { this.UpdateFromProxy(proxy); }