internal void UpdateFromProxy(Proxy_User proxy) { this.uuid = (proxy.uuid == null) ? null : proxy.uuid; this.short_name = (proxy.short_name == null) ? null : proxy.short_name; this.fullname = (proxy.fullname == null) ? null : proxy.fullname; 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, User server) { if (opaqueRef == null) { Proxy_User user = this.ToProxy(); return(session.proxy.user_create(session.uuid, user).parse()); } if (!Helper.AreEqual2 <string>(this._fullname, server._fullname)) { set_fullname(session, opaqueRef, this._fullname); } if (!Helper.AreEqual2 <Dictionary <string, string> >(this._other_config, server._other_config)) { set_other_config(session, opaqueRef, this._other_config); } return(null); }
public User(Proxy_User proxy) { this.UpdateFromProxy(proxy); }