Example #1
0
File: User.cs Project: hl10502/WCM
 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);
 }
Example #2
0
File: User.cs Project: hl10502/WCM
 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);
 }
Example #3
0
File: User.cs Project: hl10502/WCM
 public User(Proxy_User proxy)
 {
     this.UpdateFromProxy(proxy);
 }